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-fps/rott/
Date: Tue, 14 Feb 2017 23:41:51
Message-Id: 1487115678.452c7c70d4969cd3e80e4aa609047a3ef8147ddc.wizardedit@gentoo
1 commit: 452c7c70d4969cd3e80e4aa609047a3ef8147ddc
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 9 23:09:31 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 14 23:41:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=452c7c70
7
8 games-fps/rott: 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-fps/rott/rott-1.1.2-r1.ebuild | 56 +++++++++++++++++++++++++++++++++++++
17 1 file changed, 56 insertions(+)
18
19 diff --git a/games-fps/rott/rott-1.1.2-r1.ebuild b/games-fps/rott/rott-1.1.2-r1.ebuild
20 new file mode 100644
21 index 0000000000..d14d5f9918
22 --- /dev/null
23 +++ b/games-fps/rott/rott-1.1.2-r1.ebuild
24 @@ -0,0 +1,56 @@
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 +DESCRIPTION="Rise of the Triad for Linux!"
33 +HOMEPAGE="http://www.icculus.org/rott/"
34 +SRC_URI="http://www.icculus.org/rott/releases/${P}.tar.gz
35 + demo? ( http://filesingularity.timedoctor.org/swdata.zip )"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~x86"
40 +IUSE="demo"
41 +
42 +RDEPEND="media-libs/libsdl[sound,joystick,video]
43 + media-libs/sdl-mixer"
44 +DEPEND="${RDEPEND}
45 + app-arch/unzip"
46 +
47 +S=${WORKDIR}/${P}/rott
48 +
49 +src_prepare() {
50 + default
51 +
52 + sed -i \
53 + -e '/^CC =/d' \
54 + Makefile || die "sed failed"
55 + emake clean
56 +}
57 +
58 +src_compile() {
59 + emake -j1 \
60 + EXTRACFLAGS="${CFLAGS} -DDATADIR=\\\"/usr/share/${PN}/\\\"" \
61 + SHAREWARE=$(usex demo "1" "0")
62 +}
63 +
64 +src_install() {
65 + dobin rott
66 + dodoc ../doc/*.txt ../README
67 + doman ../doc/rott.6
68 + if use demo ; then
69 + cd "${WORKDIR}" || die
70 + insinto /usr/share/${PN}
71 + doins *.dmo huntbgin.* remote1.rts
72 + fi
73 +}
74 +
75 +pkg_postinst() {
76 + if ! use demo ; then
77 + elog "To play the full version, just copy the"
78 + elog "data files to /usr/share/${PN}/"
79 + fi
80 +}