From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 51627@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#51627] [PATCH] gnu: st: Compile and install terminfo files.
Date: Sat, 6 Nov 2021 04:53:34 -0400 [thread overview]
Message-ID: <20211106085334.4778-1-jgart@dismail.de> (raw)
* 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
next reply other threads:[~2021-11-06 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-06 8:53 jgart via Guix-patches via [this message]
2021-12-03 20:08 ` [bug#51627] (no subject) Raghav Gururajan via Guix-patches via
2021-12-03 20:21 ` [bug#51627] [PATCH v2] gnu: st: Install terminfo files jgart via Guix-patches via
2021-12-03 20:37 ` bug#51627: (no subject) Raghav Gururajan via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211106085334.4778-1-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=51627@debbugs.gnu.org \
--cc=jgart@dismail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.