diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2011-06-21 14:46:50 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2011-06-21 14:46:50 +0000 |
commit | b2074ca7988965a956e5d43c69b493b7fb18d488 (patch) | |
tree | 25d4fe6663d51430a2c4e6f523d593696d90974a /games-roguelike/fargoal | |
parent | Add dependency on virtual/fortran (diff) | |
download | gentoo-2-b2074ca7988965a956e5d43c69b493b7fb18d488.tar.gz gentoo-2-b2074ca7988965a956e5d43c69b493b7fb18d488.tar.bz2 gentoo-2-b2074ca7988965a956e5d43c69b493b7fb18d488.zip |
EAPI=2 - Fix underlink. Bug #372127
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'games-roguelike/fargoal')
-rw-r--r-- | games-roguelike/fargoal/ChangeLog | 7 | ||||
-rw-r--r-- | games-roguelike/fargoal/fargoal-20040629.ebuild | 15 | ||||
-rw-r--r-- | games-roguelike/fargoal/files/fargoal-20040629-underlink.patch | 10 |
3 files changed, 22 insertions, 10 deletions
diff --git a/games-roguelike/fargoal/ChangeLog b/games-roguelike/fargoal/ChangeLog index ee90f67b9b3e..3159e26906bf 100644 --- a/games-roguelike/fargoal/ChangeLog +++ b/games-roguelike/fargoal/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-roguelike/fargoal # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/fargoal/ChangeLog,v 1.8 2011/03/26 17:26:08 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/fargoal/ChangeLog,v 1.9 2011/06/21 14:46:50 tupone Exp $ + + 21 Jun 2011; Tupone Alfredo <tupone@gentoo.org> fargoal-20040629.ebuild, + +files/fargoal-20040629-underlink.patch: + EAPI=2 + Fix underlink. Bug #372127 by Diego Elio Pettenò 26 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> fargoal-20040629.ebuild: Pin media-libs/allegro to old version. diff --git a/games-roguelike/fargoal/fargoal-20040629.ebuild b/games-roguelike/fargoal/fargoal-20040629.ebuild index 2edf01b12297..1cdccee4ca71 100644 --- a/games-roguelike/fargoal/fargoal-20040629.ebuild +++ b/games-roguelike/fargoal/fargoal-20040629.ebuild @@ -1,6 +1,7 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/fargoal/fargoal-20040629.ebuild,v 1.4 2011/03/26 17:26:08 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/fargoal/fargoal-20040629.ebuild,v 1.5 2011/06/21 14:46:50 tupone Exp $ +EAPI=2 inherit eutils games @@ -17,11 +18,9 @@ RDEPEND="<media-libs/allegro-5" DEPEND="${RDEPEND} app-arch/unzip" -S=${WORKDIR}/${PN} +S="${WORKDIR}"/${PN}/src -src_unpack() { - unpack ${A} - cd "${S}/src" +src_prepare() { epatch "${FILESDIR}/gentoo-home-write.patch" sed -i \ -e "s/-O3/${CFLAGS}/" \ @@ -35,13 +34,11 @@ src_unpack() { sed -i \ -e "s:agreement.txt:${GAMES_DATADIR}/${PN}/&:" main.c \ || die "sed failed" -} - -src_compile() { - emake -C src || die "emake failed" + epatch "${FILESDIR}"/${P}-underlink.patch } src_install() { + cd .. # install as fargoal instead of sword since that may conflict with # other packages. newgamesbin sword fargoal || die "newgamesbin failed" diff --git a/games-roguelike/fargoal/files/fargoal-20040629-underlink.patch b/games-roguelike/fargoal/files/fargoal-20040629-underlink.patch new file mode 100644 index 000000000000..ffc38f584b6e --- /dev/null +++ b/games-roguelike/fargoal/files/fargoal-20040629-underlink.patch @@ -0,0 +1,10 @@ +--- Makefile.old 2011-06-21 16:29:54.921651946 +0200 ++++ Makefile 2011-06-21 16:30:21.145295079 +0200 +@@ -8,6 +8,6 @@ + LDLIBS := -lalleg + CFLAGS += -DMINGW + else +-LDLIBS := `allegro-config --libs` ++LDLIBS := `allegro-config --libs` -lm + CFLAGS += `allegro-config --cflags` -DLINUX + endif |