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/chickens/
Date: Wed, 06 Jul 2016 17:55:23
Message-Id: 1467827705.2ee2a108fa08b1ee1722fbd328f38c13f23fee2b.wizardedit@gentoo
1 commit: 2ee2a108fa08b1ee1722fbd328f38c13f23fee2b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 17:54:48 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 6 17:55:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee2a108
7
8 games-action/chickens: 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.2.28
15
16 games-action/chickens/chickens-0.2.4-r1.ebuild | 60 ++++++++++++++++++++++++++
17 1 file changed, 60 insertions(+)
18
19 diff --git a/games-action/chickens/chickens-0.2.4-r1.ebuild b/games-action/chickens/chickens-0.2.4-r1.ebuild
20 new file mode 100644
21 index 0000000..bf90160
22 --- /dev/null
23 +++ b/games-action/chickens/chickens-0.2.4-r1.ebuild
24 @@ -0,0 +1,60 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils user
31 +
32 +MY_P="ChickensForLinux-Linux-${PV}"
33 +DESCRIPTION="Target chickens with rockets and shotguns. Funny"
34 +HOMEPAGE="http://www.chickensforlinux.com/"
35 +SRC_URI="http://www.chickensforlinux.com/${MY_P}.tar.gz"
36 +
37 +LICENSE="all-rights-reserved"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~x86"
40 +IUSE=""
41 +RESTRICT="mirror bindist"
42 +
43 +DEPEND="<media-libs/allegro-5"
44 +RDEPEND="${DEPEND}"
45 +
46 +S=${WORKDIR}/${PN}
47 +
48 +pkg_setup(){
49 + enewgroup gamestat 36
50 +}
51 +
52 +src_prepare() {
53 + default
54 +
55 + sed -i \
56 + -e "s:HighScores:/var/games//${PN}/HighScores:" \
57 + -e "s:....\(.\)\(_\)\(.*.4x0\)\(.\):M\4\2\x42\x6Fn\1s\2:" \
58 + highscore.cpp HighScores || die
59 + sed -i \
60 + -e "s:options.cfg:/etc/${PN}/options.cfg:" \
61 + -e "s:\"sound/:\"/usr/share/${PN}/sound/:" \
62 + -e "s:\"dat/:\"/usr/share/${PN}/dat/:" \
63 + main.cpp README || die
64 + sed -i \
65 + -e '/^CPPFLAGS/d' \
66 + -e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
67 + configure || die
68 +}
69 +
70 +src_install() {
71 + dobin ${PN}
72 + insinto /usr/share/${PN}
73 + doins -r dat sound
74 + dodoc AUTHOR README
75 + insinto /var/games/${PN}
76 + doins HighScores
77 + insinto /etc/${PN}
78 + doins options.cfg
79 + make_desktop_entry ${PN} Chickens
80 +
81 + fowners root:gamestat /usr/bin/${PN} /var/games/${PN}/HighScores
82 + fperms 2755 /usr/bin/${PN}
83 + fperms 660 /var/games/${PN}/HighScores
84 +}