GNU bug report logs - #26154
Packaging megaglest ( games! :-) )

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Sat, 18 Mar 2017 15:51:01 UTC

Severity: normal

Done: Leo Famulari <leo <at> famulari.name>

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 26154 in the body.
You can then email your comments to 26154 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


Report forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sat, 18 Mar 2017 15:51:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arun Isaac <arunisaac <at> systemreboot.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 18 Mar 2017 15:51:02 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: Packaging megaglest ( games! :-) )
Date: Sat, 18 Mar 2017 21:19:41 +0530
[Message part 1 (text/plain, inline)]
I've packaged megaglest. Will send patches soon...
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sat, 18 Mar 2017 16:08:02 GMT) Full text and rfc822 format available.

Message #8 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 1/3] gnu: Add libircclient.
Date: Sat, 18 Mar 2017 21:37:37 +0530
* gnu/packages/messaging.scm (libircclient): New variable.
---
 gnu/packages/messaging.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 7aa7b7bfe..6bf477edc 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2016 Andy Patterson <ajpatter <at> uwaterloo.ca>
 ;;; Copyright © 2016, 2017 Clément Lassieur <clement <at> lassieur.org>
 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire <at> gmail.com>
+;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1329,4 +1330,39 @@ using ncurses and libmesode, inspired by Irssi.")
         (home-page "http://www.profanity.im")
         (license license:gpl3+)))
 
