gnu: deutex: Update to 5.0.0.

* gnu/packages/game-development.scm (deutex): Update to 5.0.0.
[source]: Change upstream URI.
[arguments]: Enable tests and restore normal "configure" and "install"
phases.
[native-inputs]: Add asciidoc.
This commit is contained in:
Kei Kebreau 2017-08-06 13:44:12 -04:00
parent 403097d26d
commit f7b60fdc36
No known key found for this signature in database
GPG key ID: E6A5EE3C19467A0D

View file

@ -101,39 +101,17 @@ (define-public bullet
(define-public deutex (define-public deutex
(package (package
(name "deutex") (name "deutex")
(version "4.4.902") (version "5.0.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/Doom-Utils/" name (uri (string-append "https://github.com/Doom-Utils/" name
"/archive/v" version ".tar.gz")) "/releases/download/v" version "/"
(file-name (string-append name "-" version ".tar.gz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"0rwz1yzgd539x4h25kzhar4q02xyxjwfrcpz4m8ixi312a82p7cn")))) "1jvffcpq64hk3jysz4q6zi9hqkksy151ci9553h8q7wrrkbw0i9z"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (native-inputs `(("asciidoc" ,asciidoc)))
'(#:tests? #f ; no check target
#:phases
(modify-phases %standard-phases
;; The provided configure script takes a restricted number of arguments.
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(zero? (system* "./configure" "--prefix"
(assoc-ref %outputs "out")))))
;; "make install" is broken for this package.
;; Notably, the binaries overrwrite one another upon installation as
;; they are all installed to the "bin" file in the output directory,
;; and the manual page fails to install because the directory for the
;; manual page is not created.
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref %outputs "out"))
(bin (string-append out "/bin"))
(share (string-append out "/share")))
(install-file "deusf" bin)
(install-file "deutex" bin)
(install-file "deutex.6" (string-append share "/man/man6")))
#t)))))
(home-page "https://github.com/Doom-Utils/deutex") (home-page "https://github.com/Doom-Utils/deutex")
(synopsis "WAD file composer for Doom and related games") (synopsis "WAD file composer for Doom and related games")
(description (description