summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-10-03 14:10:44 -0500
committerAustin English <wizardedit@gentoo.org>2016-10-03 14:11:17 -0500
commitf927d143ef7c3874c3f305a58116eb25ae92c55b (patch)
treeff91e48df89f4c25c654373cdef776c00617e7bb /games-sports
parentgames-sports/torcs: remove deprecated games eclass (diff)
downloadgentoo-f927d143ef7c3874c3f305a58116eb25ae92c55b.tar.gz
gentoo-f927d143ef7c3874c3f305a58116eb25ae92c55b.tar.bz2
gentoo-f927d143ef7c3874c3f305a58116eb25ae92c55b.zip
games-sports/trigger: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/trigger/trigger-0.6.1-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/games-sports/trigger/trigger-0.6.1-r1.ebuild b/games-sports/trigger/trigger-0.6.1-r1.ebuild
new file mode 100644
index 000000000000..95b34922f515
--- /dev/null
+++ b/games-sports/trigger/trigger-0.6.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+MY_PN=${PN}-rally
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Free OpenGL rally car racing game"
+HOMEPAGE="http://www.positro.net/trigger/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-games/physfs
+ media-libs/freealut
+ media-libs/libsdl
+ media-libs/openal
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer
+ virtual/glu
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ dev-util/ftjam"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ # Otherwise build fails with:
+ # ...skipped trigger for lack of libpengine.a...
+ tc-export AR
+}
+
+src_configure() {
+ econf --datadir=/usr/share/games/${PN}
+}
+
+src_compile() {
+ AR="${AR} cru" jam -dx -qa || die
+
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/games/${PN}
+ doins -r data/*
+ newicon data/textures/life_helmet.png ${PN}.png
+ make_desktop_entry ${PN} Trigger
+ dodoc doc/*.txt
+}
+
+pkg_postinst() {
+ elog "After running ${PN} for the first time, a config file is"
+ elog "available in ~/.trigger/trigger.config"
+}