emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51627: closed ([PATCH] gnu: st: Compile and install terminfo files.)


From: GNU bug Tracking System
Subject: bug#51627: closed ([PATCH] gnu: st: Compile and install terminfo files.)
Date: Fri, 03 Dec 2021 20:38:02 +0000

Your message dated Fri, 3 Dec 2021 15:37:34 -0500
with message-id <eaccc711-7788-5e5b-4e2a-a272c65c09d7@raghavgururajan.name>
and subject line 
has caused the debbugs.gnu.org bug report #51627,
regarding [PATCH] gnu: st: Compile and install terminfo files.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
51627: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51627
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: st: Compile and install terminfo files. Date: Sat, 6 Nov 2021 04:53:34 -0400
* gnu/packages/suckless.scm (st): Compile and install terminfo files.
[native-inputs]: ncurses's tic program is required to compile the
terminfo files.
---
 gnu/packages/suckless.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index b4855ec0a2..912ff12422 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -378,6 +378,9 @@ (define-public st
      `(#:tests? #f                      ; no tests
        #:make-flags
        (list (string-append "CC=" ,(cc-for-target))
+             (string-append "TERMINFO="
+                            (assoc-ref %outputs "out")
+                            "/share/terminfo")
              (string-append "PREFIX=" %output))
        #:phases
        (modify-phases %standard-phases
@@ -385,15 +388,20 @@ (define-public st
          (add-after 'unpack 'inhibit-terminfo-install
            (lambda _
              (substitute* "Makefile"
-               (("\ttic .*") ""))
-             #t)))))
+               (("\ttic .*") ""))))
+         (add-after 'install 'compile-and-install-terminfo-entry
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((out  (assoc-ref outputs "out"))
+                      (terminfo (string-append out "/share/terminfo")))
+                 (invoke "tic" "-sx" "st.info" "-o" terminfo)))))))
     (inputs
      `(("libx11" ,libx11)
        ("libxft" ,libxft)
        ("fontconfig" ,fontconfig)
        ("freetype" ,freetype)))
     (native-inputs
-     `(("pkg-config" ,pkg-config)))
+     `(("ncurses" ,ncurses)
+       ("pkg-config" ,pkg-config)))
     (home-page "https://st.suckless.org/";)
     (synopsis "Simple terminal emulator")
     (description
-- 
2.33.1




--- End Message ---
--- Begin Message --- Date: Fri, 3 Dec 2021 15:37:34 -0500
Pushed to master as 170cb4c881..19528e39bb, with new make-flag. Thanks!

Regards,
RG.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]