summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWulf Krueger <philantrop@gentoo.org>2007-07-22 13:53:15 +0000
committerWulf Krueger <philantrop@gentoo.org>2007-07-22 13:53:15 +0000
commitc2c5dc4a85f4eecfd7f5e8086837bd7997cbe721 (patch)
treed2611a523d79871d24f0d4b3990fee9895674e78 /games-simulation/realtimebattle/realtimebattle-1.0.8.ebuild
parentUgly ebuilds for kvm but they suit my needs for now. :-) (diff)
downloadphilantrop-c2c5dc4a85f4eecfd7f5e8086837bd7997cbe721.tar.gz
philantrop-c2c5dc4a85f4eecfd7f5e8086837bd7997cbe721.tar.bz2
philantrop-c2c5dc4a85f4eecfd7f5e8086837bd7997cbe721.zip
Some random ebuild stuff.
svn path=/trunk/; revision=16
Diffstat (limited to 'games-simulation/realtimebattle/realtimebattle-1.0.8.ebuild')
-rwxr-xr-xgames-simulation/realtimebattle/realtimebattle-1.0.8.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/games-simulation/realtimebattle/realtimebattle-1.0.8.ebuild b/games-simulation/realtimebattle/realtimebattle-1.0.8.ebuild
new file mode 100755
index 0000000..c00f9d5
--- /dev/null
+++ b/games-simulation/realtimebattle/realtimebattle-1.0.8.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_P1E="RealTimeBattle-${PV}-Ext"
+
+DESCRIPTION="A programming game in which robots controlled by programs fight each other."
+HOMEPAGE="http://realtimebattle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P1E}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="x86"
+IUSE="perl nls java debug doc"
+
+DEPEND=">=x11-libs/gtk+-2.0.3
+ perl? ( >=dev-lang/perl-5.6.1 )
+ nls? ( sys-devel/gettext )
+ java? ( virtual/jre )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ MY_P="${MY_P1E}"
+ #S="${WORKDIR}/${MY_P}" it does not run :(
+ cd ${WORKDIR} &&
+ mv ${MY_P} ${P}
+}
+
+src_compile() {
+ use nls || myconf="--disable-nls"
+ econf $(use_enable debug) ${myconf} || die "Configure failed"
+ emake || die "Compile failed"
+}
+
+src_install(){
+ make DESTDIR="${D}" install || die "Install failed"
+ mkdir -p ${D}/usr/share/games ${D}/usr/games/bin
+ mv ${D}/usr/bin/* ${D}/usr/games/bin/
+ use doc || rm -Rf ${D}/usr/games/RealTimeBattle/Documentation
+ mv ${D}/usr/games/RealTimeBattle ${D}/usr/share/games/
+ rm -R ${D}/usr/bin
+}
+