summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2014-12-26 18:33:42 +0100
committereroen <eroen@occam.eroen.eu>2014-12-26 19:01:50 +0100
commit209de9b9288d13824523a03ddc2d30c8c8ef0715 (patch)
treea260e817b40d81e35c03b82cf9825d0c59b68ac0 /games-simulation
parentsimutrans-pak64 - 0.120.0.1 (diff)
downloaderoen-209de9b9288d13824523a03ddc2d30c8c8ef0715.tar.gz
eroen-209de9b9288d13824523a03ddc2d30c8c8ef0715.tar.bz2
eroen-209de9b9288d13824523a03ddc2d30c8c8ef0715.zip
simutrans-pak128 - add 2.5.2_rc120 and live svn
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/simutrans-pak128/Manifest1
-rw-r--r--games-simulation/simutrans-pak128/metadata.xml6
l---------games-simulation/simutrans-pak128/simutrans-pak128-2.5.2_rc120.ebuild1
-rw-r--r--games-simulation/simutrans-pak128/simutrans-pak128-9999.ebuild79
4 files changed, 87 insertions, 0 deletions
diff --git a/games-simulation/simutrans-pak128/Manifest b/games-simulation/simutrans-pak128/Manifest
new file mode 100644
index 0000000..949a409
--- /dev/null
+++ b/games-simulation/simutrans-pak128/Manifest
@@ -0,0 +1 @@
+DIST pak128-2.5.2--RC_120.zip 91055572 SHA256 556e276cecea950b0434fc289e0c7ebf15df018c7ae35ea8010d3e2008df8b32 SHA512 368d24e8672f611fad21dcdd0195448a196a1fa9f021a4a1cf8c4a73fe85c7d580e49c5afb357ff9bd4e2dfbaaf70d08c26f1653e3a37fbbb287ded4151b7894 WHIRLPOOL 7f6063cdf1a9f233b5ec351405cb26b0c1cf928fb351b1393279ba2cad69ae1e29beb9cf749953656e9f9180e2c183458e71063626d338a0b51494d460801730
diff --git a/games-simulation/simutrans-pak128/metadata.xml b/games-simulation/simutrans-pak128/metadata.xml
new file mode 100644
index 0000000..2577434
--- /dev/null
+++ b/games-simulation/simutrans-pak128/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/games-simulation/simutrans-pak128/simutrans-pak128-2.5.2_rc120.ebuild b/games-simulation/simutrans-pak128/simutrans-pak128-2.5.2_rc120.ebuild
new file mode 120000
index 0000000..e2d06b8
--- /dev/null
+++ b/games-simulation/simutrans-pak128/simutrans-pak128-2.5.2_rc120.ebuild
@@ -0,0 +1 @@
+simutrans-pak128-9999.ebuild \ No newline at end of file
diff --git a/games-simulation/simutrans-pak128/simutrans-pak128-9999.ebuild b/games-simulation/simutrans-pak128/simutrans-pak128-9999.ebuild
new file mode 100644
index 0000000..691fef5
--- /dev/null
+++ b/games-simulation/simutrans-pak128/simutrans-pak128-9999.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+PYTHON_COMPAT=(python{2_7,3_2,3_3,3_4})
+LIVE=""
+[[ ${PV} = 9999* ]] && LIVE=yes
+MY_PN=${PN##*-}
+if [[ -n ${LIVE} ]]; then
+ inherit eutils python-any-r1 subversion games
+ ESVN_REPO_URI="http://svn.code.sf.net/p/simutrans/code/${MY_PN}"
+else
+ inherit eutils games
+ MY_PV=${PV/_rc/--RC_}
+ SRC_URI="mirror://sourceforge/simutrans/pak128-2.5.2--RC_120.zip"
+ SRC_URI="mirror://sourceforge/simutrans/${MY_PN}-${MY_PV}.zip"
+ KEYWORDS="-* ~amd64 ~x86"
+fi
+DESCRIPTION="Simutrans pakset featuring a complex economy and a wide variety of objects"
+HOMEPAGE="http://www.simutrans.com/
+ http://sourceforge.net/p/simutrans/code/HEAD/tree/pak128/"
+
+LICENSE="Artistic"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ >=games-simulation/simutrans-0.120
+ "
+if [[ -n ${LIVE} ]]; then
+ DEPEND="|| (
+ games-util/makeobj
+ games-simulation/simutrans[makeobj(-)]
+ )
+ ${PYTHON_DEPS}
+ "
+else
+ DEPEND="app-arch/unzip"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ [[ -n ${LIVE} ]] && python-any-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_unpack() {
+ if [[ -n ${LIVE} ]]; then
+ subversion_src_unpack
+ else
+ default
+ fi
+}
+
+src_compile() {
+ if [[ -n ${LIVE} ]]; then
+ ${PYTHON} pakmak.py || die
+ fi
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r simutrans/pak128
+
+ games_make_wrapper ${PN} "simutrans -objects ../${PN}/pak128"
+ make_desktop_entry ${PN} "Simutrans (${MY_PN})" simutrans.ico
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog
+ elog "To run Simutrans with ${MY_PN} pakset, execute:"
+ elog " ${PN}"
+}