+(define-public libircclient
+  (package
+    (name "libircclient")
+    (version "1.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://sourceforge.net/projects/libircclient/files/libircclient/1.9/libircclient-"
+             version ".tar.gz/download"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0r60i76jh4drjh2jgp5sx71chagqllmkaq49zv67nrhqwvp9ghw1"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("openssl" ,openssl)))
+    (arguments
+     `(#:configure-flags
+       (list (string-append "--libdir="
+                            (assoc-ref %outputs "out") "/lib")
+             "--enable-shared"
+             "--enable-ipv6"
+             "--enable-openssl")
+       ;; no test suite
+       #:tests? #f))
+    (home-page "https://www.ulduzsoft.com/libircclient/")
+    (synopsis "Library implementing the client IRC protocol")
+    (description "Libircclient is a small but extremely powerful
+library which implements the client IRC protocol.  It is designed to
+be small, fast, portable and compatible with the RFC standards as well
+as non-standard but popular features.  It is perfect for building the
+IRC clients and bots.")
+    (license license:lgpl3+)))
+
 ;;; messaging.scm ends here
-- 
2.11.0





Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sat, 18 Mar 2017 16:09:02 GMT) Full text and rfc822 format available.

Message #11 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 2/3] gnu: Add megaglest-data.
Date: Sat, 18 Mar 2017 21:37:38 +0530
* gnu/packages/games.scm (megaglest-data): New variable.
---
 gnu/packages/games.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index f264ef206..be14259c6 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke <at> gnu.org>
 ;;; Copyright © 2016 Steve Webber <webber.sl <at> gmail.com>
 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno <at> openmailbox.org>
+;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3267,3 +3268,30 @@ This command works on piped data.  Pipe any ASCII or UTF-8 text to nms, and
 it will apply the hollywood effect, initially showing encrypted data, then
 starting a decryption sequence to reveal the original plaintext characters.")
     (license license:expat)))
+
+(define-public megaglest-data
+  (package
+    (name "megaglest-data")
+    (version "3.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/MegaGlest/megaglest-data/archive/"
+             version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0pif2n0py86kw2z3c7jlhlvf34cl6plscxnaddi2r3p7x80mcxwr"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))
+    (home-page "https://megaglest.org/")
+    (synopsis "3D real-time strategy (RTS) game (data files)")
+    (description "MegaGlest is an entertaining free and open source
+cross-platform 3D real-time strategy (RTS) game, where you control the
+armies of one of seven different factions: Tech, Magic, Egypt,
+Indians, Norsemen, Persian or Romans.
+
+This package contains the data files required for the game.")
+    (license license:cc-by-sa3.0)))
-- 
2.11.0





Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sat, 18 Mar 2017 16:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 3/3] gnu: Add megaglest.
Date: Sat, 18 Mar 2017 21:37:39 +0530
* gnu/packages/games.scm (megaglest): New variable.
---
 gnu/packages/games.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index be14259c6..c297d76f9 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -108,6 +108,9 @@
   #:use-module (gnu packages tls)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages cyrus-sasl)
+  #:use-module (gnu packages messaging)
+  #:use-module (gnu packages upnp)
+  #:use-module (gnu packages wxwidgets)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system haskell)
   #:use-module (guix build-system python)
@@ -3295,3 +3298,60 @@ Indians, Norsemen, Persian or Romans.
 
 This package contains the data files required for the game.")
     (license license:cc-by-sa3.0)))
+
+(define-public megaglest
+  (package
+    (name "megaglest")
+    (version "3.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/MegaGlest/megaglest-source/releases/download/3.13.0/megaglest-source-"
+             version ".tar.xz"))
+       (sha256
+        (base32
+         "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
+    (build-system cmake-build-system)
+    (inputs
+     `(("curl" ,curl)
+       ("freetype" ,freetype)
+       ("ftgl" ,ftgl)
+       ("glew" ,glew)
+       ("libjpeg-turbo" ,libjpeg-turbo)
+       ("megaglest-data" ,megaglest-data)
+       ("mesa" ,mesa)
+       ("miniupnpc" ,miniupnpc)
+       ("openal" ,openal)
+       ("libircclient" ,libircclient)
+       ("libpng" ,libpng)
+       ("libvorbis" ,libvorbis)
+       ("libxml2" ,libxml2)
+       ("lua" ,lua)
+       ("sdl2" ,sdl2)
+       ("wxwidgets" ,wxwidgets)))
+    (native-inputs
+     `(("cppunit" ,cppunit)
+       ("pkg-config" ,pkg-config)))
+    (arguments
+     `(#:configure-flags
+       (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
+                            (assoc-ref %build-inputs "megaglest-data")
+                            "/share/megaglest")
+             "-DBUILD_MEGAGLEST_TESTS=ON")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-ini-search-path
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (substitute* "source/glest_game/global/config.cpp"
+                        (("/usr/share/megaglest/")
+                         (string-append (assoc-ref outputs "out")
+                                        "/share/megaglest/"))))))
+       #:test-target "megaglest_tests"))
+    (home-page "https://megaglest.org/")
+    (synopsis "3D real-time strategy (RTS) game")
+    (description "MegaGlest is an entertaining free and open source
+cross-platform 3D real-time strategy (RTS) game, where you control the
+armies of one of seven different factions: Tech, Magic, Egypt,
+Indians, Norsemen, Persian or Romans.")
+    (license license:gpl2+)))
-- 
2.11.0





Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sun, 19 Mar 2017 23:21:01 GMT) Full text and rfc822 format available.

Message #17 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 1/3] gnu: Add libircclient.
Date: Sun, 19 Mar 2017 19:20:39 -0400
[Message part 1 (text/plain, inline)]
On Sat, Mar 18, 2017 at 09:37:37PM +0530, Arun Isaac wrote:
> * gnu/packages/messaging.scm (libircclient): New variable.

Thanks!

I pushed as 6fdbd86d0fcda40967e713c4226d19cee991bcd9 with the following
changes:

> +       (uri (string-append
> +             "https://sourceforge.net/projects/libircclient/files/libircclient/1.9/libircclient-"
> +             version ".tar.gz/download"))
> +       (file-name (string-append name "-" version ".tar.gz"))

I made it use our sourceforge "mirror" URL, which made it possible to
drop (file-name).

> +    (description "Libircclient is a small but extremely powerful
> +library which implements the client IRC protocol.  It is designed to
> +be small, fast, portable and compatible with the RFC standards as well
> +as non-standard but popular features.  It is perfect for building the
> +IRC clients and bots.")

I edited the synopsis to remove "marketing" language like "small but
extremely powerful" and "perfect for building...".

https://www.gnu.org/software/guix/manual/html_node/Synopses-and-Descriptions.html
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sun, 19 Mar 2017 23:23:02 GMT) Full text and rfc822 format available.

