mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 20:27:36 -05:00
gnu: fortune-mod: Update to 3.12.0.
* gnu/packages/games.scm (fortune-mod): Update to 3.12.0. [arguments]: Adjust 'delete-failing-test phase accordingly. [native-inputs]: Add docbook-xml-5, docbook-xsl, and perl-app-xml-docbook-builder.
This commit is contained in:
parent
106aac634d
commit
99e4e23411
1 changed files with 19 additions and 8 deletions
|
@ -7567,7 +7567,7 @@ (define-public rinutils
|
||||||
(define-public fortune-mod
|
(define-public fortune-mod
|
||||||
(package
|
(package
|
||||||
(name "fortune-mod")
|
(name "fortune-mod")
|
||||||
(version "2.28.0")
|
(version "3.12.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -7576,7 +7576,7 @@ (define-public fortune-mod
|
||||||
(commit (string-append "fortune-mod-" version))))
|
(commit (string-append "fortune-mod-" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
|
(base32 "1iq3bxrw8758jqvfqaasd7w1zm0g28g9n25qccnzvr98997h6r2n"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:test-target "check"
|
(list #:test-target "check"
|
||||||
|
@ -7585,6 +7585,11 @@ (define-public fortune-mod
|
||||||
(add-after 'unpack 'enter-build-directory
|
(add-after 'unpack 'enter-build-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "fortune-mod")))
|
(chdir "fortune-mod")))
|
||||||
|
(add-after 'enter-build-directory 'symlink-rinutils
|
||||||
|
(lambda _
|
||||||
|
(mkdir-p "rinutils")
|
||||||
|
(symlink #$(this-package-native-input "rinutils")
|
||||||
|
"rinutils/rinutils")))
|
||||||
(add-after 'enter-build-directory 'copy-cmake-modules
|
(add-after 'enter-build-directory 'copy-cmake-modules
|
||||||
(lambda _
|
(lambda _
|
||||||
(copy-file #$shlomif-cmake-modules
|
(copy-file #$shlomif-cmake-modules
|
||||||
|
@ -7593,14 +7598,16 @@ (define-public fortune-mod
|
||||||
#$shlomif-cmake-modules)))))
|
#$shlomif-cmake-modules)))))
|
||||||
(add-after 'enter-build-directory 'delete-failing-test
|
(add-after 'enter-build-directory 'delete-failing-test
|
||||||
(lambda _
|
(lambda _
|
||||||
;; TODO: Valgrind tests fail for some reason.
|
;; TODO: Valgrind tests fail for some reason. Similar issue?
|
||||||
;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
|
;; https://github.com/shlomif/fortune-mod/issues/21
|
||||||
(delete-file "tests/t/valgrind.t")))
|
(delete-file "tests/data/valgrind.t")
|
||||||
|
(with-output-to-file "tests/scripts/split-valgrind.pl"
|
||||||
|
(const #t))))
|
||||||
(add-after 'install 'fix-install-directory
|
(add-after 'install 'fix-install-directory
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Move binary from "games/" to "bin/" and remove the latter. This
|
;; Move binary from "games/" to "bin/" and remove the
|
||||||
;; is easier than patching CMakeLists.txt since the tests hard-code
|
;; latter. This is easier than patching CMakeLists.txt
|
||||||
;; the location as well.
|
;; since the tests hard-code the location as well.
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(bin (string-append out "/bin"))
|
(bin (string-append out "/bin"))
|
||||||
(games (string-append out "/games")))
|
(games (string-append out "/games")))
|
||||||
|
@ -7610,6 +7617,10 @@ (define-public fortune-mod
|
||||||
(inputs (list recode))
|
(inputs (list recode))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list perl
|
(list perl
|
||||||
|
;; For generating the documentation.
|
||||||
|
docbook-xml-5
|
||||||
|
docbook-xsl
|
||||||
|
perl-app-xml-docbook-builder
|
||||||
;; The following are only needed for tests.
|
;; The following are only needed for tests.
|
||||||
perl-file-find-object
|
perl-file-find-object
|
||||||
perl-test-differences
|
perl-test-differences
|
||||||
|
|
Loading…
Reference in a new issue