diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-02-27 04:32:17 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-02-27 04:32:17 +0000 |
commit | 822927a125ab7a4afeeefeb56e64e48de71bb990 (patch) | |
tree | b386538c8738718960f40ca7f77fdb4d605b479b /games-emulation | |
parent | Added ~sparc keyword wrt bug #82670. (diff) | |
download | gentoo-2-822927a125ab7a4afeeefeb56e64e48de71bb990.tar.gz gentoo-2-822927a125ab7a4afeeefeb56e64e48de71bb990.tar.bz2 gentoo-2-822927a125ab7a4afeeefeb56e64e48de71bb990.zip |
use games eclass; add patch from Myk Taylor (bug #82768) to support spaces in the rc file; tidy
(Portage version: 2.0.51-r15)
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/gtuxnes/ChangeLog | 9 | ||||
-rw-r--r-- | games-emulation/gtuxnes/files/0.75-rc.patch | 11 | ||||
-rw-r--r-- | games-emulation/gtuxnes/gtuxnes-0.75.ebuild | 30 |
3 files changed, 32 insertions, 18 deletions
diff --git a/games-emulation/gtuxnes/ChangeLog b/games-emulation/gtuxnes/ChangeLog index 8af7cd55561a..7b57cec788d5 100644 --- a/games-emulation/gtuxnes/ChangeLog +++ b/games-emulation/gtuxnes/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-emulation/gtuxnes -# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/gtuxnes/ChangeLog,v 1.3 2004/06/24 22:29:03 agriffis Exp $ +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/gtuxnes/ChangeLog,v 1.4 2005/02/27 04:32:17 mr_bones_ Exp $ + + 26 Feb 2005; Michael Sterrett <mr_bones_@gentoo.org> +files/0.75-rc.patch, + gtuxnes-0.75.ebuild: + use games eclass; add patch from Myk Taylor (bug #82768) to support spaces in + the rc file; tidy *gtuxnes-0.75 (27 Aug 2003) diff --git a/games-emulation/gtuxnes/files/0.75-rc.patch b/games-emulation/gtuxnes/files/0.75-rc.patch new file mode 100644 index 000000000000..e44b068b2268 --- /dev/null +++ b/games-emulation/gtuxnes/files/0.75-rc.patch @@ -0,0 +1,11 @@ +--- config.c.orig 2005-02-26 22:52:50.000000000 -0500 ++++ config.c 2005-02-26 22:53:21.000000000 -0500 +@@ -56,7 +56,7 @@ + while (!feof(config_file)) + { + raw_data[0] = '\0'; +- fscanf(config_file, "%s\n", raw_data); ++ fscanf(config_file, "%[^\n]\n", raw_data); + if (strlen(raw_data) < 10) + break; + strncpy(str_opname, raw_data, 10); diff --git a/games-emulation/gtuxnes/gtuxnes-0.75.ebuild b/games-emulation/gtuxnes/gtuxnes-0.75.ebuild index c5aa2a6d9688..ddb8f16dabc3 100644 --- a/games-emulation/gtuxnes/gtuxnes-0.75.ebuild +++ b/games-emulation/gtuxnes/gtuxnes-0.75.ebuild @@ -1,36 +1,34 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/gtuxnes/gtuxnes-0.75.ebuild,v 1.5 2004/06/24 22:29:03 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/gtuxnes/gtuxnes-0.75.ebuild,v 1.6 2005/02/27 04:32:17 mr_bones_ Exp $ + +inherit eutils games DESCRIPTION="GTK frontend for tuxnes, the emulator for the 8-bit Nintendo Entertainment System" HOMEPAGE="http://www.scottweber.com/projects/gtuxnes/" SRC_URI="http://www.scottweber.com/projects/gtuxnes/${P}.tar.gz" LICENSE="GPL-2" -KEYWORDS="x86" SLOT="0" +KEYWORDS="x86" IUSE="" -DEPEND="x11-libs/gtk+ - >=sys-apps/sed-4" -RDEPEND=">=games-emulation/tuxnes-0.75" +DEPEND="=x11-libs/gtk+-1.2*" +RDEPEND="${DEPEND} + >=games-emulation/tuxnes-0.75" src_unpack() { unpack ${A} - cd ${S} + cd "${S}" sed -i \ - -e 's/gcc/$(CC) $(CFLAGS)/' Makefile || \ - die 'sed Makefile failed' -} - -src_compile() { - emake || die 'emake failed' + -e 's/gcc/$(CC) $(CFLAGS)/' Makefile \ + || die 'sed Makefile failed' + epatch "${FILESDIR}/${PV}-rc.patch" } src_install() { - dobin gtuxnes - - # Install documentation + dogamesbin gtuxnes || die "dogamesbin failed" dodoc AUTHORS CHANGES INSTALL README TODO + prepgamesdirs } |