gnu: squeak-vm: Enter build directory once.
* gnu/packages/smalltalk.scm (squeak-vm)[arguments]: Use CHDIR instead of pseudofunctional WITH-DIRECTORY-EXCURSIONs. Drop the custom ‘build’ phase.master
parent
b3c1dac11b
commit
30d6eb85da
|
@ -124,23 +124,18 @@ such as ones for networking and GUI programming.")
|
||||||
"unix/cmake/squeak.sh.in")
|
"unix/cmake/squeak.sh.in")
|
||||||
(("^PATH=.*") ""))
|
(("^PATH=.*") ""))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'unpack 'create-build-dir
|
(add-before 'configure 'enter-build-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
(mkdir "bld")
|
(mkdir "build")
|
||||||
|
(chdir "build")
|
||||||
#t))
|
#t))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(with-directory-excursion "bld"
|
(invoke "../unix/cmake/configure"
|
||||||
(invoke "../unix/cmake/configure"
|
(string-append "--prefix=" out)
|
||||||
(string-append "--prefix=" out)
|
"--without-quartz")
|
||||||
"--without-quartz")
|
#t))))))
|
||||||
#t))))
|
|
||||||
(replace 'build
|
|
||||||
(lambda _
|
|
||||||
(with-directory-excursion "bld"
|
|
||||||
(invoke "make"))
|
|
||||||
#t)))))
|
|
||||||
(synopsis "Smalltalk programming language and environment")
|
(synopsis "Smalltalk programming language and environment")
|
||||||
(description "Squeak is a full-featured implementation of the Smalltalk
|
(description "Squeak is a full-featured implementation of the Smalltalk
|
||||||
programming language and environment based on (and largely compatible with)
|
programming language and environment based on (and largely compatible with)
|
||||||
|
|
Reference in New Issue