Message #20 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 2/3] gnu: Add megaglest-data.
Date: Sun, 19 Mar 2017 19:22:47 -0400
[Message part 1 (text/plain, inline)]
On Sat, Mar 18, 2017 at 09:37:38PM +0530, Arun Isaac wrote:
> * gnu/packages/games.scm (megaglest-data): New variable.

> +       (uri (string-append
> +             "https://github.com/MegaGlest/megaglest-data/archive/"
> +             version ".tar.gz"))
> +       (file-name (string-append name "-" version ".tar.gz"))

This tarball is just an auto-generated snapshot that GitHub creates
whenever you make a new release on the GitHub page. These are rarely
what the upstream developers want us to use.

Instead we should use either 'megaglest-data-3.13.0.tar.xz' or
'megaglest-standalone-data-3.13.0.tar.xz'. Can you try it?

> +       (sha256
> +        (base32
> +         "0pif2n0py86kw2z3c7jlhlvf34cl6plscxnaddi2r3p7x80mcxwr"))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     `(#:tests? #f))
> +    (home-page "https://megaglest.org/")
> +    (synopsis "3D real-time strategy (RTS) game (data files)")

"Data files for MegaGlest".

> +    (description "MegaGlest is an entertaining free and open source
> +cross-platform 3D real-time strategy (RTS) game, where you control the
> +armies of one of seven different factions: Tech, Magic, Egypt,
> +Indians, Norsemen, Persian or Romans.
> +
> +This package contains the data files required for the game.")

I think the description can just include this final sentence.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Sun, 19 Mar 2017 23:26:01 GMT) Full text and rfc822 format available.

Message #23 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 3/3] gnu: Add megaglest.
Date: Sun, 19 Mar 2017 19:25:50 -0400
[Message part 1 (text/plain, inline)]
On Sat, Mar 18, 2017 at 09:37:39PM +0530, Arun Isaac wrote:
> * gnu/packages/games.scm (megaglest): New variable.

> +       (uri (string-append
> +             "https://github.com/MegaGlest/megaglest-source/releases/download/3.13.0/megaglest-source-"

This line is way toooooo long :)

> +    (inputs
> +     `(("curl" ,curl)
> +       ("freetype" ,freetype)
> +       ("ftgl" ,ftgl)
> +       ("glew" ,glew)
> +       ("libjpeg-turbo" ,libjpeg-turbo)
> +       ("megaglest-data" ,megaglest-data)
> +       ("mesa" ,mesa)
> +       ("miniupnpc" ,miniupnpc)
> +       ("openal" ,openal)
> +       ("libircclient" ,libircclient)
> +       ("libpng" ,libpng)
> +       ("libvorbis" ,libvorbis)
> +       ("libxml2" ,libxml2)
> +       ("lua" ,lua)
> +       ("sdl2" ,sdl2)
> +       ("wxwidgets" ,wxwidgets)))

Please double-check that the build package keeps references to all these
inputs with $(guix gc --reference $(./pre-inst-env guix build
megaglest)).

> +    (synopsis "3D real-time strategy (RTS) game")
> +    (description "MegaGlest is an entertaining free and open source
> +cross-platform 3D real-time strategy (RTS) game, where you control the
> +armies of one of seven different factions: Tech, Magic, Egypt,
> +Indians, Norsemen, Persian or Romans.")

We can leave out the phrase "entertaining free and open source". Games
are expected to be entertaining, and all Guix packages are free
software, so we don't mention it.

Overall LGTM pending the change to the data file source tarball and the
reference check for megaglest.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Mon, 20 Mar 2017 08:43:02 GMT) Full text and rfc822 format available.

Message #26 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 3/3] gnu: Add megaglest.
Date: Mon, 20 Mar 2017 14:11:21 +0530
[Message part 1 (text/plain, inline)]
> Overall LGTM pending the change to the data file source tarball and the
> reference check for megaglest.

I'll make all changes and send updated patches as soon as I'm done. My
moderate speed Internet connection is taking quite a while to download
the new megaglest-data tarball.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Mon, 20 Mar 2017 18:06:02 GMT) Full text and rfc822 format available.

