From 4e8f53e08c282ff4d91c3022f9de5c66b6101e64 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 23 Aug 2021 05:21:29 +0100 Subject: games-puzzle/xwelltris: fix group of binary Closes: https://bugs.gentoo.org/809353 Signed-off-by: Sam James --- games-puzzle/xwelltris/xwelltris-1.0.1-r1.ebuild | 73 ++++++++++++++++++++++++ games-puzzle/xwelltris/xwelltris-1.0.1.ebuild | 73 ------------------------ 2 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 games-puzzle/xwelltris/xwelltris-1.0.1-r1.ebuild delete mode 100644 games-puzzle/xwelltris/xwelltris-1.0.1.ebuild diff --git a/games-puzzle/xwelltris/xwelltris-1.0.1-r1.ebuild b/games-puzzle/xwelltris/xwelltris-1.0.1-r1.ebuild new file mode 100644 index 000000000000..6d69ef032900 --- /dev/null +++ b/games-puzzle/xwelltris/xwelltris-1.0.1-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs prefix + +DESCRIPTION="2.5D tetris like game" +HOMEPAGE="http://xnc.jinr.ru/xwelltris/" +SRC_URI="http://xnc.jinr.ru/xwelltris/src/${P}.src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + media-libs/libsdl[video] + media-libs/sdl-image[gif] +" +RDEPEND=" + ${DEPEND} + acct-group/gamestat +" + +PATCHES=( + # Look in ${EPREFIX}/var/lib/xwelltris for score file + "${FILESDIR}"/${PN}-1.0.1-scorefile-dir.patch + "${FILESDIR}"/${PN}-1.0.1-gcc-11.patch +) + +src_prepare() { + default + + sed -i \ + -e '/INSTALL_PROGRAM/s/-s //' \ + src/Make.common.in || die + + sed -i \ + -e "/GLOBAL_SEARCH/s:\".*\":\"/usr/share/${PN}\":" \ + src/include/globals.h.in || die + + # Ensure we look in ${EPREFIX}/var/lib/${PN} for score file + eprefixify src/commonfuncs.cxx +} + +src_configure() { + tc-export CC CXX + + # configure/build process is pretty messed up + econf --with-sdl +} + +src_compile() { + emake -C src +} + +src_install() { + dodir /usr/bin /usr/share/${PN} /var/lib/${PN} /usr/share/man + + emake install \ + INSTDIR="${D}/usr/bin" \ + INSTLIB="${D}/usr/share/${PN}" \ + INSTMAN=/usr/share/man + + dodoc AUTHORS Changelog README* + + # Move score file to our location + mv "${ED}"/usr/share/${PN}/welltris.scores "${ED}"/var/lib/${PN}/welltris.scores || die + + fowners root:gamestat /var/lib/${PN}/welltris.scores /usr/bin/${PN} + fperms 660 /var/lib/${PN}/welltris.scores + fperms g+s /usr/bin/${PN} +} diff --git a/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild b/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild deleted file mode 100644 index 11369637b0b0..000000000000 --- a/games-puzzle/xwelltris/xwelltris-1.0.1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs prefix - -DESCRIPTION="2.5D tetris like game" -HOMEPAGE="http://xnc.jinr.ru/xwelltris/" -SRC_URI="http://xnc.jinr.ru/xwelltris/src/${P}.src.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=" - media-libs/libsdl[video] - media-libs/sdl-image[gif] -" -RDEPEND=" - ${DEPEND} - acct-group/gamestat -" - -PATCHES=( - # Look in ${EPREFIX}/var/lib/xwelltris for score file - "${FILESDIR}"/${PN}-1.0.1-scorefile-dir.patch - "${FILESDIR}"/${PN}-1.0.1-gcc-11.patch -) - -src_prepare() { - default - - sed -i \ - -e '/INSTALL_PROGRAM/s/-s //' \ - src/Make.common.in || die - - sed -i \ - -e "/GLOBAL_SEARCH/s:\".*\":\"/usr/share/${PN}\":" \ - src/include/globals.h.in || die - - # Ensure we look in ${EPREFIX}/var/lib/${PN} for score file - eprefixify src/commonfuncs.cxx -} - -src_configure() { - tc-export CC CXX - - # configure/build process is pretty messed up - econf --with-sdl -} - -src_compile() { - emake -C src -} - -src_install() { - dodir /usr/bin /usr/share/${PN} /var/lib/${PN} /usr/share/man - - emake install \ - INSTDIR="${D}/usr/bin" \ - INSTLIB="${D}/usr/share/${PN}" \ - INSTMAN=/usr/share/man - - dodoc AUTHORS Changelog README* - - # Move score file to our location - mv "${ED}"/usr/share/${PN}/welltris.scores "${ED}"/var/lib/${PN}/welltris.scores || die - - fowners root:gamestat /var/lib/${PN}/welltris.scores - fperms 660 /var/lib/${PN}/welltris.scores - fperms g+s /usr/bin/${PN} -} -- cgit v1.2.3-65-gdbad