From c449a076936d725dd4db6be59ed41f1b6d59c2af Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Tue, 28 Jul 2015 20:48:34 -0500 Subject: gnu: Add Gamine. * gnu/packages/games.scm (gamine): New variable. --- gnu/packages/games.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index fd5cc3614c..bf261dd993 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 John Darrington ;;; Copyright © 2014 David Thompson -;;; Copyright © 2014 Eric Bavier +;;; Copyright © 2014, 2015 Eric Bavier ;;; Copyright © 2014 Cyrill Schenkel ;;; Copyright © 2014 Sylvain Beucler ;;; Copyright © 2014, 2015 Ludovic Courtès @@ -55,6 +55,7 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages check) #:use-module (gnu packages fontutils) + #:use-module (gnu packages gstreamer) #:use-module (gnu packages bash) #:use-module (gnu packages perl) #:use-module (gnu packages qt) @@ -999,3 +1000,50 @@ advantages and disadvantages against different types of attacks. Units gain experience and advance levels, and are carried over from one scenario to the next campaign.") (license license:gpl2+))) + +(define-public gamine + (package + (name "gamine") + (version "1.4") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/gamine-game/" + "gamine-" version ".tar.gz")) + (sha256 + (base32 + "1iny959i1kl2ab6z5xi4s66mrvrwcarxyvjfp2k1sx532s8knk8h")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("intltool" ,intltool))) + (inputs + `(("gstreamer" ,gstreamer) + ("gst-plugins-base" ,gst-plugins-base) ;playbin plugin + ("gst-plugins-good" ,gst-plugins-good) ;for wav playback + ("gtk+" ,gtk+))) + (arguments + `(#:tests? #f + #:make-flags + (let ((out (assoc-ref %outputs "out"))) + (list (string-append "PREFIX=" out) + (string-append "SYSCONFDIR=" out "/etc"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after + 'install 'wrap-gamine + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append out "/bin/gamine") + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))) + #t))))) + (home-page "http://gamine-game.sourceforge.net/") + (synopsis "Mouse and keyboard discovery for children") + (description + "Gamine is a game designed for young children who are learning to use the +mouse and keyboard. The child uses the mouse to draw colored dots and lines +on the screen and keyboard to display letters.") + ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3 + (license license:gpl3))) + -- cgit v1.2.3