Message #29 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 3/3] gnu: Add megaglest.
Date: Mon, 20 Mar 2017 14:05:16 -0400
[Message part 1 (text/plain, inline)]
On Mon, Mar 20, 2017 at 02:11:21PM +0530, Arun Isaac wrote:
> 
> > Overall LGTM pending the change to the data file source tarball and the
> > reference check for megaglest.
> 
> I'll make all changes and send updated patches as soon as I'm done. My
> moderate speed Internet connection is taking quite a while to download
> the new megaglest-data tarball.

If my request is not reasonable because the tarball is too large to
download for you, I can test the changes here.

Please let me know :)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Mon, 20 Mar 2017 19:07:01 GMT) Full text and rfc822 format available.

Message #32 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 3/3] gnu: Add megaglest.
Date: Tue, 21 Mar 2017 00:36:15 +0530
[Message part 1 (text/plain, inline)]
> If my request is not reasonable because the tarball is too large to
> download for you, I can test the changes here.

No, no, not a problem! :-)

The download finished a long time back. It turns out that the
megaglest-data release tarball does not have embedded fonts that were in
the auto-generated snapshot. So, the game was not rendering properly,
and crashing after a while. It took me several build iterations to
figure out that I needed to include fontconfig to inputs. Hence, the
delay. Sending the patches now...
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Mon, 20 Mar 2017 19:18:01 GMT) Full text and rfc822 format available.

Message #35 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 2/3] gnu: Add megaglest-data.
Date: Tue, 21 Mar 2017 00:46:36 +0530
* gnu/packages/games.scm (megaglest-data): New variable.
---
 gnu/packages/games.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index f264ef206..4c2c9821e 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke <at> gnu.org>
 ;;; Copyright © 2016 Steve Webber <webber.sl <at> gmail.com>
 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno <at> openmailbox.org>
+;;; Copyright © 2017 Arun Isaac <arunisaac <at> systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3267,3 +3268,26 @@ This command works on piped data.  Pipe any ASCII or UTF-8 text to nms, and
 it will apply the hollywood effect, initially showing encrypted data, then
 starting a decryption sequence to reveal the original plaintext characters.")
     (license license:expat)))
+
+(define-public megaglest-data
+  (package
+    (name "megaglest-data")
+    (version "3.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/MegaGlest/megaglest-data"
+             "/releases/download/" version "/megaglest-data-"
+             version ".tar.xz"))
+       (sha256
+        (base32
+         "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))
+    (home-page "https://megaglest.org/")
+    (synopsis "Data files for MegaGlest")
+    (description "This package contains the data files required for the
+game.")
+    (license license:cc-by-sa3.0)))
-- 
2.11.0





Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Mon, 20 Mar 2017 19:18:02 GMT) Full text and rfc822 format available.

Message #38 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 3/3] gnu: Add megaglest.
Date: Tue, 21 Mar 2017 00:46:37 +0530
* gnu/packages/games.scm (megaglest): New variable.
---
 gnu/packages/games.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4c2c9821e..72aa6c94b 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -108,6 +108,9 @@
   #:use-module (gnu packages tls)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages cyrus-sasl)
+  #:use-module (gnu packages messaging)
+  #:use-module (gnu packages upnp)
+  #:use-module (gnu packages wxwidgets)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system haskell)
   #:use-module (guix build-system python)
@@ -3291,3 +3294,59 @@ starting a decryption sequence to reveal the original plaintext characters.")
     (description "This package contains the data files required for the
 game.")
     (license license:cc-by-sa3.0)))
