summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-09-30 04:29:54 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-09-30 04:29:54 +0000
commitc2177422746efb458ab4237d4515dd8fbbacfc40 (patch)
treea690034852ae97ee4574c7fe5f82176df50e75be /games-arcade/tuxdash
parentRespect LDFLAGS. Bug #337774 (diff)
downloadgentoo-2-c2177422746efb458ab4237d4515dd8fbbacfc40.tar.gz
gentoo-2-c2177422746efb458ab4237d4515dd8fbbacfc40.tar.bz2
gentoo-2-c2177422746efb458ab4237d4515dd8fbbacfc40.zip
Respect LDFLAGS. Bug #337772
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-arcade/tuxdash')
-rw-r--r--games-arcade/tuxdash/ChangeLog8
-rw-r--r--games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch8
-rw-r--r--games-arcade/tuxdash/tuxdash-0.8.ebuild12
3 files changed, 20 insertions, 8 deletions
diff --git a/games-arcade/tuxdash/ChangeLog b/games-arcade/tuxdash/ChangeLog
index 3880b0cbf980..fe4dd9fd46af 100644
--- a/games-arcade/tuxdash/ChangeLog
+++ b/games-arcade/tuxdash/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-arcade/tuxdash
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxdash/ChangeLog,v 1.7 2008/03/25 13:23:26 coldwind Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxdash/ChangeLog,v 1.8 2010/09/30 04:29:54 tupone Exp $
+
+ 30 Sep 2010; Tupone Alfredo <tupone@gentoo.org> tuxdash-0.8.ebuild,
+ +files/tuxdash-0.8-ldflags.patch:
+ Respect LDFLAGS. Bug #337772 by flameeyes@gentoo.org
25 Mar 2008; Santiago M. Mola <coldwind@gentoo.org> tuxdash-0.8.ebuild:
amd64 stable
diff --git a/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch b/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch
new file mode 100644
index 000000000000..5e42f5bd9fac
--- /dev/null
+++ b/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch
@@ -0,0 +1,8 @@
+--- src/Makefile.old 2010-09-30 06:24:36.000000000 +0200
++++ src/Makefile 2010-09-30 06:25:02.000000000 +0200
+@@ -1,4 +1,4 @@
+ all:
+- g++ main.cpp $(E_CXXFLAGS) `/usr/bin/sdl-config --libs --cflags` -lSDL_ttf -o ../tuxdash
++ g++ main.cpp $(LDFLAGS) $(E_CXXFLAGS) `/usr/bin/sdl-config --libs --cflags` -lSDL_ttf -o ../tuxdash
+ static:
+ g++ -static main.cpp $(E_CXXFLAGS) `/usr/bin/sdl-config --cflags --static-libs` -lSDL_ttf -lfreetype -lz -o ../tuxdash
diff --git a/games-arcade/tuxdash/tuxdash-0.8.ebuild b/games-arcade/tuxdash/tuxdash-0.8.ebuild
index 0c93ed8c0211..b9d562b63c7a 100644
--- a/games-arcade/tuxdash/tuxdash-0.8.ebuild
+++ b/games-arcade/tuxdash/tuxdash-0.8.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2008 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/tuxdash/tuxdash-0.8.ebuild,v 1.6 2008/03/25 13:23:26 coldwind Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxdash/tuxdash-0.8.ebuild,v 1.7 2010/09/30 04:29:54 tupone Exp $
+EAPI="2"
-inherit games
+inherit eutils games
DESCRIPTION="A simple BoulderDash clone"
HOMEPAGE="http://www.tuxdash.de/index.php?language=EN"
@@ -16,9 +17,7 @@ IUSE=""
DEPEND="media-libs/libsdl
media-libs/sdl-ttf"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
rm -f GPL TuxDash
sed -i \
-e '/^Fullscreen/ s/0/1/' \
@@ -33,6 +32,7 @@ src_unpack() {
-e 's/-Wall/$(E_CXXFLAGS)/' \
-e 's/TuxDash/tuxdash/g' \
src/Makefile || die "sed failed"
+ epatch "${FILESDIR}"/${P}-ldflags.patch
find . -type f -print0 | xargs -0 chmod a-x
}