summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2012-11-10 20:56:49 +0000
committerAlfredo Tupone <tupone@gentoo.org>2012-11-10 20:56:49 +0000
commit20c32da9124d6392f4e0ba16cbab2fef421c9850 (patch)
tree0c644c265af8e7fa0c153364b1586d3c832cdc88 /games-action
parentFix the OpenRC module. (diff)
downloadgentoo-2-20c32da9124d6392f4e0ba16cbab2fef421c9850.tar.gz
gentoo-2-20c32da9124d6392f4e0ba16cbab2fef421c9850.tar.bz2
gentoo-2-20c32da9124d6392f4e0ba16cbab2fef421c9850.zip
Consider cflags. Bug #437992
(Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 0145142D)
Diffstat (limited to 'games-action')
-rw-r--r--games-action/geki2-KXL/ChangeLog8
-rw-r--r--games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch9
-rw-r--r--games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild18
3 files changed, 23 insertions, 12 deletions
diff --git a/games-action/geki2-KXL/ChangeLog b/games-action/geki2-KXL/ChangeLog
index 44ea01bed9e9..2a05c8a86357 100644
--- a/games-action/geki2-KXL/ChangeLog
+++ b/games-action/geki2-KXL/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-action/geki2-KXL
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/ChangeLog,v 1.9 2009/06/03 13:20:58 nyhm Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/ChangeLog,v 1.10 2012/11/10 20:56:49 tupone Exp $
+
+ 10 Nov 2012; Tupone Alfredo <tupone@gentoo.org> geki2-KXL-2.0.3-r2.ebuild,
+ +files/geki2-KXL-2.0.3-cflags.patch:
+ Consider cflags. Bug #437992 by Diego Elio Pettenò
03 Jun 2009; Tristan Heaven <nyhm@gentoo.org> geki2-KXL-2.0.3-r2.ebuild:
RDEPEND on media-fonts/font-adobe-100dpi
diff --git a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
new file mode 100644
index 000000000000..9812e6de30aa
--- /dev/null
+++ b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
@@ -0,0 +1,9 @@
+--- src/Makefile.am.old 2012-11-10 21:50:02.159117541 +0100
++++ src/Makefile.am 2012-11-10 21:50:20.658715770 +0100
+@@ -4,5 +4,5 @@
+ boss.h extern.h ranking.h your.h game.h\
+ geki2.h load.h opening.h my.h misc.h
+
+-CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
++AM_CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
+ LIBS = @X_LIBS@ -lX11 @KXL_LIBS@ -lKXL
diff --git a/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild b/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
index 530a4b3be822..a5c37452cfae 100644
--- a/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
+++ b/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild,v 1.4 2011/12/05 08:46:26 mr_bones_ Exp $
-
+# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild,v 1.5 2012/11/10 20:56:49 tupone Exp $
+EAPI=4
inherit autotools eutils games
DESCRIPTION="2D length scroll shooting game"
@@ -18,26 +18,24 @@ DEPEND="dev-games/KXL"
RDEPEND="${DEPEND}
media-fonts/font-adobe-100dpi"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
rm -f missing
sed -i \
-e '1i #include <string.h>' \
-e "s:DATA_PATH \"/.score\":\"${GAMES_STATEDIR}/${PN}\":" \
src/ranking.c \
|| die "sed failed"
- epatch "${FILESDIR}"/${P}-paths.patch
+ epatch "${FILESDIR}"/${P}-paths.patch \
+ "${FILESDIR}"/${P}-cflags.patch
eautoreconf
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
+ default
insinto "${GAMES_STATEDIR}"
- newins data/.score ${PN} || die "newins failed"
+ newins data/.score ${PN}
fperms g+w "${GAMES_STATEDIR}"/${PN}
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry geki2 Geki2
- dodoc ChangeLog README
prepgamesdirs
}