summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2015-11-22 20:10:01 +0100
committerAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2015-11-22 20:10:33 +0100
commitcf0b709dc273cdce9cd248501128462e6d00d0f4 (patch)
treec0b6f349e490583dd412533398b3c1300f6c4845
parentmail-mta/exim: use diropts instead of setting DIROPTIONS, bug #566486 (diff)
downloadgentoo-cf0b709dc273cdce9cd248501128462e6d00d0f4.tar.gz
gentoo-cf0b709dc273cdce9cd248501128462e6d00d0f4.tar.bz2
gentoo-cf0b709dc273cdce9cd248501128462e6d00d0f4.zip
games-arcade/xboing: Migrate away from games.eclass
Package-Manager: portage-2.2.25
-rw-r--r--games-arcade/xboing/xboing-2.4-r3.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/games-arcade/xboing/xboing-2.4-r3.ebuild b/games-arcade/xboing/xboing-2.4-r3.ebuild
new file mode 100644
index 000000000000..b210b8b5a91e
--- /dev/null
+++ b/games-arcade/xboing/xboing-2.4-r3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils user
+
+DESCRIPTION="Blockout type game where you bounce a ball trying to destroy blocks"
+HOMEPAGE="http://www.techrescue.org/xboing/"
+SRC_URI="http://www.techrescue.org/xboing/${PN}${PV}.tar.gz
+ mirror://gentoo/xboing-${PV}-debian.patch.bz2"
+
+LICENSE="xboing"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ app-text/rman
+ x11-misc/gccmakedep
+ x11-misc/imake
+"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ epatch "${WORKDIR}"/xboing-${PV}-debian.patch
+ epatch "${FILESDIR}"/xboing-${PV}-buffer.patch
+ epatch "${FILESDIR}"/xboing-${PV}-sleep.patch
+ sed -i '/^#include/s:xpm\.h:X11/xpm.h:' *.c || die
+ eapply_user
+}
+
+src_configure() {
+ xmkmf -a || die
+ sed -i -e "s:GENTOO_VER:${PF/${PN}-/}:" Imakefile || die
+}
+
+src_compile() {
+ emake \
+ CXXOPTIONS="${CXXFLAGS}" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ XBOING_DIR="/usr/share/${PN}"
+}
+
+src_install() {
+ make \
+ PREFIX="${D}" \
+ BINDIR="${D}/usr/bin" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ XBOING_DIR="/usr/share/${PN}" \
+ install || die
+ newman xboing.man xboing.6
+ dodoc README docs/*.doc
+
+ fowners root:gamestat /var/games/xboing.score /usr/bin/xboing
+ fperms 660 /var/games/xboing.score
+ fperms 2755 /usr/bin/xboing
+}