aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2016-04-05 22:52:58 -0500
committerEric Bavier <bavier@member.fsf.org>2016-04-15 00:39:08 -0500
commit5f031ed242f979a9687f14fac9c311068f6b437b (patch)
tree7f118aac10244d8b72aaa0182e34bed7d9c93c5e
parent5ab869f962e767110530e79b50d08421ff7411ab (diff)
downloadgnu-guix-5f031ed242f979a9687f14fac9c311068f6b437b.tar
gnu-guix-5f031ed242f979a9687f14fac9c311068f6b437b.tar.gz
gnu: fontforge: Install 'showttf' tool.
* gnu/packages/fontutils.scm (fontforge)[arguments]: Add 'build-contrib' phase.
-rw-r--r--gnu/packages/fontutils.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index e438aaf422..7141f188ee 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -557,6 +557,14 @@ definitions.")
;; hard-coded.
(("gww_prefix in.*") (string-append "gww_prefix in "
cairo " " pango "\n"))))))
+ (add-after 'build 'build-contrib
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (and (zero? (system* "make" "-Ccontrib/fonttools"
+ "CC=gcc" "showttf"))
+ (begin (install-file "contrib/fonttools/showttf" bin)
+ #t)))))
(add-after 'install 'set-library-path
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))