diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-06-24 04:21:32 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-06-24 04:21:32 +0000 |
commit | 41aa93e08b69e775e598b54f8c9386fcdbe2f5be (patch) | |
tree | d83254bc38e949b70bf31eec456f5ded6079426a /games-strategy/freecol/freecol-0.4.0.ebuild | |
parent | Removing obsolete ebuilds (diff) | |
download | historical-41aa93e08b69e775e598b54f8c9386fcdbe2f5be.tar.gz historical-41aa93e08b69e775e598b54f8c9386fcdbe2f5be.tar.bz2 historical-41aa93e08b69e775e598b54f8c9386fcdbe2f5be.zip |
version bump (bug #96905)
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'games-strategy/freecol/freecol-0.4.0.ebuild')
-rw-r--r-- | games-strategy/freecol/freecol-0.4.0.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/games-strategy/freecol/freecol-0.4.0.ebuild b/games-strategy/freecol/freecol-0.4.0.ebuild new file mode 100644 index 000000000000..bf6e0eb47f83 --- /dev/null +++ b/games-strategy/freecol/freecol-0.4.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.4.0.ebuild,v 1.1 2005/06/24 04:21:32 mr_bones_ Exp $ + +inherit games + +DESCRIPTION="An open source clone of the game Colonization" +HOMEPAGE="http://freecol.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV}-src.tar.gz" + +KEYWORDS="~ppc x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +RDEPEND=">=virtual/jre-1.4" +DEPEND=">=virtual/jdk-1.4 + >=dev-java/ant-core-1.4.1" + +S=${WORKDIR}/${PN} + +pkg_setup() { + if [ -z "$JAVA_HOME" ]; then + einfo + einfo "\$JAVA_HOME not set!" + einfo "Please use java-config to configure your JVM and try again." + einfo + die "\$JAVA_HOME not set." + fi + games_pkg_setup +} + +src_unpack() { + unpack ${A} + + echo "#!/bin/sh" > "${T}/${PN}" + echo "\"\${JAVA_HOME}\"/bin/java -Xmx128M -jar '${GAMES_DATADIR}/${PN}/FreeCol.jar' --freecol-data '${GAMES_DATADIR}/${PN}/data'" >> "${T}/${PN}" + + find "${S}/data/" -type f -exec chmod a-x \{\} \; +} + +src_compile() { + ant -Dnojars=true -Dnodata=true || die "ant failed" +} + +src_install () { + dogamesbin "${T}/${PN}" || die "dogamesbin failed" + insinto "${GAMES_DATADIR}/${PN}" + doins -r FreeCol.jar data/ jars/ || die "doins failed" + dodoc README + prepgamesdirs +} |