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/alephone/
Date: Tue, 07 Feb 2017 00:51:40
Message-Id: 1486428670.9a3df106d52c3be2ea574145e74399c1f258008b.wizardedit@gentoo
1 commit: 9a3df106d52c3be2ea574145e74399c1f258008b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 6 23:34:19 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 7 00:51:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a3df106
7
8 games-fps/alephone: 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/alephone/alephone-20150620-r1.ebuild | 89 ++++++++++++++++++++++++++
17 1 file changed, 89 insertions(+)
18
19 diff --git a/games-fps/alephone/alephone-20150620-r1.ebuild b/games-fps/alephone/alephone-20150620-r1.ebuild
20 new file mode 100644
21 index 00000000..3391d7c
22 --- /dev/null
23 +++ b/games-fps/alephone/alephone-20150620-r1.ebuild
24 @@ -0,0 +1,89 @@
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 autotools eutils
31 +
32 +MY_P=AlephOne-${PV}
33 +DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon"
34 +HOMEPAGE="http://source.bungie.org/"
35 +SRC_URI="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${PV}/AlephOne-${PV}.tar.bz2"
36 +
37 +LICENSE="GPL-3+ BitstreamVera OFL-1.1"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
40 +IUSE="alsa curl ffmpeg mad mpeg sndfile speex vorbis"
41 +
42 +RDEPEND="
43 + dev-libs/boost
44 + dev-libs/expat
45 + dev-libs/zziplib
46 + media-libs/libpng:0
47 + media-libs/libsdl[joystick,opengl,video]
48 + media-libs/sdl-image[png]
49 + media-libs/sdl-net
50 + media-libs/sdl-ttf
51 + virtual/opengl
52 + virtual/glu
53 + alsa? ( media-libs/alsa-lib )
54 + curl? ( net-misc/curl )
55 + ffmpeg? ( virtual/ffmpeg )
56 + mad? ( media-libs/libmad )
57 + mpeg? ( media-libs/smpeg )
58 + sndfile? ( media-libs/libsndfile )
59 + speex? ( media-libs/speex )
60 + vorbis? ( media-libs/libvorbis )"
61 +DEPEND="${RDEPEND}
62 + virtual/pkgconfig"
63 +
64 +S=${WORKDIR}/${MY_P}
65 +
66 +src_prepare() {
67 + default
68 +
69 + sed "s:GAMES_DATADIR:/usr/share:g" \
70 + "${FILESDIR}"/${PN}.sh > "${T}"/${PN}.sh \
71 + || die
72 +
73 + # try using the system expat - bug #251108
74 + sed -i \
75 + -e '/SUBDIRS/ s/Expat//' \
76 + -e 's/Expat\/libexpat.a/-lexpat/' \
77 + Source_Files/Makefile.am || die
78 + sed -i -e '/Expat/d' configure.ac || die
79 + rm -r Source_Files/Expat || die
80 +
81 + eautoreconf
82 +}
83 +
84 +src_configure() {
85 + econf \
86 + --enable-lua \
87 + --enable-opengl \
88 + $(use_with alsa) \
89 + $(use_with ffmpeg) \
90 + $(use_with mad) \
91 + $(use_with mpeg smpeg) \
92 + $(use_with sndfile) \
93 + $(use_with speex) \
94 + $(use_with vorbis)
95 +}
96 +
97 +src_install() {
98 + default
99 + dobin "${T}"/${PN}.sh
100 + doman docs/${PN}.6
101 + dodoc docs/*.html
102 +}
103 +
104 +pkg_postinst() {
105 + echo
106 + elog "Read the docs and install the data files accordingly to play."
107 + echo
108 + elog "If you only want to install one scenario, read"
109 + elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Single_scenario_3"
110 + elog "If you want to install multiple scenarios, read"
111 + elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Multiple_scenarios_3"
112 + echo
113 +}