--- /dev/null
+# ChangeLog for games-arcade/triplexinvaders
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/triplexinvaders/ChangeLog,v 1.3 2007/04/14 20:16:23 tupone Exp $
+
+ 14 Apr 2007; <atupone@gentoo.org>
+ +files/triplexinvaders-1.08-gentoo.patch, +metadata.xml,
+ +triplexinvaders-1.08.ebuild:
+ Moved data-files to GAMES_DATADIR
+
+*triplexinvaders-1.08 (14 Apr 2007)
+
+ 14 Apr 2007; <atupone@gentoo.org> +metadata.xml,
+ +triplexinvaders-1.08.ebuild:
+ New package. Requested with bug #124764 by Matija Suklje (hook)
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX triplexinvaders-1.08-gentoo.patch 2297 RMD160 d44d4413fabcb7558e8b00911c6dfd7d06a20ba9 SHA1 e8807525e6189497311524a66f18050566cae46d SHA256 3b1c313be15f4f2e0a983acbae5aa9c3bf2e4cf7147f0e509f5f8fa678c391bf
+MD5 3a5d935f39d43796969d73a6dc65f7f5 files/triplexinvaders-1.08-gentoo.patch 2297
+RMD160 d44d4413fabcb7558e8b00911c6dfd7d06a20ba9 files/triplexinvaders-1.08-gentoo.patch 2297
+SHA256 3b1c313be15f4f2e0a983acbae5aa9c3bf2e4cf7147f0e509f5f8fa678c391bf files/triplexinvaders-1.08-gentoo.patch 2297
+DIST triplexinvaders-1.08.zip 354188 RMD160 6e50296d53840489cf8186630887215418b191c0 SHA1 43f4625e09c806601786aa9e954eb99d03709155 SHA256 ead4f0b139e487e742902e184ce146469d12ecc345d363147395c484cc8c4bfc
+EBUILD triplexinvaders-1.08.ebuild 1169 RMD160 36b79f89109cf98e6b3a595d1bad3812b82ea0b8 SHA1 610d582196f0a9c917d27a223bd6f9a1abcc4497 SHA256 d5eabd1ab98d77a983818ded8ef4a67043973bee278e811221beafceb1a63d8f
+MD5 f41851ba30f2d9d8bf174c00e1c5fae4 triplexinvaders-1.08.ebuild 1169
+RMD160 36b79f89109cf98e6b3a595d1bad3812b82ea0b8 triplexinvaders-1.08.ebuild 1169
+SHA256 d5eabd1ab98d77a983818ded8ef4a67043973bee278e811221beafceb1a63d8f triplexinvaders-1.08.ebuild 1169
+MISC ChangeLog 586 RMD160 3fd432475b10fd11aff48f4c4976ef49f7b1e73c SHA1 27b443a31169a8ca587af55502af5f6112faf168 SHA256 2f99f8ef852cfac034b189ba33267541eb85c9c7e5fc066d8171e720f5f8c6f3
+MD5 5ba843e0825b44f4c1418201e988d248 ChangeLog 586
+RMD160 3fd432475b10fd11aff48f4c4976ef49f7b1e73c ChangeLog 586
+SHA256 2f99f8ef852cfac034b189ba33267541eb85c9c7e5fc066d8171e720f5f8c6f3 ChangeLog 586
+MISC metadata.xml 351 RMD160 ab02417b779ac11883d7810d52e2c936d0ad6841 SHA1 bacac1f3b50c11c1c234f5ce7944da883248eef0 SHA256 6b5be1c00affdd0c3471112888daec21d7982f60f5c0fe57f495ae7596a0d54a
+MD5 39c9b4aa9ca0c5b1384388eabc35c9a1 metadata.xml 351
+RMD160 ab02417b779ac11883d7810d52e2c936d0ad6841 metadata.xml 351
+SHA256 6b5be1c00affdd0c3471112888daec21d7982f60f5c0fe57f495ae7596a0d54a metadata.xml 351
+MD5 fdbccee1571ef3c1f8b6ba20d67bfeeb files/digest-triplexinvaders-1.08 253
+RMD160 6330762f6031b4f2dd216e31ea00efed23e56c06 files/digest-triplexinvaders-1.08 253
+SHA256 14401115aa42f3785796a1ecccf4a6f32f7e34f0a414260c1356151f95590105 files/digest-triplexinvaders-1.08 253
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFGITajRmMZkarFlIwRAiYzAJ9BquB1fz5W1m3KDsSkbeo0GLhHbACgxnY2
+rGdViSNoSa+R4MvBviyJ/AY=
+=K3/Y
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 94a08e45f4722318ea85cbfd7aab8865 triplexinvaders-1.08.zip 354188
+RMD160 6e50296d53840489cf8186630887215418b191c0 triplexinvaders-1.08.zip 354188
+SHA256 ead4f0b139e487e742902e184ce146469d12ecc345d363147395c484cc8c4bfc triplexinvaders-1.08.zip 354188
--- /dev/null
+--- sound.py.old 2007-04-14 21:52:02.000000000 +0200
++++ sound.py 2007-04-14 21:52:27.000000000 +0200
+@@ -16,7 +16,7 @@
+
+
+ def reloadMusic():
+- pygame.mixer.music.load(os.path.join('sound', choice(music)))
++ pygame.mixer.music.load(os.path.join('@GENTOO_DATADIR@/sound', choice(music)))
+ pygame.mixer.music.set_endevent(ENDMUSIC)
+ pygame.mixer.music.play()
+
+@@ -24,7 +24,7 @@
+
+ def getSound(name, volume=0.4):
+ if name not in LoadedSounds:
+- sound = pygame.mixer.Sound(os.path.join('sound', '%s.ogg' % name))
++ sound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@/sound', '%s.ogg' % name))
+ sound.set_volume(volume)
+ LoadedSounds[name] = sound
+ return LoadedSounds[name]
+--- util.py.old 2007-04-14 21:56:30.000000000 +0200
++++ util.py 2007-04-14 21:56:48.000000000 +0200
+@@ -30,7 +30,7 @@
+ LoadedTextures = weakref.WeakValueDictionary()
+
+ def loadTexture(name):
+- filename = os.path.join('textures', '%s.png' % name)
++ filename = os.path.join('@GENTOO_DATADIR@/textures', '%s.png' % name)
+ textureSurface = pygame.image.load(filename)
+ textureData = pygame.image.tostring(textureSurface, "RGBA", True)
+ texid = glGenTextures(1)
+@@ -47,7 +47,7 @@
+
+ def getModel(name):
+ if name not in LoadedModels:
+- model = wavefront.load(os.path.join('models', '%s.obj' % name), name)
++ model = wavefront.load(os.path.join('@GENTOO_DATADIR@/models', '%s.obj' % name), name)
+ LoadedModels[name] = model
+ return LoadedModels[name]
+
+--- hiscore.py.old 2007-04-14 22:04:04.000000000 +0200
++++ hiscore.py 2007-04-14 22:04:25.000000000 +0200
+@@ -5,7 +5,7 @@
+ # copy the highscores to the user's homedir
+ highscorefile = os.path.join(configdir, 'hiscores')
+ if not os.path.exists(highscorefile):
+- oldpath = 'hiscores'
++ oldpath = '@GENTOO_DATADIR@/hiscores'
+ shutil.copy(oldpath, highscorefile)
+
+ def write(score, name):
+--- options.py.old 2007-04-14 22:05:23.000000000 +0200
++++ options.py 2007-04-14 22:05:42.000000000 +0200
+@@ -5,7 +5,7 @@
+ # copy the options to the user's homedir
+ optionfile = os.path.join(configdir, 'options.conf')
+ if not os.path.exists(optionfile):
+- oldpath = 'options.conf'
++ oldpath = '@GENTOO_DATADIR@/options.conf'
+ shutil.copy(oldpath, optionfile)
+
+ execfile(optionfile)
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+In Triplex Invaders, the player pilots a spaceship against a never ending horde
+of enemy ships. It has psychedelic 3d graphics (but 2d gameplay).
+</longdescription>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/triplexinvaders/triplexinvaders-1.08.ebuild,v 1.3 2007/04/14 20:16:23 tupone Exp $
+
+inherit eutils games
+
+DESCRIPTION="An Alien Invaders style game with 3d graphics"
+HOMEPAGE="http://triplexinvaders.infogami.com"
+SRC_URI="http://acm.jhu.edu/~arthur/invaders/${P}.zip"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="psyco"
+
+DEPEND="app-arch/unzip
+ dev-python/pygame
+ dev-python/pyopengl
+ psyco? ( dev-python/psyco )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ sound.py \
+ util.py \
+ hiscore.py \
+ options.py || die "sed failed while changing refer to data directory"
+}
+
+src_install() {
+ insinto "${GAMES_LIBDIR}/${PN}"
+ doins -r *.py || die "doins failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r models sound options.conf hiscores || die "doins failed"
+ games_make_wrapper ${PN} "python ./invaders.py" "${GAMES_LIBDIR}/${PN}"
+ dodoc README.txt TODO.txt || die "Installing doc failed"
+
+ prepgamesdirs
+}