gnu: bigloo: Update to 4.3g.
* gnu/packages/scheme.scm (bigloo): Update to 4.3g. [source]: Remove bundled libunistring and pcre. [arguments]: Add 'fix-gmp-detection' phase. Add options to 'configure' phase to throw an error when gmp is not found.master
parent
7540f6915c
commit
041d62f7cc
|
@ -15,6 +15,7 @@
|
||||||
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
||||||
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
|
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
|
||||||
;;; Copyright © 2021 Philip McGrath <philip@philipmcgrath.com>
|
;;; Copyright © 2021 Philip McGrath <philip@philipmcgrath.com>
|
||||||
|
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -230,29 +231,34 @@ features an integrated Emacs-like editor and a large runtime library.")
|
||||||
(define-public bigloo
|
(define-public bigloo
|
||||||
;; Upstream modifies source tarballs in place, making significant changes
|
;; Upstream modifies source tarballs in place, making significant changes
|
||||||
;; long after the initial publication: <https://bugs.gnu.org/33525>.
|
;; long after the initial publication: <https://bugs.gnu.org/33525>.
|
||||||
(let ((upstream-version "4.3f"))
|
(let ((upstream-version "4.3g"))
|
||||||
(package
|
(package
|
||||||
(name "bigloo")
|
(name "bigloo")
|
||||||
(version "4.3f")
|
(version "4.3g")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo"
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo"
|
||||||
upstream-version ".tar.gz"))
|
upstream-version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"09whj8z91qbihk59dw2yb2ccbx9nk1c4l65j62pfs1pz822cpyh9"))
|
"07305c134v7s1nz44igwsyqpb9qqia5zyng1q2qj60sskw3nbd67"))
|
||||||
;; Remove bundled libraries.
|
;; Remove bundled libraries.
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
(for-each delete-file-recursively
|
(for-each delete-file-recursively
|
||||||
'("gc" "gmp" "libuv"))
|
'("gc" "gmp" "libuv" "libunistring" "pcre"))
|
||||||
#t))))
|
#t))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test"
|
`(#:test-target "test"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-gmp-detection
|
||||||
|
(lambda _
|
||||||
|
(substitute* "configure"
|
||||||
|
(("gmpversion=`\\$autoconf gmp --lib=\\$gmplib`")
|
||||||
|
"gmpversion=`\\$autoconf gmp --lib=\"\\$gmplib\"`"))))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
|
||||||
|
@ -275,6 +281,8 @@ features an integrated Emacs-like editor and a large runtime library.")
|
||||||
(string-append "--prefix=" out)
|
(string-append "--prefix=" out)
|
||||||
; use system libraries
|
; use system libraries
|
||||||
"--customgc=no"
|
"--customgc=no"
|
||||||
|
"--enable-gmp"
|
||||||
|
"--customgmp=no"
|
||||||
"--customunistring=no"
|
"--customunistring=no"
|
||||||
"--customlibuv=no"
|
"--customlibuv=no"
|
||||||
(string-append"--mv=" (which "mv"))
|
(string-append"--mv=" (which "mv"))
|
||||||
|
|
Reference in New Issue