From aa1d52980fad84ee276783a82a14e56316551b5b Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sun, 27 Jun 2021 22:34:26 -0400 Subject: games-arcade/lbreakout2: fix qa notice, add unzip dep, tidy Use /var/games for highscore file instead of /var/lib/*.hscr and use gamestat for bug #683052. Also removed -O? filter, been there since 2003 and never explained. No issues with modern compilers and various -O levels Closes: https://bugs.gentoo.org/683052 Signed-off-by: Ionen Wolkens --- games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild | 94 --------------------- games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild | 95 ++++++++++++++++++++++ 2 files changed, 95 insertions(+), 94 deletions(-) delete mode 100644 games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild create mode 100644 games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild (limited to 'games-arcade') diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild deleted file mode 100644 index 4f0c9cc48e96..000000000000 --- a/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools desktop flag-o-matic gnome2-utils - -levels_V=20141220 -themes_V=20141220 - -DESCRIPTION="Breakout clone written with the SDL library" -HOMEPAGE="http://lgames.sourceforge.net/LBreakout2/" -SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz - mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-levelsets-${levels_V}.tar.gz - themes? ( mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-themes-${levels_V}.tar.gz )" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="nls themes" - -RDEPEND=" - media-libs/libpng:0= - sys-libs/zlib - media-libs/libsdl[sound,joystick,video] - media-libs/sdl-net - media-libs/sdl-mixer - nls? ( virtual/libintl )" -DEPEND="${RDEPEND}" -BDEPEND="nls? ( sys-devel/gettext )" - -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) - -src_unpack() { - unpack ${P}.tar.gz - - cd "${S}/client/levels" || die - unpack ${PN}-levelsets-${levels_V}.tar.gz - - if use themes; then - mkdir "${WORKDIR}"/themes || die - cd "${WORKDIR}"/themes || die - unpack ${PN}-themes-${themes_V}.tar.gz - - # Delete a few duplicate themes (already shipped with lbreakout2 - # tarball). Some of them have different case than built-in themes, so it - # is harder to just compare if the filename is the same. - rm -f absoluteB.zip oz.zip moiree.zip || die - local f - for f in *.zip; do - unzip -q "${f}" || die - rm -f "${f}" || die - done - fi -} - -src_prepare() { - default - mv configure.{in,ac} || die - eautoreconf -} - -src_configure() { - filter-flags -O? - econf \ - --enable-sdl-net \ - --with-docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ - $(use_enable nls) -} - -src_install() { - default - - if use themes; then - insinto /usr/share/lbreakout2/gfx - doins -r "${WORKDIR}"/themes/. - fi - - newicon client/gfx/win_icon.png ${PN}.png - newicon -s 32 client/gfx/win_icon.png ${PN}.png - make_desktop_entry lbreakout2 LBreakout2 -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild new file mode 100644 index 000000000000..d96256696ace --- /dev/null +++ b/games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools desktop + +LB_LEVELS_V="20141220" +LB_THEMES_V="20141220" + +DESCRIPTION="Breakout clone written with the SDL library" +HOMEPAGE="http://lgames.sourceforge.net/LBreakout2/" +SRC_URI=" + mirror://sourceforge/lgames/${P}.tar.gz + mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-levelsets-${LB_LEVELS_V}.tar.gz + themes? ( mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-themes-${LB_LEVELS_V}.tar.gz )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls themes" + +RDEPEND=" + acct-group/gamestat + media-libs/libpng:= + media-libs/libsdl[joystick,sound,video] + media-libs/sdl-mixer + media-libs/sdl-net + nls? ( virtual/libintl )" +DEPEND=" + ${RDEPEND} + sys-libs/zlib" +BDEPEND=" + nls? ( sys-devel/gettext ) + themes? ( app-arch/unzip )" + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_unpack() { + unpack ${P}.tar.gz + + cd "${S}/client/levels" || die + unpack ${PN}-levelsets-${LB_LEVELS_V}.tar.gz + + if use themes; then + mkdir "${WORKDIR}"/themes || die + cd "${WORKDIR}"/themes || die + unpack ${PN}-themes-${LB_THEMES_V}.tar.gz + + # Delete a few duplicate themes (already shipped with lbreakout2 + # tarball). Some of them have different case than built-in themes, so it + # is harder to just compare if the filename is the same. + rm absoluteB.zip oz.zip moiree.zip || die + local f + for f in *.zip; do + unpack ./${f} + rm ${f} || die + done + fi +} + +src_prepare() { + default + + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + local econfargs=( + $(use_enable nls) + --enable-sdl-net + --localstatedir="${EPREFIX}"/var/games + --with-docdir="${EPREFIX}"/usr/share/doc/${PF}/html + ) + econf "${econfargs[@]}" +} + +src_install() { + default + + fowners :gamestat /usr/bin/${PN} /var/games/${PN}.hscr + fperms g+s /usr/bin/${PN} + fperms 660 /var/games/${PN}.hscr + + if use themes; then + insinto /usr/share/lbreakout2/gfx + doins -r "${WORKDIR}"/themes/. + fi + + newicon client/gfx/win_icon.png ${PN}.png + make_desktop_entry ${PN} LBreakout2 +} -- cgit v1.2.3-65-gdbad