Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/rrootage/
Date: Fri, 27 Jan 2017 19:44:30
Message-Id: 1485546252.8dc1f6480a1ce8acaf17885632bac3d2844b5f45.wizardedit@gentoo
1 commit: 8dc1f6480a1ce8acaf17885632bac3d2844b5f45
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 26 22:49:00 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 27 19:44:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc1f648
7
8 games-action/rrootage: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 games-action/rrootage/rrootage-0.23a-r1.ebuild | 73 ++++++++++++++++++++++++++
17 1 file changed, 73 insertions(+)
18
19 diff --git a/games-action/rrootage/rrootage-0.23a-r1.ebuild b/games-action/rrootage/rrootage-0.23a-r1.ebuild
20 new file mode 100644
21 index 00000000..00f1476
22 --- /dev/null
23 +++ b/games-action/rrootage/rrootage-0.23a-r1.ebuild
24 @@ -0,0 +1,73 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils
31 +
32 +MY_PN="rRootage"
33 +MY_P="${MY_PN}-${PV}"
34 +DESCRIPTION="Abstract shooter - defeat auto-created huge battleships"
35 +HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html
36 + http://rrootage.sourceforge.net/"
37 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~ppc ~x86"
42 +IUSE=""
43 +
44 +DEPEND="
45 + >=dev-libs/libbulletml-0.0.3
46 + media-libs/libsdl[video]
47 + media-libs/sdl-mixer[vorbis]
48 + virtual/glu
49 + virtual/opengl"
50 +RDEPEND=${DEPEND}
51 +
52 +S=${WORKDIR}/${MY_PN}/src
53 +
54 +PATCHES=(
55 + "${FILESDIR}/${P}"-gcc41.patch
56 +)
57 +
58 +src_prepare() {
59 + default
60 +
61 + sed \
62 + -e "s/-lglut/-lGL -lGLU -lm/" \
63 + -e "/^CC/d" \
64 + -e "/^CXX/d" \
65 + -e "/^LDFLAGS/s/=/+=/" \
66 + -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
67 + -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
68 + -e "s/ -mwindows//" \
69 + -e "s:-I./bulletml/:-I/usr/include/bulletml:" \
70 + makefile.lin > Makefile || die
71 +
72 + sed -i \
73 + -e "s:/usr/share/games:/usr/share:" \
74 + barragemanager.cc screen.c soundmanager.c || die
75 +}
76 +
77 +src_compile() {
78 + emake \
79 + MORE_CFLAGS="-DLINUX ${CFLAGS}" \
80 + MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}"
81 +}
82 +
83 +src_install() {
84 + newbin rr ${PN}
85 + dodir "/usr/share/${MY_PN}"
86 + cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die
87 + dodoc ../readme*
88 +}
89 +
90 +pkg_postinst() {
91 + if ! has_version "media-libs/sdl-mixer[vorbis]" ; then
92 + elog "${PN} will not have sound since sdl-mixer"
93 + elog "is built with USE=-vorbis"
94 + elog "Please emerge sdl-mixer with USE=vorbis"
95 + elog "if you want sound support"
96 + fi
97 +}