gnu: squeak-vm: Enter build directory once.
authorTobias Geerinckx-Rice <me@tobias.gr>
Sat, 25 Jul 2020 11:53:23 +0000 (13:53 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Sat, 25 Jul 2020 11:55:57 +0000 (13:55 +0200)
* gnu/packages/smalltalk.scm (squeak-vm)[arguments]: Use CHDIR instead of
pseudofunctional WITH-DIRECTORY-EXCURSIONs.  Drop the custom ‘build’ phase.

gnu/packages/smalltalk.scm

index ea4f8f8..5d35f56 100644 (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)