3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: xfig: Use modify-phases.

* gnu/packages/xfig.scm (xfig): Use modify-phases.
This commit is contained in:
John Darrington 2017-01-11 21:45:20 +01:00
parent 5aae77e44b
commit 0eefac0f2f
No known key found for this signature in database
GPG key ID: 8A67719C2DE827B3

View file

@ -59,8 +59,8 @@
(arguments
`(#:tests? #f
#:phases
(alist-replace
'configure
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((imake (assoc-ref inputs "imake"))
(out (assoc-ref outputs "out")))
@ -98,12 +98,12 @@
(("(MANPATH = )[[:graph:]]*" _ front)
(string-append front out "/share/man"))
(("(CONFDIR = )([[:graph:]]*)" _ front default)
(string-append front out default)))))
(alist-cons-after
(string-append front out default))))))
(add-after
'install 'install/libs
(lambda _
(zero? (system* "make" "install.libs")))
(alist-cons-after
(zero? (system* "make" "install.libs"))))
(add-after
'install 'install/doc
(lambda _
(begin
@ -118,15 +118,14 @@
(dump-port in out)
(close-pipe in)
(close-port out)))
(zero? (system* "make" "install.doc"))))
(alist-cons-after
(zero? (system* "make" "install.doc")))))
(add-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))))))
(,(string-append out "/etc/X11/app-defaults"))))))))))
(home-page "http://xfig.org/")
(synopsis "Interactive drawing tool")
(description