+
+(define-public megaglest
+  (package
+    (name "megaglest")
+    (version "3.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/MegaGlest/megaglest-source"
+             "/releases/download/" version "/megaglest-source-"
+             version ".tar.xz"))
+       (sha256
+        (base32
+         "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
+    (build-system cmake-build-system)
+    (inputs
+     `(("curl" ,curl)
+       ("fontconfig" ,fontconfig)
+       ("ftgl" ,ftgl)
+       ("glew" ,glew)
+       ("libjpeg-turbo" ,libjpeg-turbo)
+       ("megaglest-data" ,megaglest-data)
+       ("mesa" ,mesa)
+       ("miniupnpc" ,miniupnpc)
+       ("openal" ,openal)
+       ("libircclient" ,libircclient)
+       ("libpng" ,libpng)
+       ("libvorbis" ,libvorbis)
+       ("lua" ,lua)
+       ("sdl2" ,sdl2)
+       ("wxwidgets" ,wxwidgets)))
+    (native-inputs
+     `(("cppunit" ,cppunit)
+       ("pkg-config" ,pkg-config)))
+    (arguments
+     `(#:configure-flags
+       (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
+                            (assoc-ref %build-inputs "megaglest-data")
+                            "/share/megaglest")
+             "-DBUILD_MEGAGLEST_TESTS=ON")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-ini-search-path
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (substitute* "source/glest_game/global/config.cpp"
+                        (("/usr/share/megaglest/")
+                         (string-append (assoc-ref outputs "out")
+                                        "/share/megaglest/"))))))
+       #:test-target "megaglest_tests"))
+    (home-page "https://megaglest.org/")
+    (synopsis "3D real-time strategy (RTS) game")
+    (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
+game, where you control the armies of one of seven different factions: Tech,
+Magic, Egypt, Indians, Norsemen, Persian or Romans.")
+    (license license:gpl2+)))
-- 
2.11.0





Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Mon, 20 Mar 2017 19:36:01 GMT) Full text and rfc822 format available.

Message #41 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 3/3] gnu: Add megaglest.
Date: Tue, 21 Mar 2017 01:04:49 +0530
[Message part 1 (text/plain, inline)]
>> +    (inputs
>> +     `(("curl" ,curl)
>> +       ("freetype" ,freetype)
>> +       ("ftgl" ,ftgl)
>> +       ("glew" ,glew)
>> +       ("libjpeg-turbo" ,libjpeg-turbo)
>> +       ("megaglest-data" ,megaglest-data)
>> +       ("mesa" ,mesa)
>> +       ("miniupnpc" ,miniupnpc)
>> +       ("openal" ,openal)
>> +       ("libircclient" ,libircclient)
>> +       ("libpng" ,libpng)
>> +       ("libvorbis" ,libvorbis)
>> +       ("libxml2" ,libxml2)
>> +       ("lua" ,lua)
>> +       ("sdl2" ,sdl2)
>> +       ("wxwidgets" ,wxwidgets)))
>
> Please double-check that the build package keeps references to all these
> inputs with $(guix gc --reference $(./pre-inst-env guix build
> megaglest)).

I double-checked this, and removed libxml2 and freetype.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#26154; Package guix-patches. (Tue, 21 Mar 2017 19:19:02 GMT) Full text and rfc822 format available.

Message #44 received at 26154 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26154 <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 3/3] gnu: Add megaglest.
Date: Tue, 21 Mar 2017 15:18:05 -0400
[Message part 1 (text/plain, inline)]
On Tue, Mar 21, 2017 at 12:46:37AM +0530, Arun Isaac wrote:
> * gnu/packages/games.scm (megaglest): New variable.

Pushed as 0b608ec4ceaee45a0d00b2f081f6f0be69b90deb
[signature.asc (application/pgp-signature, inline)]

Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Tue, 21 Mar 2017 19:19:02 GMT) Full text and rfc822 format available.

Notification sent to Arun Isaac <arunisaac <at> systemreboot.net>:
bug acknowledged by developer. (Tue, 21 Mar 2017 19:19:02 GMT) Full text and rfc822 format available.

Message #49 received at 26154-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26154-done <at> debbugs.gnu.org
Subject: Re: bug#26154: [PATCH 2/3] gnu: Add megaglest-data.
Date: Tue, 21 Mar 2017 15:18:40 -0400
[Message part 1 (text/plain, inline)]
On Tue, Mar 21, 2017 at 12:46:36AM +0530, Arun Isaac wrote:
> * gnu/packages/games.scm (megaglest-data): New variable.

Pushed as fb731c92328fb3aa931e771a567738a565d4ada8.

Thanks!
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Apr 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 120 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.