mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
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 @@ (define-public xfig
|
|||
(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 @@ (define-public xfig
|
|||
(("(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 @@ (define-public xfig
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue