diff options
| author | Federico Beffa <beffa@fbengineering.ch> | 2014-11-24 14:22:16 +0100 |
|---|---|---|
| committer | Federico Beffa <beffa@fbengineering.ch> | 2014-11-24 18:28:52 +0100 |
| commit | faef3b153acf450555fc640bd266a2e1321d9c99 (patch) | |
| tree | 20ad3c38b83459cc354effec8d768ecf002952a5 | |
| parent | fa1e31b8a5c0d134020b8d4aa0c2d4ad0dca40da (diff) | |
gnu: xfig: Add 'wrap-xfig phase.
* gnu/packages/xfig.scm (xfig): Set XAPPLRESDIR environment variable to help
xfig find the app-defaults resource files.
| -rw-r--r-- | gnu/packages/xfig.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/xfig.scm b/gnu/packages/xfig.scm index b15407417fe..6436e52ad60 100644 --- a/gnu/packages/xfig.scm +++ b/gnu/packages/xfig.scm | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | 2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
| 3 | ;;; Copyright © 2014 Federico Beffa <beffa@fbengineering.ch> | ||
| 3 | ;;; | 4 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 6 | ;;; |
| @@ -118,7 +119,14 @@ | |||
| 118 | (close-pipe in) | 119 | (close-pipe in) |
| 119 | (close-port out))) | 120 | (close-port out))) |
| 120 | (zero? (system* "make" "install.doc")))) | 121 | (zero? (system* "make" "install.doc")))) |
| 121 | %standard-phases))))) | 122 | (alist-cons-after |
| 123 | 'install 'wrap-xfig | ||
| 124 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 125 | (let ((out (assoc-ref outputs "out"))) | ||
| 126 | (wrap-program (string-append out "/bin/xfig") | ||
| 127 | `("XAPPLRESDIR" suffix | ||
| 128 | (,(string-append out "/etc/X11/app-defaults")))))) | ||
| 129 | %standard-phases)))))) | ||
| 122 | (home-page "http://xfig.org/") | 130 | (home-page "http://xfig.org/") |
| 123 | (synopsis "Interactive drawing tool") | 131 | (synopsis "Interactive drawing tool") |
| 124 | (description | 132 | (description |
