diff options
| author | eroen | 2014-12-26 14:33:06 +0100 |
|---|---|---|
| committer | eroen | 2014-12-26 19:01:50 +0100 |
| commit | 4cd9f52724665ccd520539c7e88f8d19b7ce4868 (patch) | |
| tree | 24c519ba898be1bf6b36fa0416f86ad5918dfc36 /games-simulation | |
| parent | ec9a099db4960ae7390871e863e875a4cd62df67 (diff) | |
| download | eroen-overlay-4cd9f52724665ccd520539c7e88f8d19b7ce4868.tar.gz eroen-overlay-4cd9f52724665ccd520539c7e88f8d19b7ce4868.tar.bz2 eroen-overlay-4cd9f52724665ccd520539c7e88f8d19b7ce4868.tar.xz | |
simutrans-pak64 - live ebuild
Diffstat (limited to 'games-simulation')
| -rw-r--r-- | games-simulation/simutrans-pak64/metadata.xml | 6 | ||||
| -rw-r--r-- | games-simulation/simutrans-pak64/simutrans-pak64-9999.ebuild | 81 |
2 files changed, 87 insertions, 0 deletions
diff --git a/games-simulation/simutrans-pak64/metadata.xml b/games-simulation/simutrans-pak64/metadata.xml new file mode 100644 index 00000000..2577434a --- /dev/null +++ b/games-simulation/simutrans-pak64/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-pak64/simutrans-pak64-9999.ebuild b/games-simulation/simutrans-pak64/simutrans-pak64-9999.ebuild new file mode 100644 index 00000000..2f3418fd --- /dev/null +++ b/games-simulation/simutrans-pak64/simutrans-pak64-9999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +LIVE="" +[[ ${PV} = 9999* ]] && LIVE=yes +MY_PN=${PN##*-} +if [[ -n ${LIVE} ]]; then + inherit eutils subversion games + ESVN_REPO_URI="http://svn.code.sf.net/p/simutrans/code/${MY_PN}" +else + inherit eutils games + MY_PV=${PV##0.} + MY_PV=${MY_PV//./-} + SRC_URI="mirror://sourceforge/simutrans/simupak64-${MY_PV}.zip" + KEYWORDS="-* ~amd64 ~x86" +fi +DESCRIPTION="Official Simutrans pakset" +HOMEPAGE="http://www.simutrans.com/ + http://sourceforge.net/p/simutrans/code/HEAD/tree/pak64/" + +LICENSE="Artistic" +SLOT="0" +IUSE="" + +RDEPEND=" + >=games-simulation/simutrans-0.120 + " +if [[ -n ${LIVE} ]]; then + DEPEND="|| ( + games-util/makeobj + games-simulation/simutrans[makeobj(-)] + )" +else + DEPEND="app-arch/unzip" +fi + +S=${WORKDIR} + +src_unpack() { + if [[ -n ${LIVE} ]]; then + subversion_src_unpack + else + default + fi +} + +src_prepare() { + if [[ -n ${LIVE} ]]; then + # we don't need to generate the zip and tarballs + echo '.PHONY: gentoo' >> Makefile + echo 'gentoo: copy $(DIRS)' >> Makefile + fi +} + +src_compile() { + if [[ -n ${LIVE} ]]; then + mkdir build + MAKEOBJ=$(which makeobj) \ + emake -j1 gentoo + fi +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r simutrans/pak + + games_make_wrapper ${PN} "simutrans -objects ../${PN}/pak" + 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}" +} |
