summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2006-10-18 20:27:37 +0000
committerTristan Heaven <nyhm@gentoo.org>2006-10-18 20:27:37 +0000
commitba7681a4751046d9e739c7bd0ae7768153ba285f (patch)
tree424107205ce8da93e642d1a38d4a1ab7d5ba0b2f /games-sports/trophy
parentFixed spaces (diff)
downloadgentoo-2-ba7681a4751046d9e739c7bd0ae7768153ba285f.tar.gz
gentoo-2-ba7681a4751046d9e739c7bd0ae7768153ba285f.tar.bz2
gentoo-2-ba7681a4751046d9e739c7bd0ae7768153ba285f.zip
Use autotools eclass
(Portage version: 2.1.2_pre3-r4)
Diffstat (limited to 'games-sports/trophy')
-rw-r--r--games-sports/trophy/ChangeLog7
-rw-r--r--games-sports/trophy/files/digest-trophy-1.1.34
-rw-r--r--games-sports/trophy/trophy-1.1.3.ebuild31
3 files changed, 25 insertions, 17 deletions
diff --git a/games-sports/trophy/ChangeLog b/games-sports/trophy/ChangeLog
index b4fea03bdfc4..60fa3126ceca 100644
--- a/games-sports/trophy/ChangeLog
+++ b/games-sports/trophy/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-sports/trophy
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/ChangeLog,v 1.4 2005/03/25 06:33:21 mr_bones_ Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/ChangeLog,v 1.5 2006/10/18 20:27:37 nyhm Exp $
+
+ 18 Oct 2006; Tristan Heaven <nyhm@gentoo.org> trophy-1.1.3.ebuild:
+ Use autotools eclass
25 Mar 2005; Michael Sterrett <mr_bones_@gentoo.org> trophy-1.1.3.ebuild:
add patch from debian for gcc-34 support (bug #84329); add icon, man page
diff --git a/games-sports/trophy/files/digest-trophy-1.1.3 b/games-sports/trophy/files/digest-trophy-1.1.3
index d9051a963c0b..b38355cdf513 100644
--- a/games-sports/trophy/files/digest-trophy-1.1.3
+++ b/games-sports/trophy/files/digest-trophy-1.1.3
@@ -1,2 +1,6 @@
MD5 45a8c6eec9ab5d110660a32416d1ec8f trophy-1.1.3-src.tar.gz 9330835
+RMD160 d5424f62a0e351c933911fc3595ef86e9f3173bd trophy-1.1.3-src.tar.gz 9330835
+SHA256 9f57bc77587b485f7eeb2948bfcb12d3e03c85b86c8b148c49a410df2a433871 trophy-1.1.3-src.tar.gz 9330835
MD5 b58571da1a90f378fcf911d1555fc710 trophy_1.1.3-2.diff.gz 6507
+RMD160 2c36936eedc64d0c3e6468ce1798bfc19ce78842 trophy_1.1.3-2.diff.gz 6507
+SHA256 20df77c185bbc43660ca48fcc8b32ab571b050610840ed7c7b9e37fd33e0db94 trophy_1.1.3-2.diff.gz 6507
diff --git a/games-sports/trophy/trophy-1.1.3.ebuild b/games-sports/trophy/trophy-1.1.3.ebuild
index 7b40bde3e8d8..0b576c297aa5 100644
--- a/games-sports/trophy/trophy-1.1.3.ebuild
+++ b/games-sports/trophy/trophy-1.1.3.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/trophy-1.1.3.ebuild,v 1.7 2005/03/25 06:33:21 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/trophy-1.1.3.ebuild,v 1.8 2006/10/18 20:27:37 nyhm Exp $
-inherit eutils flag-o-matic games
+WANT_AUTOCONF=latest
+WANT_AUTOMAKE=latest
+inherit autotools eutils flag-o-matic toolchain-funcs games
MY_P="${P}-src"
DESCRIPTION="2D Racing Game"
@@ -16,8 +18,7 @@ KEYWORDS="amd64 x86"
IUSE=""
DEPEND="=dev-games/clanlib-0.6.5*
- >=media-libs/hermes-1.3.2
- >=sys-libs/zlib-1.1.3"
+ >=media-libs/hermes-1.3.2"
S=${WORKDIR}/${MY_P}
@@ -26,32 +27,32 @@ src_unpack() {
cd "${S}"
epatch "${WORKDIR}/${PN}_${PV}-2.diff"
find -name ".cvsignore" -exec rm -f \{\} \;
+ cd trophy
sed -i \
-e '/^EXTERN_LIBS/s:= := ${LDFLAGS} :' \
-e 's:-O3::' \
- trophy/Makefile.in \
+ Makefile.in \
|| die "sed failed"
+ eautoreconf
}
src_compile() {
cd trophy
- autoconf || die "autoconf failed"
- append-flags -I${ROOT}/usr/include/clanlib-0.6.5
- append-ldflags -L${ROOT}/usr/lib/clanlib-0.6.5
+ tc-export CXX
+ append-flags $(clanlib0.6-config --cflags)
+ append-ldflags $(clanlib0.6-config --libs)
egamesconf || die
emake || die "emake failed"
}
src_install() {
- dogamesbin trophy/trophy || die
- dodir "${GAMES_DATADIR}/trophy/resources"
- cp -R trophy/resources/* "${D}${GAMES_DATADIR}/trophy/resources" \
- || die "cp failed"
- cp trophy/resources.scr "${D}${GAMES_DATADIR}/trophy/" \
- || die "cp failed"
dodoc AUTHORS README TODO ChangeLog
doman debian/trophy.6
doicon debian/trophy.xpm
make_desktop_entry trophy Trophy trophy.xpm
+ cd trophy
+ dogamesbin trophy || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r resources resources.scr || die "doins failed"
prepgamesdirs
}