summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-02-24 07:32:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-02-24 07:32:49 +0000
commitf96ebad76d59c67c5597d3606f9ee51d78270d82 (patch)
tree4e9b76ceb48dcab0d376fa29484f20eedee234b5 /games-sports/ultimatestunts
parentversion bump (diff)
downloadgentoo-2-f96ebad76d59c67c5597d3606f9ee51d78270d82.tar.gz
gentoo-2-f96ebad76d59c67c5597d3606f9ee51d78270d82.tar.bz2
gentoo-2-f96ebad76d59c67c5597d3606f9ee51d78270d82.zip
version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-sports/ultimatestunts')
-rw-r--r--games-sports/ultimatestunts/ChangeLog10
-rw-r--r--games-sports/ultimatestunts/files/ultimatestunts-0.7.4-paths.patch33
-rw-r--r--games-sports/ultimatestunts/ultimatestunts-0.7.4.ebuild68
3 files changed, 109 insertions, 2 deletions
diff --git a/games-sports/ultimatestunts/ChangeLog b/games-sports/ultimatestunts/ChangeLog
index ebd60a393ed3..2bf9c772f674 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.17 2007/10/19 16:11:06 mr_bones_ Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ChangeLog,v 1.18 2008/02/24 07:32:48 mr_bones_ Exp $
+
+*ultimatestunts-0.7.4 (24 Feb 2008)
+
+ 24 Feb 2008; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/ultimatestunts-0.7.4-paths.patch, +ultimatestunts-0.7.4.ebuild:
+ version bump
*ultimatestunts-0.7.3 (19 Oct 2007)
diff --git a/games-sports/ultimatestunts/files/ultimatestunts-0.7.4-paths.patch b/games-sports/ultimatestunts/files/ultimatestunts-0.7.4-paths.patch
new file mode 100644
index 000000000000..848b12be083a
--- /dev/null
+++ b/games-sports/ultimatestunts/files/ultimatestunts-0.7.4-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.4.ebuild b/games-sports/ultimatestunts/ultimatestunts-0.7.4.ebuild
new file mode 100644
index 000000000000..db6ac9219af6
--- /dev/null
+++ b/games-sports/ultimatestunts/ultimatestunts-0.7.4.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/ultimatestunts/ultimatestunts-0.7.4.ebuild,v 1.1 2008/02/24 07:32:48 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}"
+ find "${S}" -type d -name CVS -exec rm -rf '{}' +
+ epatch "${FILESDIR}"/${P}-paths.patch
+ autopoint -f || die "autopoint failed"
+ sed -i \
+ -e '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
+ prepgamesdirs
+}