summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2009-07-04 14:01:09 +0000
committerTony Vroon <chainsaw@gentoo.org>2009-07-04 14:01:09 +0000
commita50c3049971b3522114944f0796ed532a603d2e8 (patch)
tree261f1f5379c2488a23c841d6025cb4e84dd3d09d /games-arcade/opentyrian/opentyrian-20090702.ebuild
parentMarking fapg-0.41 ppc64 for bug 272818 (diff)
downloadgentoo-2-a50c3049971b3522114944f0796ed532a603d2e8.tar.gz
gentoo-2-a50c3049971b3522114944f0796ed532a603d2e8.tar.bz2
gentoo-2-a50c3049971b3522114944f0796ed532a603d2e8.zip
New snapshot. Upstream added palette fading and made numerous cleanups.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade/opentyrian/opentyrian-20090702.ebuild')
-rw-r--r--games-arcade/opentyrian/opentyrian-20090702.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/games-arcade/opentyrian/opentyrian-20090702.ebuild b/games-arcade/opentyrian/opentyrian-20090702.ebuild
new file mode 100644
index 000000000000..8d63aec83a75
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-20090702.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/opentyrian/opentyrian-20090702.ebuild,v 1.1 2009/07/04 14:01:09 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 ~ppc ~x86"
+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
+}