gnu: rxvt-unicode: Install the terminal capability data.

This provides the necessary terminal capability data, which are required
by ncurses-based applications.

* gnu/packages/xdisorg.scm (rxvt-unicode)[native-inputs]: Add ncurses.
[arguments]: Set the destination of the terminfo files.
[native-search-path]: New field.  Make them automatically available to
the user.
This commit is contained in:
Mathieu Lirzin 2015-12-06 21:58:03 +01:00
parent 72d8b5baf4
commit 1ef3f91a70
1 changed files with 23 additions and 12 deletions

View File

@ -41,6 +41,7 @@
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
#:use-module (gnu packages gnome) ;for libgudev #:use-module (gnu packages gnome) ;for libgudev
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
@ -530,24 +531,34 @@ compact configuration syntax.")
(package (package
(name "rxvt-unicode") (name "rxvt-unicode")
(version "9.21") (version "9.21")
(source (source (origin
(origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append "http://dist.schmorp.de/rxvt-unicode/"
"http://dist.schmorp.de/rxvt-unicode/" name "-" version ".tar.bz2"))
name "-"
version
".tar.bz2"))
(sha256 (sha256
(base32 (base32
"0swmi308v5yxsddrdhvi4cch88k2bbs2nffpl5j5m2f55gbhw9vm")))) "0swmi308v5yxsddrdhvi4cch88k2bbs2nffpl5j5m2f55gbhw9vm"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
;; This sets the destination when installing the necessary terminal
;; capability data, which are not provided by 'ncurses'. See
;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
'(#:make-flags (list (string-append "TERMINFO="
(assoc-ref %outputs "out")
"/share/terminfo"))))
(inputs (inputs
`(("libXft" ,libxft) `(("libXft" ,libxft)
("libX11" ,libx11))) ("libX11" ,libx11)))
(native-inputs (native-inputs
`(("perl" ,perl) `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
("perl" ,perl)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))
;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
(native-search-paths
(list (search-path-specification
(variable "TERMINFO_DIRS")
(files '("share/terminfo")))))
(home-page "http://software.schmorp.de/pkg/rxvt-unicode.html") (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
(synopsis "Rxvt clone with XFT and unicode support") (synopsis "Rxvt clone with XFT and unicode support")
(description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator