summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2007-08-09 07:33:19 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2007-08-09 07:33:19 +0000
commit366d1ce3c6b8ce463170411ae582cf46fc436619 (patch)
treebf8e05c3d7f4e1a8026033a1a8ba87dfee99e974 /games-sports/ultimatestunts
parentamd64 stable, bug #187605 (diff)
downloadgentoo-2-366d1ce3c6b8ce463170411ae582cf46fc436619.tar.gz
gentoo-2-366d1ce3c6b8ce463170411ae582cf46fc436619.tar.bz2
gentoo-2-366d1ce3c6b8ce463170411ae582cf46fc436619.zip
version bump
(Portage version: 2.1.2.11)
Diffstat (limited to 'games-sports/ultimatestunts')
-rw-r--r--games-sports/ultimatestunts/ChangeLog8
-rw-r--r--games-sports/ultimatestunts/files/digest-ultimatestunts-0.7.23
-rw-r--r--games-sports/ultimatestunts/files/ultimatestunts-0.7.2-paths.patch33
-rw-r--r--games-sports/ultimatestunts/ultimatestunts-0.7.2.ebuild66
4 files changed, 109 insertions, 1 deletions
diff --git a/games-sports/ultimatestunts/ChangeLog b/games-sports/ultimatestunts/ChangeLog
index 7cb8be30d7f2..82454b58d7e3 100644
--- a/games-sports/ultimatestunts/ChangeLog
+++ b/games-sports/ultimatestunts/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-sports/ultimatestunts
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ChangeLog,v 1.14 2007/05/22 15:08:22 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ChangeLog,v 1.15 2007/08/09 07:33:19 mr_bones_ Exp $
+
+*ultimatestunts-0.7.2 (09 Aug 2007)
+
+ 09 Aug 2007; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/ultimatestunts-0.7.2-paths.patch, +ultimatestunts-0.7.2.ebuild:
+ version bump
*ultimatestunts-0.7.1 (22 May 2007)
diff --git a/games-sports/ultimatestunts/files/digest-ultimatestunts-0.7.2 b/games-sports/ultimatestunts/files/digest-ultimatestunts-0.7.2
new file mode 100644
index 000000000000..5598f324efca
--- /dev/null
+++ b/games-sports/ultimatestunts/files/digest-ultimatestunts-0.7.2
@@ -0,0 +1,3 @@
+MD5 6d740268bb0f127aace9e41885564d7f ultimatestunts-srcdata-0721.tar.gz 15347625
+RMD160 37458d8907acbdb670a7a79dd4579d1de661dbd8 ultimatestunts-srcdata-0721.tar.gz 15347625
+SHA256 5a5da884018a06f91018d842ca891d4756ae231e917a4c16b289a35b34926865 ultimatestunts-srcdata-0721.tar.gz 15347625
diff --git a/games-sports/ultimatestunts/files/ultimatestunts-0.7.2-paths.patch b/games-sports/ultimatestunts/files/ultimatestunts-0.7.2-paths.patch
new file mode 100644
index 000000000000..848b12be083a
--- /dev/null
+++ b/games-sports/ultimatestunts/files/ultimatestunts-0.7.2-paths.patch
@@ -0,0 +1,33 @@
+--- configure.ac
++++ configure.ac
+@@ -222,9 +222,9 @@
+ dnl ------------------
+ dnl The directory locations
+ dnl ------------------
+-usdatadir="${prefix}/share/ultimatestunts/"
++usdatadir="${datadir}/ultimatestunts/"
+
+-AC_DEFINE_UNQUOTED([PREFIXDIR], ["$prefix"], [Prefix dir])
++AC_DEFINE_UNQUOTED([PREFIXDIR], ["$sysconfdir"], [Prefix dir])
+
+ AC_SUBST(netlibs)
+ AC_SUBST(soundlibs)
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -1,4 +1,4 @@
+-usdatadir=@usdatadir@
++usdatadir=$(DESTDIR)/@usdatadir@
+
+ install:
+ $(mkinstalldirs) ${usdatadir}
+--- shared/usmisc.cpp
++++ shared/usmisc.cpp
+@@ -42,7 +42,7 @@
+ printf("prefix = %s\n", prefixdir.c_str());
+
+ std::vector<CString> locations;
+- locations.push_back(prefixdir + "/etc/ultimatestunts.conf");
++ locations.push_back(prefixdir + "/ultimatestunts.conf");
+ locations.push_back("/etc/ultimatestunts.conf");
+ locations.push_back("/usr/local/etc/ultimatestunts.conf");
+ locations.push_back("./ultimatestunts.conf");
diff --git a/games-sports/ultimatestunts/ultimatestunts-0.7.2.ebuild b/games-sports/ultimatestunts/ultimatestunts-0.7.2.ebuild
new file mode 100644
index 000000000000..9cca5db0c63c
--- /dev/null
+++ b/games-sports/ultimatestunts/ultimatestunts-0.7.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ultimatestunts-0.7.2.ebuild,v 1.1 2007/08/09 07:33:19 mr_bones_ Exp $
+
+inherit autotools eutils versionator games
+
+MY_P=${PN}-srcdata-$(replace_all_version_separators)1
+DESCRIPTION="Remake of the famous Stunts game"
+HOMEPAGE="http://www.ultimatestunts.nl/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/openal
+ media-libs/freealut
+ virtual/opengl
+ virtual/glu
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/cvs
+ sys-devel/gettext"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ games_pkg_setup
+ if ! built_with_use media-libs/libsdl opengl ; then
+ die "Please emerge libsdl with USE=opengl"
+ fi
+ if ! built_with_use media-libs/openal vorbis ; then
+ die "Please emerge openal with USE=vorbis"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-paths.patch
+ autopoint -f || die "autopoint failed"
+ sed -i 's:$(datadir)/locale:@top_srcdir@/data/lang:' po/Makefile.in.in \
+ || die "sed failed"
+ AT_M4DIR=m4 eautoreconf
+}
+
+src_compile() {
+ egamesconf \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ || die
+ emake -C trackedit libtrackedit.a || die "emake failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ newicon data/cars/diablo/steer.png ${PN}.png
+ make_desktop_entry ustunts "Ultimate Stunts"
+ dodoc AUTHORS README
+ rm -rf $(find "${D}" -name CVS)
+ prepgamesdirs
+}