From 784f76a9a73772dddf73cf96bd85e4db11c765da Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 23 Aug 2021 04:48:05 +0100 Subject: games-arcade/tomatoes: fix group of binary Closes: https://bugs.gentoo.org/809353 Signed-off-by: Sam James --- games-arcade/tomatoes/tomatoes-1.55-r3.ebuild | 75 --------------------------- games-arcade/tomatoes/tomatoes-1.55-r4.ebuild | 75 +++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 75 deletions(-) delete mode 100644 games-arcade/tomatoes/tomatoes-1.55-r3.ebuild create mode 100644 games-arcade/tomatoes/tomatoes-1.55-r4.ebuild (limited to 'games-arcade') diff --git a/games-arcade/tomatoes/tomatoes-1.55-r3.ebuild b/games-arcade/tomatoes/tomatoes-1.55-r3.ebuild deleted file mode 100644 index 088f0a4563b1..000000000000 --- a/games-arcade/tomatoes/tomatoes-1.55-r3.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit desktop toolchain-funcs - -DATA_PV=1.5 -DESCRIPTION="How many tomatoes can you smash in ten short minutes?" -HOMEPAGE="http://tomatoes.sourceforge.net/about.html" -SRC_URI="mirror://sourceforge/tomatoes/tomatoes-linux-src-${PV}.tar.bz2 - mirror://sourceforge/tomatoes/tomatoes-linux-${DATA_PV}.tar.bz2" - -LICENSE="ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" - -DEPEND=" - media-libs/libsdl[sound,video] - media-libs/sdl-image[jpeg,png] - media-libs/sdl-mixer[mod] - virtual/opengl - virtual/glu -" -RDEPEND=" - ${DEPEND} - acct-group/gamestat -" - -PATCHES=( - "${FILESDIR}"/${P}-c_str.patch - "${FILESDIR}"/${P}-underlink.patch - "${FILESDIR}"/${P}-gcc43.patch -) - -src_prepare() { - default - - mv ../tomatoes-1.5/* . || die "mv failed" - mv icon.png ${PN}.png || die - - sed -i \ - -e "/^MPKDIR = /s:./:/usr/share/${PN}/:" \ - -e "/^MUSICDIR = /s:./music/:/usr/share/${PN}/music/:" \ - -e "/^HISCOREDIR = /s:./:/var/games/${PN}/:" \ - -e "/^CONFIGDIR = /s:./:/etc/${PN}/:" \ - -e "/^OVERRIDEDIR = /s:./data/:/usr/share/${PN}/data/:" \ - makefile \ - || die "sed failed" -} - -src_configure() { - tc-export CXX -} - -src_install() { - dobin tomatoes - dodoc README README-src - - insinto /usr/share/${PN} - doins -r tomatoes.mpk music - - doicon ${PN}.png - make_desktop_entry tomatoes "I Have No Tomatoes" - - dodir /var/games/${PN} - touch "${ED}"/var/games/${PN}/hiscore.lst || die "touch failed" - - fperms 660 /var/games/${PN}/hiscore.lst - fowners -R root:gamestat /var/games/${PN} - fperms g+s /usr/bin/${PN} - - insinto /etc/${PN} - doins config.cfg -} diff --git a/games-arcade/tomatoes/tomatoes-1.55-r4.ebuild b/games-arcade/tomatoes/tomatoes-1.55-r4.ebuild new file mode 100644 index 000000000000..7bf17cee3fca --- /dev/null +++ b/games-arcade/tomatoes/tomatoes-1.55-r4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop toolchain-funcs + +DATA_PV=1.5 +DESCRIPTION="How many tomatoes can you smash in ten short minutes?" +HOMEPAGE="http://tomatoes.sourceforge.net/about.html" +SRC_URI="mirror://sourceforge/tomatoes/tomatoes-linux-src-${PV}.tar.bz2 + mirror://sourceforge/tomatoes/tomatoes-linux-${DATA_PV}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +DEPEND=" + media-libs/libsdl[sound,video] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[mod] + virtual/opengl + virtual/glu +" +RDEPEND=" + ${DEPEND} + acct-group/gamestat +" + +PATCHES=( + "${FILESDIR}"/${P}-c_str.patch + "${FILESDIR}"/${P}-underlink.patch + "${FILESDIR}"/${P}-gcc43.patch +) + +src_prepare() { + default + + mv ../tomatoes-1.5/* . || die "mv failed" + mv icon.png ${PN}.png || die + + sed -i \ + -e "/^MPKDIR = /s:./:/usr/share/${PN}/:" \ + -e "/^MUSICDIR = /s:./music/:/usr/share/${PN}/music/:" \ + -e "/^HISCOREDIR = /s:./:/var/games/${PN}/:" \ + -e "/^CONFIGDIR = /s:./:/etc/${PN}/:" \ + -e "/^OVERRIDEDIR = /s:./data/:/usr/share/${PN}/data/:" \ + makefile \ + || die "sed failed" +} + +src_configure() { + tc-export CXX +} + +src_install() { + dobin tomatoes + dodoc README README-src + + insinto /usr/share/${PN} + doins -r tomatoes.mpk music + + doicon ${PN}.png + make_desktop_entry tomatoes "I Have No Tomatoes" + + dodir /var/games/${PN} + touch "${ED}"/var/games/${PN}/hiscore.lst || die "touch failed" + + fperms 660 /var/games/${PN}/hiscore.lst + fowners -R root:gamestat /var/games/${PN} /usr/bin/${PN} + fperms g+s /usr/bin/${PN} + + insinto /etc/${PN} + doins config.cfg +} -- cgit v1.2.3-65-gdbad