diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2008-12-12 14:22:46 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2008-12-12 14:22:46 +0000 |
commit | 7732933414ed11274443ad007c8d6c7b94bfb652 (patch) | |
tree | f9a859d3c61635d1667c638840a15470366333d3 /games-arcade/opentyrian | |
parent | Version bump for bug 203647, thanks to Gordon and Hans. (diff) | |
download | historical-7732933414ed11274443ad007c8d6c7b94bfb652.tar.gz historical-7732933414ed11274443ad007c8d6c7b94bfb652.tar.bz2 historical-7732933414ed11274443ad007c8d6c7b94bfb652.zip |
Initial commit, ebuild by me. Closes bug #223743. With thanks to Mr_Bones & nyhm for review comments.
Package-Manager: portage-2.1.6/cvs/Linux 2.6.28-rc8-00001-g6c34bc2-dirty x86_64
Diffstat (limited to 'games-arcade/opentyrian')
-rw-r--r-- | games-arcade/opentyrian/ChangeLog | 11 | ||||
-rw-r--r-- | games-arcade/opentyrian/Manifest | 16 | ||||
-rw-r--r-- | games-arcade/opentyrian/files/20081211-datapath.diff | 25 | ||||
-rw-r--r-- | games-arcade/opentyrian/metadata.xml | 9 | ||||
-rw-r--r-- | games-arcade/opentyrian/opentyrian-20081211.ebuild | 47 |
5 files changed, 108 insertions, 0 deletions
diff --git a/games-arcade/opentyrian/ChangeLog b/games-arcade/opentyrian/ChangeLog new file mode 100644 index 000000000000..ac8fdd4d989c --- /dev/null +++ b/games-arcade/opentyrian/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-arcade/opentyrian +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/opentyrian/ChangeLog,v 1.1 2008/12/12 14:22:46 chainsaw Exp $ + +*opentyrian-20081211 (11 Dec 2008) + + 11 Dec 2008; <chainsaw@gentoo.org> +files/20081211-datapath.diff, + +metadata.xml, +opentyrian-20081211.ebuild: + Initial commit, ebuild by me. Closes bug #223743. With thanks to Mr_Bones + & nyhm for review comments. + diff --git a/games-arcade/opentyrian/Manifest b/games-arcade/opentyrian/Manifest new file mode 100644 index 000000000000..bd51b83e5018 --- /dev/null +++ b/games-arcade/opentyrian/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 20081211-datapath.diff 869 RMD160 0bd6bf06c008c39d3d60827e4587b5dae7e9711a SHA1 c3dec78340ac2adae27b4b87b31b2f540127ac77 SHA256 cec5dc45be105172073b8704db977a2154cca6ab5089ffc5e6775db09cff0b28 +DIST opentyrian-20081211.tar.bz2 360671 RMD160 bd1013fdd5197efa3ba8ed1db094eae83a1b7129 SHA1 1f7b47bc2d117c4effe9e76abbe5ab8e77fc406f SHA256 26d49706689ece866f082219d19a521dd31476be6d6160167e7f9f4678ceab03 +DIST tyrian21.zip 4754048 RMD160 62d69ebcb98db8bae64f9bf9efc453d961e9efe2 SHA1 29827de99c92cdba7ac8d8b1307776c8f473cd44 SHA256 7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277 +EBUILD opentyrian-20081211.ebuild 1319 RMD160 c4acfd92076c0c4efd5d6fc95edf7f19b7be023b SHA1 6dbe2f4343db82f47523a48454e2b630fcc59b82 SHA256 a55ca45216a5e0661dbd13e309ee55bb9aaeb660a80ae821a7c3b6e4a89d1356 +MISC ChangeLog 478 RMD160 dcea5131099d1dfebac33293c4d3470ea62cab4a SHA1 2c2c0298621f4f69fb498c38bb2fa892f43a6029 SHA256 d1d67c3936e686542523330251f492f95dffb77ae4b3ad6310553b7d2004e25f +MISC metadata.xml 248 RMD160 b4db6b5c35ecb316653b3692c21c208e9e431a5f SHA1 f4ca5bd5587de4bb2546172472f9f997c8812778 SHA256 902e1ccbd26bbb00bb47d7901cf47ddb3126dc7b8a3cabcb930838d923bd68bc +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAklCc5QACgkQp5vW4rUFj5rwmQCfcM4EVx6o5X5y/7wLdTKgmH0A +oY0AoIJ2uO2hvbIBIODceVtUkbwMVQiW +=OrY7 +-----END PGP SIGNATURE----- diff --git a/games-arcade/opentyrian/files/20081211-datapath.diff b/games-arcade/opentyrian/files/20081211-datapath.diff new file mode 100644 index 000000000000..130e465160be --- /dev/null +++ b/games-arcade/opentyrian/files/20081211-datapath.diff @@ -0,0 +1,25 @@ +diff -uNr opentyrian.ORIG/Makefile opentyrian/Makefile +--- opentyrian.ORIG/Makefile 2008-07-10 21:42:20.000000000 +0100 ++++ opentyrian/Makefile 2008-07-10 21:42:52.000000000 +0100 +@@ -46,6 +46,9 @@ + CFLAGS += -DSVN_REV=\"$(SVN_REV)\" + endif + ++ifneq ($(DATA_PATH), ) ++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\" ++endif + #################################################### + + all : $(TARGET) +diff -uNr opentyrian.ORIG/src/error.c opentyrian/src/error.c +--- opentyrian.ORIG/src/error.c 2008-07-10 21:42:20.000000000 +0100 ++++ opentyrian/src/error.c 2008-07-10 21:43:45.000000000 +0100 +@@ -38,7 +38,7 @@ + char err_msg[1000] = "No error!?"; + + #ifndef TARGET_MACOSX +-static const char *tyrian_searchpaths[] = { "data", "tyrian", "tyrian2k" }; ++static const char *tyrian_searchpaths[] = { DATA_PATH , "data", "tyrian", "tyrian2k" }; + #endif + + long get_stream_size( FILE *f ) diff --git a/games-arcade/opentyrian/metadata.xml b/games-arcade/opentyrian/metadata.xml new file mode 100644 index 000000000000..1dceee43bf7c --- /dev/null +++ b/games-arcade/opentyrian/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> +</maintainer> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/opentyrian/opentyrian-20081211.ebuild b/games-arcade/opentyrian/opentyrian-20081211.ebuild new file mode 100644 index 000000000000..edced97879cf --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-20081211.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/opentyrian/opentyrian-20081211.ebuild,v 1.1 2008/12/12 14:22:46 chainsaw Exp $ + +inherit eutils games + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="http://code.google.com/p/opentyrian/" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net" +DEPEND="${RDEPEND} + app-arch/unzip + dev-util/subversion" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-datapath.diff" + if ! use debug; then + sed -i -e "s@DEBUG := 1@DEBUG := 0@" "${S}/Makefile" || die "sed failed" + fi +} + +src_compile() { + emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed" +} + +src_install() { + dogamesbin tyrian || die "Failed to install game binary" + dodoc CREDITS NEWS README || die "Failed to install documentation" + domenu opentyrian.desktop || die "Failed to install desktop file" + doicon tyrian.xpm || die "Failed to install program icon" + insinto "${GAMES_DATADIR}/${PN}" + cd "${WORKDIR}/tyrian21" + doins * || die "Failed to install game data" + prepgamesdirs +} |