mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add xfd.
* gnu/packages/xorg.scm (xfd): New variable.
This commit is contained in:
parent
f225ae7544
commit
e48e31bcc8
1 changed files with 46 additions and 0 deletions
|
@ -3917,6 +3917,52 @@ (define-public xfontsel
|
|||
Font Description (XLFD) full name for a font.")
|
||||
(license license:x11)))
|
||||
|
||||
(define-public xfd
|
||||
(package
|
||||
(name "xfd")
|
||||
(version "1.1.2")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"mirror://xorg/individual/app/xfd-"
|
||||
version ".tar.bz2"))
|
||||
(sha256
|
||||
(base32
|
||||
"0n97iqqap9wyxjan2n520vh4rrf5bc0apsw2k9py94dqzci258y1"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
;; The same 'app-defaults' problem as with 'xfontsel' package.
|
||||
(let ((app-defaults-dir "/share/X11/app-defaults"))
|
||||
`(#:configure-flags
|
||||
(list (string-append "--with-appdefaultdir="
|
||||
%output ,app-defaults-dir))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'wrap-xfd
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(wrap-program (string-append out "/bin/xfd")
|
||||
`("XAPPLRESDIR" =
|
||||
(,(string-append out ,app-defaults-dir)))))))))))
|
||||
(inputs
|
||||
`(("fontconfig" ,fontconfig)
|
||||
("libx11" ,libx11)
|
||||
("libxaw" ,libxaw)
|
||||
("libxft" ,libxft)
|
||||
("libxmu" ,libxmu)
|
||||
("libxrender" ,libxrender)))
|
||||
(native-inputs
|
||||
`(("gettext" ,gnu-gettext)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(home-page "https://www.x.org/wiki/")
|
||||
(synopsis "Display all the characters in an X font")
|
||||
(description
|
||||
"XFD (X Font Display) package provides an utility that displays a
|
||||
window containing the name of the font being displayed, a row of command
|
||||
buttons, several lines of text for displaying character metrics, and a grid
|
||||
containing one glyph per cell.")
|
||||
(license license:x11)))
|
||||
|
||||
(define-public xmodmap
|
||||
(package
|
||||
(name "xmodmap")
|
||||
|
|
Loading…
Reference in a new issue