me
/
guix
Archived
1
0
Fork 0

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
Tobias Geerinckx-Rice 2020-07-25 13:53:23 +02:00
parent b3c1dac11b
commit 30d6eb85da
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 7 additions and 12 deletions

View File

@ -124,23 +124,18 @@ such as ones for networking and GUI programming.")
"unix/cmake/squeak.sh.in")
(("^PATH=.*") ""))
#t))
(add-after 'unpack 'create-build-dir
(add-before 'configure 'enter-build-directory
(lambda _
(mkdir "bld")
(mkdir "build")
(chdir "build")
#t))
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(with-directory-excursion "bld"
(invoke "../unix/cmake/configure"
(string-append "--prefix=" out)
"--without-quartz")
#t))))
(replace 'build
(lambda _
(with-directory-excursion "bld"
(invoke "make"))
#t)))))
(invoke "../unix/cmake/configure"
(string-append "--prefix=" out)
"--without-quartz")
#t))))))
(synopsis "Smalltalk programming language and environment")
(description "Squeak is a full-featured implementation of the Smalltalk
programming language and environment based on (and largely compatible with)