summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-09-20 15:50:01 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-09-20 15:50:01 +0000
commitc92040c4dff73bd61b0723da9067c47b9dfbcbcb (patch)
tree8efc31c6ce4c8d27c9db7ab30e30bf2689c4040d /games-arcade
parentChange 25 unversioned masks to 45 versioned cause these packages also exist i... (diff)
downloadgentoo-2-c92040c4dff73bd61b0723da9067c47b9dfbcbcb.tar.gz
gentoo-2-c92040c4dff73bd61b0723da9067c47b9dfbcbcb.tar.bz2
gentoo-2-c92040c4dff73bd61b0723da9067c47b9dfbcbcb.zip
EAPI=2; respect LDFLAGS (bug #338153)
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/xrick/ChangeLog8
-rw-r--r--games-arcade/xrick/xrick-021212-r1.ebuild20
2 files changed, 19 insertions, 9 deletions
diff --git a/games-arcade/xrick/ChangeLog b/games-arcade/xrick/ChangeLog
index 3d59e0be92ec..f0ebf9057ee0 100644
--- a/games-arcade/xrick/ChangeLog
+++ b/games-arcade/xrick/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-arcade/xrick
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/xrick/ChangeLog,v 1.12 2007/04/24 15:25:06 drizzt Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/xrick/ChangeLog,v 1.13 2010/09/20 15:50:01 mr_bones_ Exp $
+
+ 20 Sep 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ xrick-021212-r1.ebuild:
+ EAPI=2; respect LDFLAGS (bug #338153)
24 Apr 2007; Timothy Redaelli <drizzt@gentoo.org> xrick-021212-r1.ebuild:
Add ~x86-fbsd keyword.
diff --git a/games-arcade/xrick/xrick-021212-r1.ebuild b/games-arcade/xrick/xrick-021212-r1.ebuild
index 447c6b951ece..3571a4fdf740 100644
--- a/games-arcade/xrick/xrick-021212-r1.ebuild
+++ b/games-arcade/xrick/xrick-021212-r1.ebuild
@@ -1,12 +1,13 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/xrick/xrick-021212-r1.ebuild,v 1.13 2007/04/24 15:25:06 drizzt Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/xrick/xrick-021212-r1.ebuild,v 1.14 2010/09/20 15:50:01 mr_bones_ Exp $
+EAPI=2
inherit eutils games
DESCRIPTION="Clone of the Rick Dangerous adventure game from the 80's"
-SRC_URI="http://www.bigorno.net/xrick/${P}.tgz"
HOMEPAGE="http://www.bigorno.net/xrick/"
+SRC_URI="http://www.bigorno.net/xrick/${P}.tgz"
LICENSE="GPL-2 as-is"
SLOT="0"
@@ -14,25 +15,30 @@ KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
IUSE=""
RESTRICT="mirror" # bug #149097
-DEPEND="media-libs/libsdl"
+DEPEND="media-libs/libsdl[video]"
src_unpack() {
unpack ${A}
cd "${S}"
unpack ./xrick.6.gz
+}
+src_prepare() {
sed -i \
-e "/^run from/d" \
-e "/data.zip/ s:the directory where xrick is:$(games_get_libdir)/${PN}.:" \
- xrick.6 || die "sed xrick.6 failed"
+ xrick.6 || die
sed -i \
-e "s:data.zip:$(games_get_libdir)/${PN}/data.zip:" \
- src/xrick.c || die "sed xrick.c failed"
+ src/xrick.c || die
sed -i \
-e "s/-g -ansi -pedantic -Wall -W -O2/${CFLAGS}/" \
- Makefile || die "sed Makefile failed"
+ -e '/LDFLAGS/s/=/+=/' \
+ -e '/CC=/d' \
+ -e "/CPP=/ { s/gcc/\$(CC)/; s/\"/'/g }" \
+ Makefile || die
}
src_install() {