[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: xfig: Add 'wrap-xfig phase.
From: |
Federico Beffa |
Subject: |
01/01: gnu: xfig: Add 'wrap-xfig phase. |
Date: |
Mon, 24 Nov 2014 17:29:12 +0000 |
beffa pushed a commit to branch master
in repository guix.
commit faef3b153acf450555fc640bd266a2e1321d9c99
Author: Federico Beffa <address@hidden>
Date: Mon Nov 24 14:22:16 2014 +0100
gnu: xfig: Add 'wrap-xfig phase.
* gnu/packages/xfig.scm (xfig): Set XAPPLRESDIR environment variable to help
xfig find the app-defaults resource files.
---
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 b154074..6436e52 100644
--- a/gnu/packages/xfig.scm
+++ b/gnu/packages/xfig.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Eric Bavier <address@hidden>
+;;; Copyright © 2014 Federico Beffa <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -118,7 +119,14 @@
(close-pipe in)
(close-port out)))
(zero? (system* "make" "install.doc"))))
- %standard-phases)))))
+ (alist-cons-after
+ 'install 'wrap-xfig
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/xfig")
+ `("XAPPLRESDIR" suffix
+ (,(string-append out
"/etc/X11/app-defaults"))))))
+ %standard-phases))))))
(home-page "http://xfig.org/")
(synopsis "Interactive drawing tool")
(description