From: John Darrington <jmd@gnu.org>
To: guix-devel@gnu.org
Cc: John Darrington <jmd@gnu.org>
Subject: [PATCH] gnu: Add xboing
Date: Mon, 13 Oct 2014 21:18:21 +0200 [thread overview]
Message-ID: <1413227901-17916-1-git-send-email-jmd@gnu.org> (raw)
In-Reply-To: <87d29wat4v.fsf@gnu.org>
* gnu/packages/games.scm (xboing): New variable.
---
gnu/packages/games.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 1a911b7..e7868af 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -24,6 +24,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (gnu packages)
+ #:use-module (gnu packages admin)
#:use-module (gnu packages boost)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
@@ -321,3 +322,56 @@ and Makruk. Several lesser-known variants are also supported. It presents a
fully interactive graphical interface and it can load and save games in the
Portable Game Notation.")
(license gpl3+)))
+
+
+(define-public xboing
+ (package
+ (name "xboing")
+ (version "2.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://www.techrescue.org/xboing/xboing"
+ version ".tar.gz"))
+ (sha256
+ (base32 "16m2si8wmshxpifk861vhpqviqxgcg8bxj6wfw8hpnm4r2w9q0b7"))))
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (alist-replace
+ 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+
+ (substitute* "Imakefile"
+ (("XPMINCLUDE[\t ]*= -I/usr/X11/include/X11")
+ (string-append "XPMINCLUDE = -I" (assoc-ref %build-inputs "libxpm")
+ "/include/X11")))
+
+ (substitute* "Imakefile"
+ (("XBOING_DIR = \\.") "XBOING_DIR=$(PROJECTROOT)"))
+
+ ;; FIXME: HIGH_SCORE_FILE should be set to somewhere writeable
+
+ (zero? (system* "xmkmf" "-a"
+ (string-append "-DProjectRoot="
+ (assoc-ref outputs "out")))))
+ (alist-replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (and
+ (zero? (system* "make" "install.man"))
+ (zero? (system* "make" "install"))))
+ %standard-phases))))
+ (inputs `(("libx11" ,libx11)
+ ("libxext" ,libxext)
+ ("libxpm" ,libxpm)))
+ (native-inputs `(("imake" ,imake)
+ ("inetutils" ,inetutils)
+ ("makedepend" ,makedepend)))
+ (build-system gnu-build-system)
+ (home-page "http://www.techrescue.org/xboing")
+ (synopsis "Ball and paddle game")
+ (description "XBoing is a blockout type game where you have a paddle which
+you control to bounce a ball around the game zone destroying blocks with a
+proton ball. Each block carries a different point value. The more blocks you
+destroy, the better your score. The person with the highest score wins.")
+ (license (x11-style "file://COPYING" "Very similar to the X11 licence."))))
--
1.7.10.4
next prev parent reply other threads:[~2014-10-13 19:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-13 10:37 [PATCH] gnu: Add xboing John Darrington
2014-10-13 12:27 ` Ludovic Courtès
2014-10-13 12:43 ` John Darrington
2014-10-13 13:54 ` Ludovic Courtès
2014-10-13 14:54 ` John Darrington
2014-10-13 15:25 ` Ludovic Courtès
2014-10-13 19:18 ` John Darrington [this message]
2014-10-13 21:32 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1413227901-17916-1-git-send-email-jmd@gnu.org \
--to=jmd@gnu.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.