From 93be02ff74ba071d860193e507750c8d217fc459 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 19 Aug 2021 12:05:49 +0100 Subject: games-action/rrootage: add missing libsdl[joystick] dep again! Fixes: 2a5c0c46e3051cc42c3299eae20fb77ce6d10e7e Closes: https://bugs.gentoo.org/809032 Signed-off-by: Sam James --- games-action/rrootage/rrootage-0.23a-r2.ebuild | 73 -------------------------- games-action/rrootage/rrootage-0.23a-r3.ebuild | 73 ++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 games-action/rrootage/rrootage-0.23a-r2.ebuild create mode 100644 games-action/rrootage/rrootage-0.23a-r3.ebuild (limited to 'games-action') diff --git a/games-action/rrootage/rrootage-0.23a-r2.ebuild b/games-action/rrootage/rrootage-0.23a-r2.ebuild deleted file mode 100644 index 0defc88d5323..000000000000 --- a/games-action/rrootage/rrootage-0.23a-r2.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 - -MY_PN="rRootage" -MY_P="${MY_PN}-${PV}" -DESCRIPTION="Abstract shooter - defeat auto-created huge battleships" -HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html - http://rrootage.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" -S="${WORKDIR}"/${MY_PN}/src - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=" - >=dev-libs/libbulletml-0.0.3 - media-libs/libsdl[video] - media-libs/sdl-mixer[vorbis] - virtual/glu - virtual/opengl" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}/${P}"-gcc41.patch -) - -src_prepare() { - default - - sed \ - -e "s/-lglut/-lGL -lGLU -lm/" \ - -e "/^CC/d" \ - -e "/^CXX/d" \ - -e "/^LDFLAGS/s/=/+=/" \ - -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \ - -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \ - -e "s/ -mwindows//" \ - -e "s:-I./bulletml/:-I/usr/include/bulletml:" \ - makefile.lin > Makefile || die - - sed -i \ - -e "s:/usr/share/games:/usr/share:" \ - barragemanager.cc screen.c soundmanager.c || die -} - -src_compile() { - emake \ - CC=$(tc-getCC) \ - CXX=$(tc-getCXX) \ - MORE_CFLAGS="-DLINUX ${CFLAGS}" \ - MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}" -} - -src_install() { - newbin rr ${PN} - dodir "/usr/share/${MY_PN}" - cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die - dodoc ../readme* -} - -pkg_postinst() { - if ! has_version "media-libs/sdl-mixer[vorbis]" ; then - elog "${PN} will not have sound since sdl-mixer" - elog "is built with USE=-vorbis" - elog "Please emerge sdl-mixer with USE=vorbis" - elog "if you want sound support" - fi -} diff --git a/games-action/rrootage/rrootage-0.23a-r3.ebuild b/games-action/rrootage/rrootage-0.23a-r3.ebuild new file mode 100644 index 000000000000..53505f01f287 --- /dev/null +++ b/games-action/rrootage/rrootage-0.23a-r3.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 + +MY_PN="rRootage" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Abstract shooter - defeat auto-created huge battleships" +HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html + http://rrootage.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +S="${WORKDIR}"/${MY_PN}/src + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + >=dev-libs/libbulletml-0.0.3 + media-libs/libsdl[joystick,video] + media-libs/sdl-mixer[vorbis] + virtual/glu + virtual/opengl" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}"-gcc41.patch +) + +src_prepare() { + default + + sed \ + -e "s/-lglut/-lGL -lGLU -lm/" \ + -e "/^CC/d" \ + -e "/^CXX/d" \ + -e "/^LDFLAGS/s/=/+=/" \ + -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \ + -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \ + -e "s/ -mwindows//" \ + -e "s:-I./bulletml/:-I/usr/include/bulletml:" \ + makefile.lin > Makefile || die + + sed -i \ + -e "s:/usr/share/games:/usr/share:" \ + barragemanager.cc screen.c soundmanager.c || die +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + MORE_CFLAGS="-DLINUX ${CFLAGS}" \ + MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}" +} + +src_install() { + newbin rr ${PN} + dodir "/usr/share/${MY_PN}" + cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die + dodoc ../readme* +} + +pkg_postinst() { + if ! has_version "media-libs/sdl-mixer[vorbis]" ; then + elog "${PN} will not have sound since sdl-mixer" + elog "is built with USE=-vorbis" + elog "Please emerge sdl-mixer with USE=vorbis" + elog "if you want sound support" + fi +} -- cgit v1.2.3-65-gdbad