scx/pkg-def.scm

18 lines
629 B
Scheme

(define-package "scx" (0 2 1)
((optional-parts (xft "Compile with Xft support" #f)))
(let* ((prefix (package-installation-staging-dir))
(xft? (with-optional-part? 'xft))
(configure (quasiquote ("./configure" ,(string-append "--prefix=" prefix)
,(if xft? "--with-xft" "--without-xft"))))
(make '(make all install)))
(if (is-running-dry?)
(begin
(display configure) (newline)
(display make) (newline))
(and (zero? (run ,configure))
(zero? (run ,make)))))
(install-file "load.scm")
(install-directory "scheme")
)