From 36377e34890d1bb805dfaf3719f8359309b76846 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 23 Aug 2021 05:02:37 +0100 Subject: games-arcade/gunocide2ex: fix group of binary Closes: https://bugs.gentoo.org/809353 Signed-off-by: Sam James --- games-arcade/gunocide2ex/gunocide2ex-1.0-r2.ebuild | 88 ---------------------- games-arcade/gunocide2ex/gunocide2ex-1.0-r3.ebuild | 88 ++++++++++++++++++++++ 2 files changed, 88 insertions(+), 88 deletions(-) delete mode 100644 games-arcade/gunocide2ex/gunocide2ex-1.0-r2.ebuild create mode 100644 games-arcade/gunocide2ex/gunocide2ex-1.0-r3.ebuild (limited to 'games-arcade/gunocide2ex') diff --git a/games-arcade/gunocide2ex/gunocide2ex-1.0-r2.ebuild b/games-arcade/gunocide2ex/gunocide2ex-1.0-r2.ebuild deleted file mode 100644 index 920de2e8b41e..000000000000 --- a/games-arcade/gunocide2ex/gunocide2ex-1.0-r2.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit desktop edos2unix toolchain-funcs unpacker - -DESCRIPTION="Fast-paced 2D shoot'em'up" -HOMEPAGE="http://g2ex.sourceforge.net/" -SRC_URI="mirror://sourceforge/g2ex/g2ex-setup.run" -S="${WORKDIR}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86" - -DEPEND=" - media-libs/libsdl[video] - media-libs/sdl-ttf - media-libs/sdl-mixer[vorbis] -" -RDEPEND=" - ${DEPEND} - acct-group/gamestat -" - -PATCHES=( - "${FILESDIR}"/${P}-build.patch - "${FILESDIR}"/${P}-glibc2.10.patch -) - -src_unpack() { - unpack_makeself - mkdir binary || die -} - -src_prepare() { - default - - edos2unix config.cfg - - sed -i \ - -e "s:/usr/local/games/gunocide2ex/config\.cfg:/etc/${PN}.cfg:" \ - -e "s:/usr/local/games/gunocide2ex/hscore\.dat:/var/games/gunocide2ex/${PN}-hscore.dat:" \ - -e "s:memleaks.log:/dev/null:" \ - src/*.{h,cpp} || die - - sed -i \ - -e "s:/usr/local/games:/usr/share:" \ - src/*.{h,cpp} $(find gfx -name '*.txt') || die -} - -src_compile() { - cd src || die - - tc-export CXX - - emake \ - CXXFLAGS="${CXXFLAGS} $(sdl-config --cflags)" \ - $(echo *.cpp | sed 's/\.cpp/.o/g') - - $(tc-getCXX) ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o ${PN} *.o -lpthread -lSDL -lSDL_ttf -lSDL_mixer || die -} - -src_install() { - dobin src/${PN} - dosym ${PN} /usr/bin/g2ex - - insinto /usr/share/${PN} - doins -r gfx sfx lvl credits arial.ttf - - insinto /etc - newins config.cfg ${PN}.cfg - - insinto /var/games/${PN} - newins hscore.dat ${PN}-hscore.dat - - fperms 660 /var/games/${PN}/${PN}-hscore.dat - fowners -R root:gamestat /var/games/${PN} - fperms g+s /usr/bin/g2ex - - dodoc history doc/MANUAL_DE - docinto html - dodoc doc/manual_de.html - - newicon g2icon.xpm ${PN}.xpm - make_desktop_entry ${PN} "Gunocide II EX" -} diff --git a/games-arcade/gunocide2ex/gunocide2ex-1.0-r3.ebuild b/games-arcade/gunocide2ex/gunocide2ex-1.0-r3.ebuild new file mode 100644 index 000000000000..b13817223bfb --- /dev/null +++ b/games-arcade/gunocide2ex/gunocide2ex-1.0-r3.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop edos2unix toolchain-funcs unpacker + +DESCRIPTION="Fast-paced 2D shoot'em'up" +HOMEPAGE="http://g2ex.sourceforge.net/" +SRC_URI="mirror://sourceforge/g2ex/g2ex-setup.run" +S="${WORKDIR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND=" + media-libs/libsdl[video] + media-libs/sdl-ttf + media-libs/sdl-mixer[vorbis] +" +RDEPEND=" + ${DEPEND} + acct-group/gamestat +" + +PATCHES=( + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${P}-glibc2.10.patch +) + +src_unpack() { + unpack_makeself + mkdir binary || die +} + +src_prepare() { + default + + edos2unix config.cfg + + sed -i \ + -e "s:/usr/local/games/gunocide2ex/config\.cfg:/etc/${PN}.cfg:" \ + -e "s:/usr/local/games/gunocide2ex/hscore\.dat:/var/games/gunocide2ex/${PN}-hscore.dat:" \ + -e "s:memleaks.log:/dev/null:" \ + src/*.{h,cpp} || die + + sed -i \ + -e "s:/usr/local/games:/usr/share:" \ + src/*.{h,cpp} $(find gfx -name '*.txt') || die +} + +src_compile() { + cd src || die + + tc-export CXX + + emake \ + CXXFLAGS="${CXXFLAGS} $(sdl-config --cflags)" \ + $(echo *.cpp | sed 's/\.cpp/.o/g') + + $(tc-getCXX) ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o ${PN} *.o -lpthread -lSDL -lSDL_ttf -lSDL_mixer || die +} + +src_install() { + dobin src/${PN} + dosym ${PN} /usr/bin/g2ex + + insinto /usr/share/${PN} + doins -r gfx sfx lvl credits arial.ttf + + insinto /etc + newins config.cfg ${PN}.cfg + + insinto /var/games/${PN} + newins hscore.dat ${PN}-hscore.dat + + fperms 660 /var/games/${PN}/${PN}-hscore.dat + fowners -R root:gamestat /var/games/${PN} /usr/bin/g2ex + fperms g+s /usr/bin/g2ex + + dodoc history doc/MANUAL_DE + docinto html + dodoc doc/manual_de.html + + newicon g2icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Gunocide II EX" +} -- cgit v1.2.3-65-gdbad