Package: guix-patches;
Reported by: Arun Isaac <arunisaac <at> systemreboot.net>
Date: Wed, 13 Sep 2017 23:55:02 UTC
Severity: normal
Done: Kei Kebreau <kkebreau <at> posteo.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28453 in the body.
You can then email your comments to 28453 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Wed, 13 Sep 2017 23:55:02 GMT) Full text and rfc822 format available.Arun Isaac <arunisaac <at> systemreboot.net>
:guix-patches <at> gnu.org
.
(Wed, 13 Sep 2017 23:55:03 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: guix-patches <at> gnu.org Subject: openttd-openmsx and openttd-opensfx Date: Thu, 14 Sep 2017 05:24:10 +0530
Will send patches for openttd-openmsx and openttd-opensfx here...
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 00:53:02 GMT) Full text and rfc822 format available.Message #8 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: 28453 <at> debbugs.gnu.org Cc: Arun Isaac <arunisaac <at> systemreboot.net> Subject: [PATCH 3/5] gnu: Add openttd-opensfx. Date: Thu, 14 Sep 2017 06:21:30 +0530
* gnu/packages/games.scm (openttd-opensfx): New variable. --- gnu/packages/games.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 7bfd05cc7..1debd6915 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2525,6 +2525,36 @@ OpenGFX provides you with... @end enumerate") (license license:gpl2))) +(define openttd-opensfx + (package + (name "openttd-opensfx") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://binaries.openttd.org/extra/opensfx/" + version "/opensfx-" version "-source.tar.gz")) + (sha256 + (base32 + "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5")))) + (build-system gnu-build-system) + (native-inputs + `(("catcodec" ,catcodec) + ("python" ,python-2))) + (arguments + `(#:make-flags + (list (string-append "INSTALL_DIR=" %output + "/share/games/openttd/baseset/opensfx")) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (home-page "http://dev.openttdcoop.org/projects/opensfx") + (synopsis "Base sounds for OpenTTD") + (description "OpenSFX is a set of free base sounds for OpenTTD which make +it possible to play OpenTTD without requiring the proprietary sound files from +the original Transport Tycoon Deluxe.") + (license license:cc-sampling-plus-1.0))) + (define-public openttd (package (inherit openttd-engine) -- 2.14.1
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 00:53:05 GMT) Full text and rfc822 format available.Message #11 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: 28453 <at> debbugs.gnu.org Cc: Arun Isaac <arunisaac <at> systemreboot.net> Subject: [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Thu, 14 Sep 2017 06:21:32 +0530
* gnu/packages/games.scm (openttd-opengfx)[arguments]: Change installation directory from /share/openttd/baseset/opengfx to /share/games/openttd/baseset/opengfx. (openttd-engine)[arguments]: Support #:configure-flags keyword argument in 'configure' phase. (openttd)[inputs]: Add timidity++. [native-inputs]: Add openttd-openmsx and openttd-opensfx. [arguments]: Configure with timidity as MIDI player. Install data from openttd-openmsx and openttd-opensfx. --- gnu/packages/games.scm | 57 ++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 67e987bff..406eb5471 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2427,17 +2427,19 @@ and a game metadata scraper.") ;; The build process fails if the configure script is passed the ;; option "--enable-fast-install". (replace 'configure - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs (configure-flags '()) + #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (lzo (assoc-ref inputs "lzo"))) (zero? - (system* "./configure" - (string-append "--prefix=" out) - ;; Provide the "lzo" path. - (string-append "--with-liblzo2=" - lzo "/lib/liblzo2.a") - ;; Put the binary in 'bin' instead of 'games'. - "--binary-dir=bin")))))))) + (apply system* "./configure" + (string-append "--prefix=" out) + ;; Provide the "lzo" path. + (string-append "--with-liblzo2=" + lzo "/lib/liblzo2.a") + ;; Put the binary in 'bin' instead of 'games'. + "--binary-dir=bin" + configure-flags)))))))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("allegro" ,allegro-4) @@ -2464,10 +2466,6 @@ engine. When you start it you will be prompted to download a graphics set.") ;; different terms. (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib)))) -;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make -;; 'openttd' a wrapper around them. The engine is playable by itself, -;; but it asks a user to download graphics if it's not found. - (define openttd-opengfx (package (name "openttd-opengfx") @@ -2485,7 +2483,7 @@ engine. When you start it you will be prompted to download a graphics set.") '(#:make-flags (list "CC=gcc" (string-append "INSTALL_DIR=" (assoc-ref %outputs "out") - "/share/openttd/baseset")) + "/share/games/openttd/baseset/opengfx")) #:phases (modify-phases %standard-phases (replace 'configure @@ -2598,22 +2596,27 @@ Transport Tycoon Deluxe.") (inherit openttd-engine) (name "openttd") (arguments - (substitute-keyword-arguments (package-arguments openttd-engine) - ((#:phases phases) - `(modify-phases ,phases - (add-after 'install 'install-data - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* - ((opengfx (assoc-ref inputs "opengfx")) - (out (assoc-ref outputs "out")) - (gfx-dir - (string-append out - "/share/games/openttd/baseset/opengfx"))) - (mkdir-p gfx-dir) - (copy-recursively opengfx gfx-dir)) - #t)))))) + `(#:configure-flags + (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++") + "/bin/timidity")) + ,@(substitute-keyword-arguments (package-arguments openttd-engine) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'install 'install-data + (lambda* (#:key inputs outputs #:allow-other-keys) + (for-each + (lambda (input) + (copy-recursively (assoc-ref inputs input) + (assoc-ref outputs "out"))) + (list "opengfx" "openmsx" "opensfx")) + #t))))))) + (inputs + `(("timidity++" ,timidity++) + ,@(package-inputs openttd-engine))) (native-inputs `(("opengfx" ,openttd-opengfx) + ("openmsx" ,openttd-openmsx) + ("opensfx" ,openttd-opensfx) ,@(package-native-inputs openttd-engine))))) (define-public pinball -- 2.14.1
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 00:54:02 GMT) Full text and rfc822 format available.Message #14 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: 28453 <at> debbugs.gnu.org Cc: Arun Isaac <arunisaac <at> systemreboot.net> Subject: [PATCH 1/5] gnu: Add catcodec. Date: Thu, 14 Sep 2017 06:21:28 +0530
* gnu/packages/game-development.scm (catcodec): New variable. --- gnu/packages/game-development.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index c8869a494..7f4d4e1ae 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2016, 2017 Julian Graham <joolean <at> gmail.com> ;;; Copyright © 2017 Tobias Geerinckx-Rice <me <at> tobias.gr> ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com> +;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -190,6 +191,31 @@ necessary. ;; The MD5 implementation contained in GRFID is under the zlib license. (license (list license:gpl2 license:gpl2+ license:zlib)))) +(define-public catcodec + (package + (name "catcodec") + (version "1.0.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://binaries.openttd.org/extra/catcodec/" + version "/catcodec-" version "-source.tar.xz")) + (sha256 + (base32 + "1qg0c2i4p29sxj0q6qp2jynlrzm5pphz2xhcjqlxa69ycrnlxzs7")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no tests + #:make-flags (list (string-append "prefix=" %output)) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (home-page "http://dev.openttdcoop.org/projects/catcodec") + (synopsis "Encode/decode OpenTTD sounds") + (description "catcodec encodes and decodes sounds for OpenTTD. These +sounds are not much more than some metadata (description and filename) and raw +PCM data.") + (license license:gpl2))) + (define-public gzochi (package (name "gzochi") -- 2.14.1
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 00:54:02 GMT) Full text and rfc822 format available.Message #17 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: 28453 <at> debbugs.gnu.org Cc: Arun Isaac <arunisaac <at> systemreboot.net> Subject: [PATCH 4/5] gnu: Add openttd-openmsx. Date: Thu, 14 Sep 2017 06:21:31 +0530
* gnu/packages/games.scm (openttd-openmsx): New variable. --- gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 1debd6915..67e987bff 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2555,6 +2555,44 @@ it possible to play OpenTTD without requiring the proprietary sound files from the original Transport Tycoon Deluxe.") (license license:cc-sampling-plus-1.0))) +(define openttd-openmsx + (package + (name "openttd-openmsx") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://binaries.openttd.org/extra/openmsx/" + version "/openmsx-" version "-source.tar.gz")) + (sha256 + (base32 + "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c")))) + (build-system gnu-build-system) + (native-inputs + `(("python" ,python-2))) + (arguments + `(#:make-flags + (list (string-append "INSTALL_DIR=" %output + "/share/games/openttd/baseset")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'install 'post-install + ;; Rename openmsx-version to openmsx + (lambda* (#:key outputs #:allow-other-keys) + (let ((install-directory (string-append (assoc-ref outputs "out") + "/share/games/openttd/baseset"))) + (rename-file (string-append install-directory "/openmsx-" ,version) + (string-append install-directory "/openmsx")) + #t)))))) + (home-page "http://dev.openttdcoop.org/projects/openmsx") + (synopsis "Music set for OpenTTD") + (description "OpenMSX is a music set for OpenTTD which makes it possible +to play OpenTTD without requiring the proprietary music from the original +Transport Tycoon Deluxe.") + (license license:cc-sampling-plus-1.0))) + (define-public openttd (package (inherit openttd-engine) -- 2.14.1
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 00:54:03 GMT) Full text and rfc822 format available.Message #20 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: 28453 <at> debbugs.gnu.org Cc: Arun Isaac <arunisaac <at> systemreboot.net> Subject: [PATCH 2/5] licenses: Add CC-Sampling+ 1.0. Date: Thu, 14 Sep 2017 06:21:29 +0530
* guix/licenses.scm (cc-sampling-plus-1.0): New variable. --- guix/licenses.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guix/licenses.scm b/guix/licenses.scm index b7dadd975..6de611da2 100644 --- a/guix/licenses.scm +++ b/guix/licenses.scm @@ -41,6 +41,7 @@ cc0 cc-by2.0 cc-by3.0 cc-by4.0 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0 + cc-sampling-plus-1.0 cddl1.0 cecill cecill-b cecill-c artistic2.0 clarified-artistic @@ -206,6 +207,11 @@ at URI, which may be a file:// URI pointing the package's tree." "http://creativecommons.org/licenses/by/2.0/" "Creative Commons Attribution 2.0 Generic")) +(define cc-sampling-plus-1.0 + (license "CC-Sampling+ 1.0" + "https://creativecommons.org/licenses/sampling+/1.0" + "Creative Commons Sampling Plus 1.0")) + (define cddl1.0 (license "CDDL 1.0" "http://directory.fsf.org/wiki/License:CDDLv1.0" -- 2.14.1
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 21:02:02 GMT) Full text and rfc822 format available.Message #23 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: 28453 <at> debbugs.gnu.org Subject: Re: [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Fri, 15 Sep 2017 02:31:19 +0530
The commit message of patch 5 is wrong. It should be gnu: openttd: Include openttd-openmsx and openttd-opensfx. I'll make this change in a subsequent patchset once someone reviews this patchset and suggests any other changes.
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 22:46:02 GMT) Full text and rfc822 format available.Message #26 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 1/5] gnu: Add catcodec. Date: Thu, 14 Sep 2017 18:44:55 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: > * gnu/packages/game-development.scm (catcodec): New variable. > --- > gnu/packages/game-development.scm | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm > index c8869a494..7f4d4e1ae 100644 > --- a/gnu/packages/game-development.scm > +++ b/gnu/packages/game-development.scm > @@ -10,6 +10,7 @@ > ;;; Copyright © 2016, 2017 Julian Graham <joolean <at> gmail.com> > ;;; Copyright © 2017 Tobias Geerinckx-Rice <me <at> tobias.gr> > ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com> > +;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -190,6 +191,31 @@ necessary. > ;; The MD5 implementation contained in GRFID is under the zlib license. > (license (list license:gpl2 license:gpl2+ license:zlib)))) > > +(define-public catcodec > + (package > + (name "catcodec") > + (version "1.0.5") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://binaries.openttd.org/extra/catcodec/" > + version "/catcodec-" version "-source.tar.xz")) > + (sha256 > + (base32 > + "1qg0c2i4p29sxj0q6qp2jynlrzm5pphz2xhcjqlxa69ycrnlxzs7")))) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ; no tests > + #:make-flags (list (string-append "prefix=" %output)) > + #:phases (modify-phases %standard-phases > + (delete 'configure)))) > + (home-page "http://dev.openttdcoop.org/projects/catcodec") > + (synopsis "Encode/decode OpenTTD sounds") > + (description "catcodec encodes and decodes sounds for OpenTTD. These > +sounds are not much more than some metadata (description and filename) and raw > +PCM data.") > + (license license:gpl2))) > + > (define-public gzochi > (package > (name "gzochi") LGTM.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 22:48:01 GMT) Full text and rfc822 format available.Message #29 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 2/5] licenses: Add CC-Sampling+ 1.0. Date: Thu, 14 Sep 2017 18:46:52 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: > * guix/licenses.scm (cc-sampling-plus-1.0): New variable. > --- > guix/licenses.scm | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/guix/licenses.scm b/guix/licenses.scm > index b7dadd975..6de611da2 100644 > --- a/guix/licenses.scm > +++ b/guix/licenses.scm > @@ -41,6 +41,7 @@ > cc0 > cc-by2.0 cc-by3.0 cc-by4.0 > cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0 > + cc-sampling-plus-1.0 > cddl1.0 > cecill cecill-b cecill-c > artistic2.0 clarified-artistic > @@ -206,6 +207,11 @@ at URI, which may be a file:// URI pointing the package's tree." > "http://creativecommons.org/licenses/by/2.0/" > "Creative Commons Attribution 2.0 Generic")) > > +(define cc-sampling-plus-1.0 > + (license "CC-Sampling+ 1.0" > + "https://creativecommons.org/licenses/sampling+/1.0" > + "Creative Commons Sampling Plus 1.0")) > + > (define cddl1.0 > (license "CDDL 1.0" > "http://directory.fsf.org/wiki/License:CDDLv1.0" LGTM, though I'm not sure if the license is okay for Guix. FWIW, I don't notice any immediate problems.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 22:52:02 GMT) Full text and rfc822 format available.Message #32 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 3/5] gnu: Add openttd-opensfx. Date: Thu, 14 Sep 2017 18:50:26 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: > * gnu/packages/games.scm (openttd-opensfx): New variable. > --- > gnu/packages/games.scm | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 7bfd05cc7..1debd6915 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2525,6 +2525,36 @@ OpenGFX provides you with... > @end enumerate") > (license license:gpl2))) > > +(define openttd-opensfx > + (package > + (name "openttd-opensfx") > + (version "0.2.3") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://binaries.openttd.org/extra/opensfx/" > + version "/opensfx-" version "-source.tar.gz")) > + (sha256 > + (base32 > + "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5")))) > + (build-system gnu-build-system) > + (native-inputs > + `(("catcodec" ,catcodec) > + ("python" ,python-2))) > + (arguments > + `(#:make-flags > + (list (string-append "INSTALL_DIR=" %output > + "/share/games/openttd/baseset/opensfx")) > + #:phases (modify-phases %standard-phases > + (delete 'configure)))) I wrote a tiny phase that makes this package reproducible: (replace 'configure (lambda _ ;; Remove the time dependency of the installed tarball by ;; setting the modification times if its members to 0. (substitute* "scripts/Makefile.def" (("-cf") " --mtime=@0 -cf")) #t)) > + (home-page "http://dev.openttdcoop.org/projects/opensfx") > + (synopsis "Base sounds for OpenTTD") > + (description "OpenSFX is a set of free base sounds for OpenTTD which make > +it possible to play OpenTTD without requiring the proprietary sound files from > +the original Transport Tycoon Deluxe.") > + (license license:cc-sampling-plus-1.0))) > + > (define-public openttd > (package > (inherit openttd-engine) Other than that, LGTM.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 22:54:01 GMT) Full text and rfc822 format available.Message #35 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 4/5] gnu: Add openttd-openmsx. Date: Thu, 14 Sep 2017 18:52:29 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: > * gnu/packages/games.scm (openttd-openmsx): New variable. > --- > gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 1debd6915..67e987bff 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2555,6 +2555,44 @@ it possible to play OpenTTD without requiring the proprietary sound files from > the original Transport Tycoon Deluxe.") > (license license:cc-sampling-plus-1.0))) > > +(define openttd-openmsx > + (package > + (name "openttd-openmsx") > + (version "0.3.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://binaries.openttd.org/extra/openmsx/" > + version "/openmsx-" version "-source.tar.gz")) > + (sha256 > + (base32 > + "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c")))) > + (build-system gnu-build-system) > + (native-inputs > + `(("python" ,python-2))) > + (arguments > + `(#:make-flags > + (list (string-append "INSTALL_DIR=" %output > + "/share/games/openttd/baseset")) > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (add-after 'install 'post-install > + ;; Rename openmsx-version to openmsx > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((install-directory (string-append (assoc-ref outputs "out") > + "/share/games/openttd/baseset"))) > + (rename-file (string-append install-directory "/openmsx-" ,version) > + (string-append install-directory "/openmsx")) > + #t)))))) > + (home-page "http://dev.openttdcoop.org/projects/openmsx") > + (synopsis "Music set for OpenTTD") > + (description "OpenMSX is a music set for OpenTTD which makes it possible > +to play OpenTTD without requiring the proprietary music from the original > +Transport Tycoon Deluxe.") > + (license license:cc-sampling-plus-1.0))) > + > (define-public openttd > (package > (inherit openttd-engine) This *looks* fine, but I can't hear music when I run the resulting openttd binary. If it isn't something weird on my end, I suspect it has to do with the timidity++ dependency in the openttd package.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Thu, 14 Sep 2017 23:01:01 GMT) Full text and rfc822 format available.Message #38 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Thu, 14 Sep 2017 18:59:20 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: > * gnu/packages/games.scm (openttd-opengfx)[arguments]: Change installation > directory from /share/openttd/baseset/opengfx to > /share/games/openttd/baseset/opengfx. > (openttd-engine)[arguments]: Support #:configure-flags keyword argument in > 'configure' phase. > (openttd)[inputs]: Add timidity++. > [native-inputs]: Add openttd-openmsx and openttd-opensfx. > [arguments]: Configure with timidity as MIDI player. Install data from > openttd-openmsx and openttd-opensfx. > --- > gnu/packages/games.scm | 57 ++++++++++++++++++++++++++------------------------ > 1 file changed, 30 insertions(+), 27 deletions(-) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 67e987bff..406eb5471 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2427,17 +2427,19 @@ and a game metadata scraper.") > ;; The build process fails if the configure script is passed the > ;; option "--enable-fast-install". > (replace 'configure > - (lambda* (#:key inputs outputs #:allow-other-keys) > + (lambda* (#:key inputs outputs (configure-flags '()) > + #:allow-other-keys) > (let ((out (assoc-ref outputs "out")) > (lzo (assoc-ref inputs "lzo"))) > (zero? > - (system* "./configure" > - (string-append "--prefix=" out) > - ;; Provide the "lzo" path. > - (string-append "--with-liblzo2=" > - lzo "/lib/liblzo2.a") > - ;; Put the binary in 'bin' instead of 'games'. > - "--binary-dir=bin")))))))) > + (apply system* "./configure" > + (string-append "--prefix=" out) > + ;; Provide the "lzo" path. > + (string-append "--with-liblzo2=" > + lzo "/lib/liblzo2.a") > + ;; Put the binary in 'bin' instead of 'games'. > + "--binary-dir=bin" > + configure-flags)))))))) > (native-inputs `(("pkg-config" ,pkg-config))) > (inputs > `(("allegro" ,allegro-4) > @@ -2464,10 +2466,6 @@ engine. When you start it you will be prompted to download a graphics set.") > ;; different terms. > (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib)))) > > -;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make > -;; 'openttd' a wrapper around them. The engine is playable by itself, > -;; but it asks a user to download graphics if it's not found. > - > (define openttd-opengfx > (package > (name "openttd-opengfx") > @@ -2485,7 +2483,7 @@ engine. When you start it you will be prompted to download a graphics set.") > '(#:make-flags (list "CC=gcc" > (string-append "INSTALL_DIR=" > (assoc-ref %outputs "out") > - "/share/openttd/baseset")) > + "/share/games/openttd/baseset/opengfx")) > #:phases > (modify-phases %standard-phases > (replace 'configure > @@ -2598,22 +2596,27 @@ Transport Tycoon Deluxe.") > (inherit openttd-engine) > (name "openttd") > (arguments > - (substitute-keyword-arguments (package-arguments openttd-engine) > - ((#:phases phases) > - `(modify-phases ,phases > - (add-after 'install 'install-data > - (lambda* (#:key inputs outputs #:allow-other-keys) > - (let* > - ((opengfx (assoc-ref inputs "opengfx")) > - (out (assoc-ref outputs "out")) > - (gfx-dir > - (string-append out > - "/share/games/openttd/baseset/opengfx"))) > - (mkdir-p gfx-dir) > - (copy-recursively opengfx gfx-dir)) > - #t)))))) > + `(#:configure-flags > + (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++") > + "/bin/timidity")) > + ,@(substitute-keyword-arguments (package-arguments openttd-engine) > + ((#:phases phases) > + `(modify-phases ,phases > + (add-after 'install 'install-data > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (for-each > + (lambda (input) > + (copy-recursively (assoc-ref inputs input) > + (assoc-ref outputs "out"))) > + (list "opengfx" "openmsx" "opensfx")) > + #t))))))) > + (inputs > + `(("timidity++" ,timidity++) > + ,@(package-inputs openttd-engine))) > (native-inputs > `(("opengfx" ,openttd-opengfx) > + ("openmsx" ,openttd-openmsx) > + ("opensfx" ,openttd-opensfx) > ,@(package-native-inputs openttd-engine))))) > > (define-public pinball LGTM. Also, could you please clean up after my earlier mistake and disable parallel building for openttd-opengfx? It wouldn't build reliably for me without that change (and I wondered if it gave anyone else trouble). Thanks for working on this!
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Sat, 16 Sep 2017 17:05:02 GMT) Full text and rfc822 format available.Message #41 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: Kei Kebreau <kkebreau <at> posteo.net> Cc: 28453 <at> debbugs.gnu.org, Arun Isaac <arunisaac <at> systemreboot.net> Subject: Re: [bug#28453] [PATCH 3/5] gnu: Add openttd-opensfx. Date: Sat, 16 Sep 2017 22:34:20 +0530
> > I wrote a tiny phase that makes this package reproducible: > > (replace 'configure > (lambda _ > ;; Remove the time dependency of the installed tarball by > ;; setting the modification times if its members to 0. > (substitute* "scripts/Makefile.def" > (("-cf") " --mtime=@0 -cf")) > #t)) Thanks, I'll include this phase in the updated patchset.
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Sat, 16 Sep 2017 17:07:01 GMT) Full text and rfc822 format available.Message #44 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: Kei Kebreau <kkebreau <at> posteo.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 4/5] gnu: Add openttd-openmsx. Date: Sat, 16 Sep 2017 22:36:13 +0530
> This *looks* fine, but I can't hear music when I run the resulting > openttd binary. If it isn't something weird on my end, I suspect it has > to do with the timidity++ dependency in the openttd package. I do hear music on my system. Could it be something wrong on your end? I don't think I have any idea what that could be. Can you try guix environment --ad-hoc openttd timidity++ -- openttd and see if music plays?
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Sat, 16 Sep 2017 17:09:01 GMT) Full text and rfc822 format available.Message #47 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: Kei Kebreau <kkebreau <at> posteo.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Sat, 16 Sep 2017 22:38:47 +0530
> LGTM. Also, could you please clean up after my earlier mistake and > disable parallel building for openttd-opengfx? It wouldn't build > reliably for me without that change (and I wondered if it gave anyone > else trouble). I did build openttd-opengfx a few times (with parallel building), and I didn't have any issues. Could you check again on your machine? > Thanks for working on this! Thanks for reviewing! :-)
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Sun, 17 Sep 2017 17:08:01 GMT) Full text and rfc822 format available.Message #50 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 4/5] gnu: Add openttd-openmsx. Date: Sun, 17 Sep 2017 13:06:45 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: >> This *looks* fine, but I can't hear music when I run the resulting >> openttd binary. If it isn't something weird on my end, I suspect it has >> to do with the timidity++ dependency in the openttd package. > > I do hear music on my system. Could it be something wrong on your end? I > don't think I have any idea what that could be. > > Can you try > > guix environment --ad-hoc openttd timidity++ -- openttd > > and see if music plays? It was my fault! I emptied my ~/.openttd configuration directory and the music plays.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Sun, 17 Sep 2017 21:56:02 GMT) Full text and rfc822 format available.Message #53 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Sun, 17 Sep 2017 17:53:48 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: >> LGTM. Also, could you please clean up after my earlier mistake and >> disable parallel building for openttd-opengfx? It wouldn't build >> reliably for me without that change (and I wondered if it gave anyone >> else trouble). > > I did build openttd-opengfx a few times (with parallel building), and I > didn't have any issues. Could you check again on your machine? > >> Thanks for working on this! > > Thanks for reviewing! :-) I used "--rounds=10" and it seems to be okay. I'll check again just in case something really is going wrong, though.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Mon, 18 Sep 2017 13:55:02 GMT) Full text and rfc822 format available.Message #56 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: Kei Kebreau <kkebreau <at> posteo.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 4/5] gnu: Add openttd-openmsx. Date: Mon, 18 Sep 2017 19:24:36 +0530
>>> This *looks* fine, but I can't hear music when I run the resulting >>> openttd binary. If it isn't something weird on my end, I suspect it has >>> to do with the timidity++ dependency in the openttd package. >> >> I do hear music on my system. Could it be something wrong on your end? I >> don't think I have any idea what that could be. >> > It was my fault! I emptied my ~/.openttd configuration directory and the > music plays. Ah, yes! I had this problem too. When there are no music sets installed, the "NoMusic" set gets selected in the default ~/.openttd configuration. Then, if you install openmsx, you have to manually set the music set.
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Mon, 18 Sep 2017 20:34:02 GMT) Full text and rfc822 format available.Message #59 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Mon, 18 Sep 2017 16:32:01 -0400
[Message part 1 (text/plain, inline)]
Kei Kebreau <kkebreau <at> posteo.net> writes: > Arun Isaac <arunisaac <at> systemreboot.net> writes: > >>> LGTM. Also, could you please clean up after my earlier mistake and >>> disable parallel building for openttd-opengfx? It wouldn't build >>> reliably for me without that change (and I wondered if it gave anyone >>> else trouble). >> >> I did build openttd-opengfx a few times (with parallel building), and I >> didn't have any issues. Could you check again on your machine? >> >>> Thanks for working on this! >> >> Thanks for reviewing! :-) > > I used "--rounds=10" and it seems to be okay. I'll check again just in > case something really is going wrong, though. I tried another 10-round build with parallel building enabled and a 10-round build without parallel building. The parallel builds never made it through all 10 rounds, but the other builds were fine.
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Tue, 19 Sep 2017 19:55:01 GMT) Full text and rfc822 format available.Message #62 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: Kei Kebreau <kkebreau <at> posteo.net> Cc: 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Wed, 20 Sep 2017 01:24:10 +0530
[Message part 1 (text/plain, inline)]
Please find attached an updated patchset. Changes are as follows: * Disabled parallel build. * Included a make-reproducible phase for openttd-opensfx. * Changed the license for openmsx from cc-sampling+ to gpl2. It was wrong earlier. * Changed python dependency to python2-minimal for both openttd-openmsx and openttd-opensfx.
[openttd-series.patch (text/x-patch, inline)]
From 8e1a146fde935cc1635c7a9f162e95c16871a8cf Mon Sep 17 00:00:00 2001 From: Arun Isaac <arunisaac <at> systemreboot.net> Date: Wed, 13 Sep 2017 22:06:12 +0530 Subject: [PATCH 1/6] gnu: Add catcodec. * gnu/packages/game-development.scm (catcodec): New variable. --- gnu/packages/game-development.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 5633456d4..9916a1cb3 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2017 Tobias Geerinckx-Rice <me <at> tobias.gr> ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com> ;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10 <at> gmail.com> +;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -192,6 +193,31 @@ necessary. ;; The MD5 implementation contained in GRFID is under the zlib license. (license (list license:gpl2 license:gpl2+ license:zlib)))) +(define-public catcodec + (package + (name "catcodec") + (version "1.0.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://binaries.openttd.org/extra/catcodec/" + version "/catcodec-" version "-source.tar.xz")) + (sha256 + (base32 + "1qg0c2i4p29sxj0q6qp2jynlrzm5pphz2xhcjqlxa69ycrnlxzs7")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no tests + #:make-flags (list (string-append "prefix=" %output)) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (home-page "http://dev.openttdcoop.org/projects/catcodec") + (synopsis "Encode/decode OpenTTD sounds") + (description "catcodec encodes and decodes sounds for OpenTTD. These +sounds are not much more than some metadata (description and filename) and raw +PCM data.") + (license license:gpl2))) + (define-public gzochi (package (name "gzochi") -- 2.14.1 From f5c1a501c9ba193178db40d514aa337807cdfefb Mon Sep 17 00:00:00 2001 From: Arun Isaac <arunisaac <at> systemreboot.net> Date: Wed, 13 Sep 2017 22:21:56 +0530 Subject: [PATCH 2/6] licenses: Add CC-Sampling+ 1.0. * guix/licenses.scm (cc-sampling-plus-1.0): New variable. --- guix/licenses.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guix/licenses.scm b/guix/licenses.scm index b7dadd975..6de611da2 100644 --- a/guix/licenses.scm +++ b/guix/licenses.scm @@ -41,6 +41,7 @@ cc0 cc-by2.0 cc-by3.0 cc-by4.0 cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0 + cc-sampling-plus-1.0 cddl1.0 cecill cecill-b cecill-c artistic2.0 clarified-artistic @@ -206,6 +207,11 @@ at URI, which may be a file:// URI pointing the package's tree." "http://creativecommons.org/licenses/by/2.0/" "Creative Commons Attribution 2.0 Generic")) +(define cc-sampling-plus-1.0 + (license "CC-Sampling+ 1.0" + "https://creativecommons.org/licenses/sampling+/1.0" + "Creative Commons Sampling Plus 1.0")) + (define cddl1.0 (license "CDDL 1.0" "http://directory.fsf.org/wiki/License:CDDLv1.0" -- 2.14.1 From 3c5f0b4ecbe05f7957c324946ab108fce73dd875 Mon Sep 17 00:00:00 2001 From: Arun Isaac <arunisaac <at> systemreboot.net> Date: Wed, 13 Sep 2017 22:35:02 +0530 Subject: [PATCH 3/6] gnu: Add openttd-opensfx. * gnu/packages/games.scm (openttd-opensfx): New variable. --- gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 7bfd05cc7..ed386fc84 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2525,6 +2525,44 @@ OpenGFX provides you with... @end enumerate") (license license:gpl2))) +(define openttd-opensfx + (package + (name "openttd-opensfx") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://binaries.openttd.org/extra/opensfx/" + version "/opensfx-" version "-source.tar.gz")) + (sha256 + (base32 + "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5")))) + (build-system gnu-build-system) + (native-inputs + `(("catcodec" ,catcodec) + ("python" ,python2-minimal))) + (arguments + `(#:make-flags + (list (string-append "INSTALL_DIR=" %output + "/share/games/openttd/baseset/opensfx")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'make-reproducible + (lambda _ + ;; Remove the time dependency of the installed tarball by setting + ;; the modification times if its members to 0. + (substitute* "scripts/Makefile.def" + (("-cf") " --mtime=@0 -cf")) + #t)) + (delete 'configure)))) + (home-page "http://dev.openttdcoop.org/projects/opensfx") + (synopsis "Base sounds for OpenTTD") + (description "OpenSFX is a set of free base sounds for OpenTTD which make +it possible to play OpenTTD without requiring the proprietary sound files from +the original Transport Tycoon Deluxe.") + (license license:cc-sampling-plus-1.0))) + (define-public openttd (package (inherit openttd-engine) -- 2.14.1 From 041b20b236b936fea9813d65e2bc76c657f2f7a0 Mon Sep 17 00:00:00 2001 From: Arun Isaac <arunisaac <at> systemreboot.net> Date: Thu, 14 Sep 2017 04:18:03 +0530 Subject: [PATCH 4/6] gnu: Add openttd-openmsx. * gnu/packages/games.scm (openttd-openmsx): New variable. --- gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index ed386fc84..891c17ab1 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2563,6 +2563,44 @@ it possible to play OpenTTD without requiring the proprietary sound files from the original Transport Tycoon Deluxe.") (license license:cc-sampling-plus-1.0))) +(define openttd-openmsx + (package + (name "openttd-openmsx") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://binaries.openttd.org/extra/openmsx/" + version "/openmsx-" version "-source.tar.gz")) + (sha256 + (base32 + "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c")))) + (build-system gnu-build-system) + (native-inputs + `(("python" ,python2-minimal))) + (arguments + `(#:make-flags + (list (string-append "INSTALL_DIR=" %output + "/share/games/openttd/baseset")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'install 'post-install + ;; Rename openmsx-version to openmsx + (lambda* (#:key outputs #:allow-other-keys) + (let ((install-directory (string-append (assoc-ref outputs "out") + "/share/games/openttd/baseset"))) + (rename-file (string-append install-directory "/openmsx-" ,version) + (string-append install-directory "/openmsx")) + #t)))))) + (home-page "http://dev.openttdcoop.org/projects/openmsx") + (synopsis "Music set for OpenTTD") + (description "OpenMSX is a music set for OpenTTD which makes it possible +to play OpenTTD without requiring the proprietary music from the original +Transport Tycoon Deluxe.") + (license license:gpl2))) + (define-public openttd (package (inherit openttd-engine) -- 2.14.1 From 63ec3d03804e0dd093472d7e0a7a78be4e6ece5c Mon Sep 17 00:00:00 2001 From: Arun Isaac <arunisaac <at> systemreboot.net> Date: Thu, 14 Sep 2017 04:19:26 +0530 Subject: [PATCH 5/6] gnu: openttd: Include openttd-openmsx and openttd-opensfx. * gnu/packages/games.scm (openttd-opengfx)[arguments]: Change installation directory from /share/openttd/baseset/opengfx to /share/games/openttd/baseset/opengfx. (openttd-engine)[arguments]: Support #:configure-flags keyword argument in 'configure' phase. (openttd)[inputs]: Add timidity++. [native-inputs]: Add openttd-openmsx and openttd-opensfx. [arguments]: Configure with timidity as MIDI player. Install data from openttd-openmsx and openttd-opensfx. --- gnu/packages/games.scm | 57 ++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 891c17ab1..022a3ca44 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2427,17 +2427,19 @@ and a game metadata scraper.") ;; The build process fails if the configure script is passed the ;; option "--enable-fast-install". (replace 'configure - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs (configure-flags '()) + #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (lzo (assoc-ref inputs "lzo"))) (zero? - (system* "./configure" - (string-append "--prefix=" out) - ;; Provide the "lzo" path. - (string-append "--with-liblzo2=" - lzo "/lib/liblzo2.a") - ;; Put the binary in 'bin' instead of 'games'. - "--binary-dir=bin")))))))) + (apply system* "./configure" + (string-append "--prefix=" out) + ;; Provide the "lzo" path. + (string-append "--with-liblzo2=" + lzo "/lib/liblzo2.a") + ;; Put the binary in 'bin' instead of 'games'. + "--binary-dir=bin" + configure-flags)))))))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("allegro" ,allegro-4) @@ -2464,10 +2466,6 @@ engine. When you start it you will be prompted to download a graphics set.") ;; different terms. (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib)))) -;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make -;; 'openttd' a wrapper around them. The engine is playable by itself, -;; but it asks a user to download graphics if it's not found. - (define openttd-opengfx (package (name "openttd-opengfx") @@ -2485,7 +2483,7 @@ engine. When you start it you will be prompted to download a graphics set.") '(#:make-flags (list "CC=gcc" (string-append "INSTALL_DIR=" (assoc-ref %outputs "out") - "/share/openttd/baseset")) + "/share/games/openttd/baseset/opengfx")) #:phases (modify-phases %standard-phases (replace 'configure @@ -2606,22 +2604,27 @@ Transport Tycoon Deluxe.") (inherit openttd-engine) (name "openttd") (arguments - (substitute-keyword-arguments (package-arguments openttd-engine) - ((#:phases phases) - `(modify-phases ,phases - (add-after 'install 'install-data - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* - ((opengfx (assoc-ref inputs "opengfx")) - (out (assoc-ref outputs "out")) - (gfx-dir - (string-append out - "/share/games/openttd/baseset/opengfx"))) - (mkdir-p gfx-dir) - (copy-recursively opengfx gfx-dir)) - #t)))))) + `(#:configure-flags + (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++") + "/bin/timidity")) + ,@(substitute-keyword-arguments (package-arguments openttd-engine) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'install 'install-data + (lambda* (#:key inputs outputs #:allow-other-keys) + (for-each + (lambda (input) + (copy-recursively (assoc-ref inputs input) + (assoc-ref outputs "out"))) + (list "opengfx" "openmsx" "opensfx")) + #t))))))) + (inputs + `(("timidity++" ,timidity++) + ,@(package-inputs openttd-engine))) (native-inputs `(("opengfx" ,openttd-opengfx) + ("openmsx" ,openttd-openmsx) + ("opensfx" ,openttd-opensfx) ,@(package-native-inputs openttd-engine))))) (define-public pinball -- 2.14.1 From 17f0628c11256f22c536b3723365fc9a1ccdafdd Mon Sep 17 00:00:00 2001 From: Arun Isaac <arunisaac <at> systemreboot.net> Date: Tue, 19 Sep 2017 18:10:27 +0530 Subject: [PATCH 6/6] gnu: openttd-opengfx: Disable parallel build. * gnu/packages/games.scm (openttd-opengfx)[arguments]: Set #:parallel-build? to #f. --- gnu/packages/games.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 022a3ca44..aef6f0121 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2501,7 +2501,8 @@ engine. When you start it you will be prompted to download a graphics set.") ;; different software versions than upstream does, some of the md5sums ;; are different. However, the package is still reproducible, it's safe ;; to disable this test. - #:tests? #f)) + #:tests? #f + #:parallel-build? #f)) (native-inputs `(("dos2unix" ,dos2unix) ("gimp" ,gimp) ("grfcodec" ,grfcodec) -- 2.14.1
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Wed, 20 Sep 2017 18:43:01 GMT) Full text and rfc822 format available.Message #65 received at 28453 <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: guix-devel <at> gnu.org, 28453 <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Wed, 20 Sep 2017 14:41:25 -0400
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes: > Please find attached an updated patchset. > > Changes are as follows: > > * Disabled parallel build. > * Included a make-reproducible phase for openttd-opensfx. > * Changed the license for openmsx from cc-sampling+ to gpl2. It was > wrong earlier. > * Changed python dependency to python2-minimal for both openttd-openmsx > and openttd-opensfx. > >>From 8e1a146fde935cc1635c7a9f162e95c16871a8cf Mon Sep 17 00:00:00 2001 > From: Arun Isaac <arunisaac <at> systemreboot.net> > Date: Wed, 13 Sep 2017 22:06:12 +0530 > Subject: [PATCH 1/6] gnu: Add catcodec. > > * gnu/packages/game-development.scm (catcodec): New variable. > --- > gnu/packages/game-development.scm | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm > index 5633456d4..9916a1cb3 100644 > --- a/gnu/packages/game-development.scm > +++ b/gnu/packages/game-development.scm > @@ -11,6 +11,7 @@ > ;;; Copyright © 2017 Tobias Geerinckx-Rice <me <at> tobias.gr> > ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com> > ;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10 <at> gmail.com> > +;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -192,6 +193,31 @@ necessary. > ;; The MD5 implementation contained in GRFID is under the zlib license. > (license (list license:gpl2 license:gpl2+ license:zlib)))) > > +(define-public catcodec > + (package > + (name "catcodec") > + (version "1.0.5") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://binaries.openttd.org/extra/catcodec/" > + version "/catcodec-" version "-source.tar.xz")) > + (sha256 > + (base32 > + "1qg0c2i4p29sxj0q6qp2jynlrzm5pphz2xhcjqlxa69ycrnlxzs7")))) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ; no tests > + #:make-flags (list (string-append "prefix=" %output)) > + #:phases (modify-phases %standard-phases > + (delete 'configure)))) > + (home-page "http://dev.openttdcoop.org/projects/catcodec") > + (synopsis "Encode/decode OpenTTD sounds") > + (description "catcodec encodes and decodes sounds for OpenTTD. These > +sounds are not much more than some metadata (description and filename) and raw > +PCM data.") > + (license license:gpl2))) > + > (define-public gzochi > (package > (name "gzochi") > -- > 2.14.1 > >>From f5c1a501c9ba193178db40d514aa337807cdfefb Mon Sep 17 00:00:00 2001 > From: Arun Isaac <arunisaac <at> systemreboot.net> > Date: Wed, 13 Sep 2017 22:21:56 +0530 > Subject: [PATCH 2/6] licenses: Add CC-Sampling+ 1.0. > > * guix/licenses.scm (cc-sampling-plus-1.0): New variable. > --- > guix/licenses.scm | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/guix/licenses.scm b/guix/licenses.scm > index b7dadd975..6de611da2 100644 > --- a/guix/licenses.scm > +++ b/guix/licenses.scm > @@ -41,6 +41,7 @@ > cc0 > cc-by2.0 cc-by3.0 cc-by4.0 > cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0 > + cc-sampling-plus-1.0 > cddl1.0 > cecill cecill-b cecill-c > artistic2.0 clarified-artistic > @@ -206,6 +207,11 @@ at URI, which may be a file:// URI pointing the package's tree." > "http://creativecommons.org/licenses/by/2.0/" > "Creative Commons Attribution 2.0 Generic")) > > +(define cc-sampling-plus-1.0 > + (license "CC-Sampling+ 1.0" > + "https://creativecommons.org/licenses/sampling+/1.0" > + "Creative Commons Sampling Plus 1.0")) > + > (define cddl1.0 > (license "CDDL 1.0" > "http://directory.fsf.org/wiki/License:CDDLv1.0" > -- > 2.14.1 > >>From 3c5f0b4ecbe05f7957c324946ab108fce73dd875 Mon Sep 17 00:00:00 2001 > From: Arun Isaac <arunisaac <at> systemreboot.net> > Date: Wed, 13 Sep 2017 22:35:02 +0530 > Subject: [PATCH 3/6] gnu: Add openttd-opensfx. > > * gnu/packages/games.scm (openttd-opensfx): New variable. > --- > gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 7bfd05cc7..ed386fc84 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2525,6 +2525,44 @@ OpenGFX provides you with... > @end enumerate") > (license license:gpl2))) > > +(define openttd-opensfx > + (package > + (name "openttd-opensfx") > + (version "0.2.3") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://binaries.openttd.org/extra/opensfx/" > + version "/opensfx-" version "-source.tar.gz")) > + (sha256 > + (base32 > + "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5")))) > + (build-system gnu-build-system) > + (native-inputs > + `(("catcodec" ,catcodec) > + ("python" ,python2-minimal))) > + (arguments > + `(#:make-flags > + (list (string-append "INSTALL_DIR=" %output > + "/share/games/openttd/baseset/opensfx")) > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'make-reproducible > + (lambda _ > + ;; Remove the time dependency of the installed tarball by setting > + ;; the modification times if its members to 0. > + (substitute* "scripts/Makefile.def" > + (("-cf") " --mtime=@0 -cf")) > + #t)) > + (delete 'configure)))) > + (home-page "http://dev.openttdcoop.org/projects/opensfx") > + (synopsis "Base sounds for OpenTTD") > + (description "OpenSFX is a set of free base sounds for OpenTTD which make > +it possible to play OpenTTD without requiring the proprietary sound files from > +the original Transport Tycoon Deluxe.") > + (license license:cc-sampling-plus-1.0))) > + > (define-public openttd > (package > (inherit openttd-engine) > -- > 2.14.1 > >>From 041b20b236b936fea9813d65e2bc76c657f2f7a0 Mon Sep 17 00:00:00 2001 > From: Arun Isaac <arunisaac <at> systemreboot.net> > Date: Thu, 14 Sep 2017 04:18:03 +0530 > Subject: [PATCH 4/6] gnu: Add openttd-openmsx. > > * gnu/packages/games.scm (openttd-openmsx): New variable. > --- > gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index ed386fc84..891c17ab1 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2563,6 +2563,44 @@ it possible to play OpenTTD without requiring the proprietary sound files from > the original Transport Tycoon Deluxe.") > (license license:cc-sampling-plus-1.0))) > > +(define openttd-openmsx > + (package > + (name "openttd-openmsx") > + (version "0.3.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://binaries.openttd.org/extra/openmsx/" > + version "/openmsx-" version "-source.tar.gz")) > + (sha256 > + (base32 > + "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c")))) > + (build-system gnu-build-system) > + (native-inputs > + `(("python" ,python2-minimal))) > + (arguments > + `(#:make-flags > + (list (string-append "INSTALL_DIR=" %output > + "/share/games/openttd/baseset")) > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (add-after 'install 'post-install > + ;; Rename openmsx-version to openmsx > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((install-directory (string-append (assoc-ref outputs "out") > + "/share/games/openttd/baseset"))) > + (rename-file (string-append install-directory "/openmsx-" ,version) > + (string-append install-directory "/openmsx")) > + #t)))))) > + (home-page "http://dev.openttdcoop.org/projects/openmsx") > + (synopsis "Music set for OpenTTD") > + (description "OpenMSX is a music set for OpenTTD which makes it possible > +to play OpenTTD without requiring the proprietary music from the original > +Transport Tycoon Deluxe.") > + (license license:gpl2))) > + > (define-public openttd > (package > (inherit openttd-engine) > -- > 2.14.1 > >>From 63ec3d03804e0dd093472d7e0a7a78be4e6ece5c Mon Sep 17 00:00:00 2001 > From: Arun Isaac <arunisaac <at> systemreboot.net> > Date: Thu, 14 Sep 2017 04:19:26 +0530 > Subject: [PATCH 5/6] gnu: openttd: Include openttd-openmsx and > openttd-opensfx. > > * gnu/packages/games.scm (openttd-opengfx)[arguments]: Change installation > directory from /share/openttd/baseset/opengfx to > /share/games/openttd/baseset/opengfx. > (openttd-engine)[arguments]: Support #:configure-flags keyword argument in > 'configure' phase. > (openttd)[inputs]: Add timidity++. > [native-inputs]: Add openttd-openmsx and openttd-opensfx. > [arguments]: Configure with timidity as MIDI player. Install data from > openttd-openmsx and openttd-opensfx. > --- > gnu/packages/games.scm | 57 ++++++++++++++++++++++++++------------------------ > 1 file changed, 30 insertions(+), 27 deletions(-) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 891c17ab1..022a3ca44 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2427,17 +2427,19 @@ and a game metadata scraper.") > ;; The build process fails if the configure script is passed the > ;; option "--enable-fast-install". > (replace 'configure > - (lambda* (#:key inputs outputs #:allow-other-keys) > + (lambda* (#:key inputs outputs (configure-flags '()) > + #:allow-other-keys) > (let ((out (assoc-ref outputs "out")) > (lzo (assoc-ref inputs "lzo"))) > (zero? > - (system* "./configure" > - (string-append "--prefix=" out) > - ;; Provide the "lzo" path. > - (string-append "--with-liblzo2=" > - lzo "/lib/liblzo2.a") > - ;; Put the binary in 'bin' instead of 'games'. > - "--binary-dir=bin")))))))) > + (apply system* "./configure" > + (string-append "--prefix=" out) > + ;; Provide the "lzo" path. > + (string-append "--with-liblzo2=" > + lzo "/lib/liblzo2.a") > + ;; Put the binary in 'bin' instead of 'games'. > + "--binary-dir=bin" > + configure-flags)))))))) > (native-inputs `(("pkg-config" ,pkg-config))) > (inputs > `(("allegro" ,allegro-4) > @@ -2464,10 +2466,6 @@ engine. When you start it you will be prompted to download a graphics set.") > ;; different terms. > (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib)))) > > -;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make > -;; 'openttd' a wrapper around them. The engine is playable by itself, > -;; but it asks a user to download graphics if it's not found. > - > (define openttd-opengfx > (package > (name "openttd-opengfx") > @@ -2485,7 +2483,7 @@ engine. When you start it you will be prompted to download a graphics set.") > '(#:make-flags (list "CC=gcc" > (string-append "INSTALL_DIR=" > (assoc-ref %outputs "out") > - "/share/openttd/baseset")) > + "/share/games/openttd/baseset/opengfx")) > #:phases > (modify-phases %standard-phases > (replace 'configure > @@ -2606,22 +2604,27 @@ Transport Tycoon Deluxe.") > (inherit openttd-engine) > (name "openttd") > (arguments > - (substitute-keyword-arguments (package-arguments openttd-engine) > - ((#:phases phases) > - `(modify-phases ,phases > - (add-after 'install 'install-data > - (lambda* (#:key inputs outputs #:allow-other-keys) > - (let* > - ((opengfx (assoc-ref inputs "opengfx")) > - (out (assoc-ref outputs "out")) > - (gfx-dir > - (string-append out > - "/share/games/openttd/baseset/opengfx"))) > - (mkdir-p gfx-dir) > - (copy-recursively opengfx gfx-dir)) > - #t)))))) > + `(#:configure-flags > + (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++") > + "/bin/timidity")) > + ,@(substitute-keyword-arguments (package-arguments openttd-engine) > + ((#:phases phases) > + `(modify-phases ,phases > + (add-after 'install 'install-data > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (for-each > + (lambda (input) > + (copy-recursively (assoc-ref inputs input) > + (assoc-ref outputs "out"))) > + (list "opengfx" "openmsx" "opensfx")) > + #t))))))) > + (inputs > + `(("timidity++" ,timidity++) > + ,@(package-inputs openttd-engine))) > (native-inputs > `(("opengfx" ,openttd-opengfx) > + ("openmsx" ,openttd-openmsx) > + ("opensfx" ,openttd-opensfx) > ,@(package-native-inputs openttd-engine))))) > > (define-public pinball > -- > 2.14.1 > >>From 17f0628c11256f22c536b3723365fc9a1ccdafdd Mon Sep 17 00:00:00 2001 > From: Arun Isaac <arunisaac <at> systemreboot.net> > Date: Tue, 19 Sep 2017 18:10:27 +0530 > Subject: [PATCH 6/6] gnu: openttd-opengfx: Disable parallel build. > > * gnu/packages/games.scm (openttd-opengfx)[arguments]: Set #:parallel-build? > to #f. > --- > gnu/packages/games.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 022a3ca44..aef6f0121 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -2501,7 +2501,8 @@ engine. When you start it you will be prompted to download a graphics set.") > ;; different software versions than upstream does, some of the md5sums > ;; are different. However, the package is still reproducible, it's safe > ;; to disable this test. > - #:tests? #f)) > + #:tests? #f > + #:parallel-build? #f)) > (native-inputs `(("dos2unix" ,dos2unix) > ("gimp" ,gimp) > ("grfcodec" ,grfcodec) LGTM. I'll commit as soon as we get a clear okay on the cc-sampling-plus 1.0 license. I've cc'ed the guix-devel list in hopes of getting quicker feedback.
[signature.asc (application/pgp-signature, inline)]
Kei Kebreau <kkebreau <at> posteo.net>
:Arun Isaac <arunisaac <at> systemreboot.net>
:Message #70 received at 28453-done <at> debbugs.gnu.org (full text, mbox):
From: Kei Kebreau <kkebreau <at> posteo.net> To: Arun Isaac <arunisaac <at> systemreboot.net> Cc: guix-devel <at> gnu.org, 28453-done <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Fri, 22 Sep 2017 08:07:00 -0400
[Message part 1 (text/plain, inline)]
Kei Kebreau <kkebreau <at> posteo.net> writes: > Arun Isaac <arunisaac <at> systemreboot.net> writes: > >> Please find attached an updated patchset. >> >> Changes are as follows: >> >> * Disabled parallel build. >> * Included a make-reproducible phase for openttd-opensfx. >> * Changed the license for openmsx from cc-sampling+ to gpl2. It was >> wrong earlier. >> * Changed python dependency to python2-minimal for both openttd-openmsx >> and openttd-opensfx. >> >>>From 8e1a146fde935cc1635c7a9f162e95c16871a8cf Mon Sep 17 00:00:00 2001 >> From: Arun Isaac <arunisaac <at> systemreboot.net> >> Date: Wed, 13 Sep 2017 22:06:12 +0530 >> Subject: [PATCH 1/6] gnu: Add catcodec. >> >> * gnu/packages/game-development.scm (catcodec): New variable. >> --- >> gnu/packages/game-development.scm | 26 ++++++++++++++++++++++++++ >> 1 file changed, 26 insertions(+) >> >> diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm >> index 5633456d4..9916a1cb3 100644 >> --- a/gnu/packages/game-development.scm >> +++ b/gnu/packages/game-development.scm >> @@ -11,6 +11,7 @@ >> ;;; Copyright © 2017 Tobias Geerinckx-Rice <me <at> tobias.gr> >> ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com> >> ;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10 <at> gmail.com> >> +;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net> >> ;;; >> ;;; This file is part of GNU Guix. >> ;;; >> @@ -192,6 +193,31 @@ necessary. >> ;; The MD5 implementation contained in GRFID is under the zlib license. >> (license (list license:gpl2 license:gpl2+ license:zlib)))) >> >> +(define-public catcodec >> + (package >> + (name "catcodec") >> + (version "1.0.5") >> + (source >> + (origin >> + (method url-fetch) >> + (uri (string-append "https://binaries.openttd.org/extra/catcodec/" >> + version "/catcodec-" version "-source.tar.xz")) >> + (sha256 >> + (base32 >> + "1qg0c2i4p29sxj0q6qp2jynlrzm5pphz2xhcjqlxa69ycrnlxzs7")))) >> + (build-system gnu-build-system) >> + (arguments >> + `(#:tests? #f ; no tests >> + #:make-flags (list (string-append "prefix=" %output)) >> + #:phases (modify-phases %standard-phases >> + (delete 'configure)))) >> + (home-page "http://dev.openttdcoop.org/projects/catcodec") >> + (synopsis "Encode/decode OpenTTD sounds") >> + (description "catcodec encodes and decodes sounds for OpenTTD. These >> +sounds are not much more than some metadata (description and filename) and raw >> +PCM data.") >> + (license license:gpl2))) >> + >> (define-public gzochi >> (package >> (name "gzochi") >> -- >> 2.14.1 >> >>>From f5c1a501c9ba193178db40d514aa337807cdfefb Mon Sep 17 00:00:00 2001 >> From: Arun Isaac <arunisaac <at> systemreboot.net> >> Date: Wed, 13 Sep 2017 22:21:56 +0530 >> Subject: [PATCH 2/6] licenses: Add CC-Sampling+ 1.0. >> >> * guix/licenses.scm (cc-sampling-plus-1.0): New variable. >> --- >> guix/licenses.scm | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/guix/licenses.scm b/guix/licenses.scm >> index b7dadd975..6de611da2 100644 >> --- a/guix/licenses.scm >> +++ b/guix/licenses.scm >> @@ -41,6 +41,7 @@ >> cc0 >> cc-by2.0 cc-by3.0 cc-by4.0 >> cc-by-sa2.0 cc-by-sa3.0 cc-by-sa4.0 >> + cc-sampling-plus-1.0 >> cddl1.0 >> cecill cecill-b cecill-c >> artistic2.0 clarified-artistic >> @@ -206,6 +207,11 @@ at URI, which may be a file:// URI pointing the package's tree." >> "http://creativecommons.org/licenses/by/2.0/" >> "Creative Commons Attribution 2.0 Generic")) >> >> +(define cc-sampling-plus-1.0 >> + (license "CC-Sampling+ 1.0" >> + "https://creativecommons.org/licenses/sampling+/1.0" >> + "Creative Commons Sampling Plus 1.0")) >> + >> (define cddl1.0 >> (license "CDDL 1.0" >> "http://directory.fsf.org/wiki/License:CDDLv1.0" >> -- >> 2.14.1 >> >>>From 3c5f0b4ecbe05f7957c324946ab108fce73dd875 Mon Sep 17 00:00:00 2001 >> From: Arun Isaac <arunisaac <at> systemreboot.net> >> Date: Wed, 13 Sep 2017 22:35:02 +0530 >> Subject: [PATCH 3/6] gnu: Add openttd-opensfx. >> >> * gnu/packages/games.scm (openttd-opensfx): New variable. >> --- >> gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> >> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm >> index 7bfd05cc7..ed386fc84 100644 >> --- a/gnu/packages/games.scm >> +++ b/gnu/packages/games.scm >> @@ -2525,6 +2525,44 @@ OpenGFX provides you with... >> @end enumerate") >> (license license:gpl2))) >> >> +(define openttd-opensfx >> + (package >> + (name "openttd-opensfx") >> + (version "0.2.3") >> + (source >> + (origin >> + (method url-fetch) >> + (uri (string-append >> + "https://binaries.openttd.org/extra/opensfx/" >> + version "/opensfx-" version "-source.tar.gz")) >> + (sha256 >> + (base32 >> + "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5")))) >> + (build-system gnu-build-system) >> + (native-inputs >> + `(("catcodec" ,catcodec) >> + ("python" ,python2-minimal))) >> + (arguments >> + `(#:make-flags >> + (list (string-append "INSTALL_DIR=" %output >> + "/share/games/openttd/baseset/opensfx")) >> + #:phases >> + (modify-phases %standard-phases >> + (add-after 'unpack 'make-reproducible >> + (lambda _ >> + ;; Remove the time dependency of the installed tarball by setting >> + ;; the modification times if its members to 0. >> + (substitute* "scripts/Makefile.def" >> + (("-cf") " --mtime=@0 -cf")) >> + #t)) >> + (delete 'configure)))) >> + (home-page "http://dev.openttdcoop.org/projects/opensfx") >> + (synopsis "Base sounds for OpenTTD") >> + (description "OpenSFX is a set of free base sounds for OpenTTD which make >> +it possible to play OpenTTD without requiring the proprietary sound files from >> +the original Transport Tycoon Deluxe.") >> + (license license:cc-sampling-plus-1.0))) >> + >> (define-public openttd >> (package >> (inherit openttd-engine) >> -- >> 2.14.1 >> >>>From 041b20b236b936fea9813d65e2bc76c657f2f7a0 Mon Sep 17 00:00:00 2001 >> From: Arun Isaac <arunisaac <at> systemreboot.net> >> Date: Thu, 14 Sep 2017 04:18:03 +0530 >> Subject: [PATCH 4/6] gnu: Add openttd-openmsx. >> >> * gnu/packages/games.scm (openttd-openmsx): New variable. >> --- >> gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> >> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm >> index ed386fc84..891c17ab1 100644 >> --- a/gnu/packages/games.scm >> +++ b/gnu/packages/games.scm >> @@ -2563,6 +2563,44 @@ it possible to play OpenTTD without requiring the proprietary sound files from >> the original Transport Tycoon Deluxe.") >> (license license:cc-sampling-plus-1.0))) >> >> +(define openttd-openmsx >> + (package >> + (name "openttd-openmsx") >> + (version "0.3.1") >> + (source >> + (origin >> + (method url-fetch) >> + (uri (string-append >> + "https://binaries.openttd.org/extra/openmsx/" >> + version "/openmsx-" version "-source.tar.gz")) >> + (sha256 >> + (base32 >> + "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c")))) >> + (build-system gnu-build-system) >> + (native-inputs >> + `(("python" ,python2-minimal))) >> + (arguments >> + `(#:make-flags >> + (list (string-append "INSTALL_DIR=" %output >> + "/share/games/openttd/baseset")) >> + #:phases >> + (modify-phases %standard-phases >> + (delete 'configure) >> + (add-after 'install 'post-install >> + ;; Rename openmsx-version to openmsx >> + (lambda* (#:key outputs #:allow-other-keys) >> + (let ((install-directory (string-append (assoc-ref outputs "out") >> + "/share/games/openttd/baseset"))) >> + (rename-file (string-append install-directory "/openmsx-" ,version) >> + (string-append install-directory "/openmsx")) >> + #t)))))) >> + (home-page "http://dev.openttdcoop.org/projects/openmsx") >> + (synopsis "Music set for OpenTTD") >> + (description "OpenMSX is a music set for OpenTTD which makes it possible >> +to play OpenTTD without requiring the proprietary music from the original >> +Transport Tycoon Deluxe.") >> + (license license:gpl2))) >> + >> (define-public openttd >> (package >> (inherit openttd-engine) >> -- >> 2.14.1 >> >>>From 63ec3d03804e0dd093472d7e0a7a78be4e6ece5c Mon Sep 17 00:00:00 2001 >> From: Arun Isaac <arunisaac <at> systemreboot.net> >> Date: Thu, 14 Sep 2017 04:19:26 +0530 >> Subject: [PATCH 5/6] gnu: openttd: Include openttd-openmsx and >> openttd-opensfx. >> >> * gnu/packages/games.scm (openttd-opengfx)[arguments]: Change installation >> directory from /share/openttd/baseset/opengfx to >> /share/games/openttd/baseset/opengfx. >> (openttd-engine)[arguments]: Support #:configure-flags keyword argument in >> 'configure' phase. >> (openttd)[inputs]: Add timidity++. >> [native-inputs]: Add openttd-openmsx and openttd-opensfx. >> [arguments]: Configure with timidity as MIDI player. Install data from >> openttd-openmsx and openttd-opensfx. >> --- >> gnu/packages/games.scm | 57 ++++++++++++++++++++++++++------------------------ >> 1 file changed, 30 insertions(+), 27 deletions(-) >> >> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm >> index 891c17ab1..022a3ca44 100644 >> --- a/gnu/packages/games.scm >> +++ b/gnu/packages/games.scm >> @@ -2427,17 +2427,19 @@ and a game metadata scraper.") >> ;; The build process fails if the configure script is passed the >> ;; option "--enable-fast-install". >> (replace 'configure >> - (lambda* (#:key inputs outputs #:allow-other-keys) >> + (lambda* (#:key inputs outputs (configure-flags '()) >> + #:allow-other-keys) >> (let ((out (assoc-ref outputs "out")) >> (lzo (assoc-ref inputs "lzo"))) >> (zero? >> - (system* "./configure" >> - (string-append "--prefix=" out) >> - ;; Provide the "lzo" path. >> - (string-append "--with-liblzo2=" >> - lzo "/lib/liblzo2.a") >> - ;; Put the binary in 'bin' instead of 'games'. >> - "--binary-dir=bin")))))))) >> + (apply system* "./configure" >> + (string-append "--prefix=" out) >> + ;; Provide the "lzo" path. >> + (string-append "--with-liblzo2=" >> + lzo "/lib/liblzo2.a") >> + ;; Put the binary in 'bin' instead of 'games'. >> + "--binary-dir=bin" >> + configure-flags)))))))) >> (native-inputs `(("pkg-config" ,pkg-config))) >> (inputs >> `(("allegro" ,allegro-4) >> @@ -2464,10 +2466,6 @@ engine. When you start it you will be prompted to download a graphics set.") >> ;; different terms. >> (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib)))) >> >> -;; TODO Add 'openttd-opengfx' and 'openttd-openmsx' packages and make >> -;; 'openttd' a wrapper around them. The engine is playable by itself, >> -;; but it asks a user to download graphics if it's not found. >> - >> (define openttd-opengfx >> (package >> (name "openttd-opengfx") >> @@ -2485,7 +2483,7 @@ engine. When you start it you will be prompted to download a graphics set.") >> '(#:make-flags (list "CC=gcc" >> (string-append "INSTALL_DIR=" >> (assoc-ref %outputs "out") >> - "/share/openttd/baseset")) >> + "/share/games/openttd/baseset/opengfx")) >> #:phases >> (modify-phases %standard-phases >> (replace 'configure >> @@ -2606,22 +2604,27 @@ Transport Tycoon Deluxe.") >> (inherit openttd-engine) >> (name "openttd") >> (arguments >> - (substitute-keyword-arguments (package-arguments openttd-engine) >> - ((#:phases phases) >> - `(modify-phases ,phases >> - (add-after 'install 'install-data >> - (lambda* (#:key inputs outputs #:allow-other-keys) >> - (let* >> - ((opengfx (assoc-ref inputs "opengfx")) >> - (out (assoc-ref outputs "out")) >> - (gfx-dir >> - (string-append out >> - "/share/games/openttd/baseset/opengfx"))) >> - (mkdir-p gfx-dir) >> - (copy-recursively opengfx gfx-dir)) >> - #t)))))) >> + `(#:configure-flags >> + (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++") >> + "/bin/timidity")) >> + ,@(substitute-keyword-arguments (package-arguments openttd-engine) >> + ((#:phases phases) >> + `(modify-phases ,phases >> + (add-after 'install 'install-data >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + (for-each >> + (lambda (input) >> + (copy-recursively (assoc-ref inputs input) >> + (assoc-ref outputs "out"))) >> + (list "opengfx" "openmsx" "opensfx")) >> + #t))))))) >> + (inputs >> + `(("timidity++" ,timidity++) >> + ,@(package-inputs openttd-engine))) >> (native-inputs >> `(("opengfx" ,openttd-opengfx) >> + ("openmsx" ,openttd-openmsx) >> + ("opensfx" ,openttd-opensfx) >> ,@(package-native-inputs openttd-engine))))) >> >> (define-public pinball >> -- >> 2.14.1 >> >>>From 17f0628c11256f22c536b3723365fc9a1ccdafdd Mon Sep 17 00:00:00 2001 >> From: Arun Isaac <arunisaac <at> systemreboot.net> >> Date: Tue, 19 Sep 2017 18:10:27 +0530 >> Subject: [PATCH 6/6] gnu: openttd-opengfx: Disable parallel build. >> >> * gnu/packages/games.scm (openttd-opengfx)[arguments]: Set #:parallel-build? >> to #f. >> --- >> gnu/packages/games.scm | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm >> index 022a3ca44..aef6f0121 100644 >> --- a/gnu/packages/games.scm >> +++ b/gnu/packages/games.scm >> @@ -2501,7 +2501,8 @@ engine. When you start it you will be prompted to download a graphics set.") >> ;; different software versions than upstream does, some of the md5sums >> ;; are different. However, the package is still reproducible, it's safe >> ;; to disable this test. >> - #:tests? #f)) >> + #:tests? #f >> + #:parallel-build? #f)) >> (native-inputs `(("dos2unix" ,dos2unix) >> ("gimp" ,gimp) >> ("grfcodec" ,grfcodec) > > LGTM. I'll commit as soon as we get a clear okay on the cc-sampling-plus > 1.0 license. I've cc'ed the guix-devel list in hopes of getting quicker > feedback. I made time to evaluate the license situation using the Free System Distribution Guidelines, and everything seems fine. Your changes have been pushed to master. Thanks for your contributions!
[signature.asc (application/pgp-signature, inline)]
guix-patches <at> gnu.org
:bug#28453
; Package guix-patches
.
(Sat, 23 Sep 2017 03:34:01 GMT) Full text and rfc822 format available.Message #73 received at 28453-done <at> debbugs.gnu.org (full text, mbox):
From: Arun Isaac <arunisaac <at> systemreboot.net> To: Kei Kebreau <kkebreau <at> posteo.net> Cc: 28453-done <at> debbugs.gnu.org Subject: Re: [bug#28453] [PATCH 5/5] gnu: openttd-opengfx: Change installation directory. Date: Sat, 23 Sep 2017 09:02:43 +0530
> I made time to evaluate the license situation using the Free System > Distribution Guidelines, and everything seems fine. Your changes have > been pushed to master. Thanks for your contributions! Great, thanks! :-)
Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org
.
(Sat, 21 Oct 2017 11:24:04 GMT) Full text and rfc822 format available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.