diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-12-09 08:30:06 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-12-09 08:30:06 +0000 |
commit | 45ae85ed0f65813631efc18267221091b0d7b4dd (patch) | |
tree | 9264349013ee5f14af445b48ced2dfd24982a390 /games-strategy/freecol | |
parent | Added some of the debian patches that fix up LDAP and Hesiod in 4.1.3. (Manif... (diff) | |
download | gentoo-2-45ae85ed0f65813631efc18267221091b0d7b4dd.tar.gz gentoo-2-45ae85ed0f65813631efc18267221091b0d7b4dd.tar.bz2 gentoo-2-45ae85ed0f65813631efc18267221091b0d7b4dd.zip |
initial commit - ebuild submitted by lwillems via bug #64608
Diffstat (limited to 'games-strategy/freecol')
-rw-r--r-- | games-strategy/freecol/ChangeLog | 10 | ||||
-rw-r--r-- | games-strategy/freecol/Manifest | 2 | ||||
-rw-r--r-- | games-strategy/freecol/files/digest-freecol-0.3.0 | 1 | ||||
-rw-r--r-- | games-strategy/freecol/freecol-0.3.0.ebuild | 51 | ||||
-rw-r--r-- | games-strategy/freecol/metadata.xml | 5 |
5 files changed, 69 insertions, 0 deletions
diff --git a/games-strategy/freecol/ChangeLog b/games-strategy/freecol/ChangeLog new file mode 100644 index 000000000000..16e40b7eb204 --- /dev/null +++ b/games-strategy/freecol/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-strategy/freecol +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.1 2004/12/09 08:30:06 mr_bones_ Exp $ + +*freecol-0.3.0 (09 Dec 2004) + + 09 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org> +metadata.xml, + +freecol-0.3.0.ebuild: + initial commit - ebuild submitted by lwillems via bug #64608 + diff --git a/games-strategy/freecol/Manifest b/games-strategy/freecol/Manifest new file mode 100644 index 000000000000..e714c17dafd2 --- /dev/null +++ b/games-strategy/freecol/Manifest @@ -0,0 +1,2 @@ +MD5 13bcf9af66075c537272aeb602504a29 freecol-0.3.0.ebuild 1079 +MD5 dc6a4d04e026d9776e432d2dbd24e53e files/digest-freecol-0.3.0 70 diff --git a/games-strategy/freecol/files/digest-freecol-0.3.0 b/games-strategy/freecol/files/digest-freecol-0.3.0 new file mode 100644 index 000000000000..065a7f551e21 --- /dev/null +++ b/games-strategy/freecol/files/digest-freecol-0.3.0 @@ -0,0 +1 @@ +MD5 1d92deb70bb8c825c7dcfacb2d86debf freecol-0.3.0-src.tar.gz 3860944 diff --git a/games-strategy/freecol/freecol-0.3.0.ebuild b/games-strategy/freecol/freecol-0.3.0.ebuild new file mode 100644 index 000000000000..6efa0b804df5 --- /dev/null +++ b/games-strategy/freecol/freecol-0.3.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.3.0.ebuild,v 1.1 2004/12/09 08:30:06 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="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 +} + +src_unpack() { + unpack ${A} + + echo "#!/bin/sh" > "${T}/${PN}" + echo "'${JAVA_HOME}'/bin/java -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 -Dnodata=true || die "ant failed" +} + +src_install () { + dogamesbin "${T}/${PN}" || die "dogamesbin failed" + dodir "${GAMES_DATADIR}/${PN}" + cp -r FreeCol.jar data/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed" + dodoc README + prepgamesdirs +} diff --git a/games-strategy/freecol/metadata.xml b/games-strategy/freecol/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-strategy/freecol/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> |