unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26418: [PATCH] gnu: Add freegish.
@ 2017-04-09 11:33 Ricardo Wurmus
  2017-04-09 15:43 ` Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2017-04-09 11:33 UTC (permalink / raw)
  To: 26418; +Cc: Ricardo Wurmus

* gnu/packages/games.scm (freegish): New variable.
---
 gnu/packages/games.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a09ea3e11..bc4a243e9 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3458,3 +3458,54 @@ starting a decryption sequence to reveal the original plaintext characters.")
 game, where you control the armies of one of seven different factions: Tech,
 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
     (license license:gpl2+)))
+
+(define-public freegish
+  (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
+        (revision "1"))
+    (package
+      (name "freegish")
+      (version (string-append "0-" revision "." (string-take commit 9)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/freegish/freegish.git")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:tests? #f ; no tests included
+         #:configure-flags
+         (list "-DCMAKE_INSTALL_FHS=ON")
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'set-DATAPATH
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "CMakeLists.txt"
+                 (("^option\\(INSTALL_FHS" line)
+                  (string-append "add_definitions(-DDATAPATH=\""
+                                 (assoc-ref outputs "out") "/share/freegish\")\n"
+                                 line)))
+               #t)))))
+      (inputs
+       `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
+         ("openal" ,openal)
+         ("libvorbis" ,libvorbis)
+         ("libogg" ,libogg)
+         ("mesa" ,mesa)
+         ("libpng" ,libpng)
+         ("zlib" ,zlib)))
+      (home-page "https://github.com/freegish/freegish")
+      (synopsis "Side-scrolling physics platformer with a ball of tar")
+      (description "In FreeGish you control Gish, a ball of tar who lives
+happily with his girlfriend Brea, until one day a mysterious dark creature
+emerges from a sewer hole and pulls her below ground.")
+      ;; The audio files in the "music" directory are licensed under CC-BY-NC,
+      ;; but they are not installed.  The textures are available under the
+      ;; Expat license.  All other assets (including levels) are covered under
+      ;; CC-BY-SA or public domain.  The source code is under GPLv2+.
+      (license (list license:gpl2+
+                     license:expat
+                     license:public-domain
+                     license:cc-by-sa3.0)))))
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#26418: [PATCH] gnu: Add freegish.
  2017-04-09 11:33 bug#26418: [PATCH] gnu: Add freegish Ricardo Wurmus
@ 2017-04-09 15:43 ` Marius Bakke
  2017-04-09 20:15   ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2017-04-09 15:43 UTC (permalink / raw)
  To: Ricardo Wurmus, 26418

[-- Attachment #1: Type: text/plain, Size: 3411 bytes --]

Ricardo Wurmus <rekado@elephly.net> writes:

> * gnu/packages/games.scm (freegish): New variable.
> ---
>  gnu/packages/games.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 51 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index a09ea3e11..bc4a243e9 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -3458,3 +3458,54 @@ starting a decryption sequence to reveal the original plaintext characters.")
>  game, where you control the armies of one of seven different factions: Tech,
>  Magic, Egypt, Indians, Norsemen, Persian or Romans.")
>      (license license:gpl2+)))
> +
> +(define-public freegish
> +  (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
> +        (revision "1"))
> +    (package
> +      (name "freegish")
> +      (version (string-append "0-" revision "." (string-take commit 9)))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "https://github.com/freegish/freegish.git")
> +                      (commit commit)))
> +                (sha256
> +                 (base32
> +                  "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))))
> +      (build-system cmake-build-system)
> +      (arguments
> +       `(#:tests? #f ; no tests included
> +         #:configure-flags
> +         (list "-DCMAKE_INSTALL_FHS=ON")
> +         #:phases
> +         (modify-phases %standard-phases
> +           (add-after 'unpack 'set-DATAPATH
> +             (lambda* (#:key outputs #:allow-other-keys)
> +               (substitute* "CMakeLists.txt"
> +                 (("^option\\(INSTALL_FHS" line)
> +                  (string-append "add_definitions(-DDATAPATH=\""
> +                                 (assoc-ref outputs "out") "/share/freegish\")\n"
> +                                 line)))
> +               #t)))))
> +      (inputs
> +       `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
> +         ("openal" ,openal)
> +         ("libvorbis" ,libvorbis)
> +         ("libogg" ,libogg)
> +         ("mesa" ,mesa)
> +         ("libpng" ,libpng)
> +         ("zlib" ,zlib)))
> +      (home-page "https://github.com/freegish/freegish")
> +      (synopsis "Side-scrolling physics platformer with a ball of tar")

"Side-scrolling physics platformer" would suffice IMO, but this is good
too :)

> +      (description "In FreeGish you control Gish, a ball of tar who lives
> +happily with his girlfriend Brea, until one day a mysterious dark creature
> +emerges from a sewer hole and pulls her below ground.")
> +      ;; The audio files in the "music" directory are licensed under CC-BY-NC,
> +      ;; but they are not installed.

I wonder if we should scrub these from the source. Guix is useful as a
free software distribution platform; as such it would be good to know
that anything from `guix build -S` is free to use. What do you think?

Apart from that LGTM, fun game :)

> +      ;; Expat license.  All other assets (including levels) are covered under
> +      ;; CC-BY-SA or public domain.  The source code is under GPLv2+.
> +      (license (list license:gpl2+
> +                     license:expat
> +                     license:public-domain
> +                     license:cc-by-sa3.0)))))
> -- 
> 2.12.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26418: [PATCH] gnu: Add freegish.
  2017-04-09 15:43 ` Marius Bakke
@ 2017-04-09 20:15   ` Ricardo Wurmus
  2017-04-09 21:32     ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2017-04-09 20:15 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 26418


Marius Bakke <mbakke@fastmail.com> writes:

>> +      ;; The audio files in the "music" directory are licensed under CC-BY-NC,
>> +      ;; but they are not installed.
>
> I wonder if we should scrub these from the source. Guix is useful as a
> free software distribution platform; as such it would be good to know
> that anything from `guix build -S` is free to use. What do you think?

You’re right.  I’ll remove them in a snippet.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26418: [PATCH] gnu: Add freegish.
  2017-04-09 20:15   ` Ricardo Wurmus
@ 2017-04-09 21:32     ` Ricardo Wurmus
  0 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2017-04-09 21:32 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 26418-done


Ricardo Wurmus <rekado@elephly.net> writes:

> Marius Bakke <mbakke@fastmail.com> writes:
>
>>> +      ;; The audio files in the "music" directory are licensed under CC-BY-NC,
>>> +      ;; but they are not installed.
>>
>> I wonder if we should scrub these from the source. Guix is useful as a
>> free software distribution platform; as such it would be good to know
>> that anything from `guix build -S` is free to use. What do you think?
>
> You’re right.  I’ll remove them in a snippet.

Done and pushed to master with 6bb9c8542.  Thanks for the review!

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-09 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-09 11:33 bug#26418: [PATCH] gnu: Add freegish Ricardo Wurmus
2017-04-09 15:43 ` Marius Bakke
2017-04-09 20:15   ` Ricardo Wurmus
2017-04-09 21:32     ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).