diff options
author | Austin English <wizardedit@gentoo.org> | 2017-01-26 16:49:00 -0600 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2017-01-27 13:44:12 -0600 |
commit | 8dc1f6480a1ce8acaf17885632bac3d2844b5f45 (patch) | |
tree | ae71f3639fe70c1df011bf0e3e695790fa28b611 /games-action/rrootage | |
parent | games-action/rune: remove deprecated games eclass (diff) | |
download | gentoo-8dc1f6480a1ce8acaf17885632bac3d2844b5f45.tar.gz gentoo-8dc1f6480a1ce8acaf17885632bac3d2844b5f45.tar.bz2 gentoo-8dc1f6480a1ce8acaf17885632bac3d2844b5f45.zip |
games-action/rrootage: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: Portage-2.3.2, Repoman-2.3.1
Diffstat (limited to 'games-action/rrootage')
-rw-r--r-- | games-action/rrootage/rrootage-0.23a-r1.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/games-action/rrootage/rrootage-0.23a-r1.ebuild b/games-action/rrootage/rrootage-0.23a-r1.ebuild new file mode 100644 index 000000000000..00f14763a78e --- /dev/null +++ b/games-action/rrootage/rrootage-0.23a-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils + +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" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=" + >=dev-libs/libbulletml-0.0.3 + media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + virtual/glu + virtual/opengl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_PN}/src + +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 \ + 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 +} |