gnu: guile-lib: Update to 0.2.3.

* gnu/packages/guile.scm (guile-lib): Update to 0.2.3.
[arguments]: Adjust 'patch-module-dir' to change both 'moddir' and
'godir'; use '@GUILE_EFFECTIVE_VERSION@' instead of a hard-coded
"2.0".  Add 'check' phase.
[native-inputs]: New field.
This commit is contained in:
Ludovic Courtès 2016-10-17 22:04:27 +02:00
parent 9d356c9c92
commit bf62b8ff79
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 15 additions and 4 deletions

View File

@ -510,22 +510,33 @@ format is also supported.")
(define-public guile-lib (define-public guile-lib
(package (package
(name "guile-lib") (name "guile-lib")
(version "0.2.2") (version "0.2.3")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://savannah/guile-lib/guile-lib-" (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1f9n2b5b5r75lzjinyk6zp6g20g60msa0jpfrk5hhg4j8cy0ih4b")))) "0pwdd52vakni1fabaiav8v0ad7xp3bx8x3brijbr1mpgamm9dxqc"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
(add-before 'configure 'patch-module-dir (add-before 'configure 'patch-module-dir
(lambda _ (lambda _
(substitute* "src/Makefile.in" (substitute* "src/Makefile.in"
(("^moddir[[:blank:]]*=[[:blank:]]*([[:graph:]]+)" _ rhs) (("^moddir = ([[:graph:]]+)")
(string-append "moddir = " rhs "/2.0\n")))))))) "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
(("^godir = ([[:graph:]]+)")
"godir = \
$(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
#t))
(replace 'check
(lambda _
;; Work around a harmless test failure involving
;; two-spaces-after-period rendering.
(zero? (system* "make" "check" ;"-C" "unit-tests"
"XFAIL_TESTS=texinfo.serialize.scm")))))))
(native-inputs `(("pkg-config" ,pkg-config)))
(inputs `(("guile" ,guile-2.0))) (inputs `(("guile" ,guile-2.0)))
(home-page "http://www.nongnu.org/guile-lib/") (home-page "http://www.nongnu.org/guile-lib/")
(synopsis "Collection of useful Guile Scheme modules") (synopsis "Collection of useful Guile Scheme modules")