summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-02-11 09:26:35 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-02-11 09:26:35 +0000
commit421e9021dd95c26b5be33ac19b02c59f403e5560 (patch)
tree796afad78c00a4df8816c2fd873ccf24f098682c /games-arcade/supertransball2/supertransball2-1.5.ebuild
parentrecreate Manifest (diff)
downloadhistorical-421e9021dd95c26b5be33ac19b02c59f403e5560.tar.gz
historical-421e9021dd95c26b5be33ac19b02c59f403e5560.tar.bz2
historical-421e9021dd95c26b5be33ac19b02c59f403e5560.zip
New ebuild by brebs. Bug #109199 by desowin.
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'games-arcade/supertransball2/supertransball2-1.5.ebuild')
-rw-r--r--games-arcade/supertransball2/supertransball2-1.5.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/games-arcade/supertransball2/supertransball2-1.5.ebuild b/games-arcade/supertransball2/supertransball2-1.5.ebuild
new file mode 100644
index 000000000000..9d1f2e403c80
--- /dev/null
+++ b/games-arcade/supertransball2/supertransball2-1.5.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/supertransball2/supertransball2-1.5.ebuild,v 1.1 2007/02/11 09:26:34 tupone Exp $
+
+inherit eutils versionator games
+
+MY_PV=$(delete_all_version_separators)
+MY_P=stransball2-v${MY_PV}
+FILE=${MY_P}-linux
+DEBIAN_PATCH="${PN}_${PV}-3.diff"
+
+DESCRIPTION="Thrust clone"
+HOMEPAGE="http://www.braingames.getput.com/stransball2/"
+SRC_URI="http://braingames.bugreport.nl/stransball2/${FILE}.zip
+ mirror://debian/pool/main/s/${PN}/${DEBIAN_PATCH}.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-sound
+ media-libs/sge"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${P}/sources
+
+src_unpack() {
+ unpack ${A}
+ mv -f "${FILE}" ${P}
+
+ sed -i \
+ -e "s:/usr/share/games:${GAMES_DATADIR}:" \
+ "${DEBIAN_PATCH}" || die "sed patch failed"
+
+ epatch "${DEBIAN_PATCH}"
+
+ local deb_dir=${P}/debian/patches
+ rm -f "${deb_dir}"/00list
+ local p
+ for p in "${deb_dir}"/* ; do
+ epatch "${p}"
+ done
+
+ sed -i \
+ -e "s: -I/usr/local/include/SDL::" \
+ -e "s:-g3 -O3:\$(CXXFLAGS):" \
+ "${S}"/Makefile || die "sed Makefile failed"
+}
+
+src_install() {
+ cd ..
+ dogamesbin ${PN} || die "dogamesbin failed"
+ make_desktop_entry ${PN} "Super Transball 2"
+ dodoc readme.txt || die "Installing doc failed"
+ doman debian/supertransball2.6 || die "Installing man page failed"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r demos graphics maps sound || die "doins -r failed"
+
+ prepgamesdirs
+}