gnu: xfig: Use modify-phases.
* gnu/packages/xfig.scm (xfig): Use modify-phases.
This commit is contained in:
parent
5aae77e44b
commit
0eefac0f2f
1 changed files with 79 additions and 80 deletions
|
|
@ -59,8 +59,8 @@
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f
|
`(#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
(alist-replace
|
(modify-phases %standard-phases
|
||||||
'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((imake (assoc-ref inputs "imake"))
|
(let ((imake (assoc-ref inputs "imake"))
|
||||||
(out (assoc-ref outputs "out")))
|
(out (assoc-ref outputs "out")))
|
||||||
|
|
@ -98,12 +98,12 @@
|
||||||
(("(MANPATH = )[[:graph:]]*" _ front)
|
(("(MANPATH = )[[:graph:]]*" _ front)
|
||||||
(string-append front out "/share/man"))
|
(string-append front out "/share/man"))
|
||||||
(("(CONFDIR = )([[:graph:]]*)" _ front default)
|
(("(CONFDIR = )([[:graph:]]*)" _ front default)
|
||||||
(string-append front out default)))))
|
(string-append front out default))))))
|
||||||
(alist-cons-after
|
(add-after
|
||||||
'install 'install/libs
|
'install 'install/libs
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "make" "install.libs")))
|
(zero? (system* "make" "install.libs"))))
|
||||||
(alist-cons-after
|
(add-after
|
||||||
'install 'install/doc
|
'install 'install/doc
|
||||||
(lambda _
|
(lambda _
|
||||||
(begin
|
(begin
|
||||||
|
|
@ -118,15 +118,14 @@
|
||||||
(dump-port in out)
|
(dump-port in out)
|
||||||
(close-pipe in)
|
(close-pipe in)
|
||||||
(close-port out)))
|
(close-port out)))
|
||||||
(zero? (system* "make" "install.doc"))))
|
(zero? (system* "make" "install.doc")))))
|
||||||
(alist-cons-after
|
(add-after
|
||||||
'install 'wrap-xfig
|
'install 'wrap-xfig
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(wrap-program (string-append out "/bin/xfig")
|
(wrap-program (string-append out "/bin/xfig")
|
||||||
`("XAPPLRESDIR" suffix
|
`("XAPPLRESDIR" suffix
|
||||||
(,(string-append out "/etc/X11/app-defaults"))))))
|
(,(string-append out "/etc/X11/app-defaults"))))))))))
|
||||||
%standard-phases))))))
|
|
||||||
(home-page "http://xfig.org/")
|
(home-page "http://xfig.org/")
|
||||||
(synopsis "Interactive drawing tool")
|
(synopsis "Interactive drawing tool")
|
||||||
(description
|
(description
|
||||||
|
|
|
||||||
Reference in a new issue