1 |
commit: 1ed45a84dabae7aff6833e58e4e718e45bd2c766 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 24 23:39:00 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 23:39:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ed45a84 |
7 |
|
8 |
games-action/formido: 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/formido/formido-1.0.1-r1.ebuild | 48 ++++++++++++++++++++++++++++ |
17 |
1 file changed, 48 insertions(+) |
18 |
|
19 |
diff --git a/games-action/formido/formido-1.0.1-r1.ebuild b/games-action/formido/formido-1.0.1-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..3c45a44 |
22 |
--- /dev/null |
23 |
+++ b/games-action/formido/formido-1.0.1-r1.ebuild |
24 |
@@ -0,0 +1,48 @@ |
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 toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="A shooting game in the spirit of Phobia games" |
33 |
+HOMEPAGE="http://www.mhgames.org/oldies/formido/" |
34 |
+SRC_URI="http://noe.falzon.free.fr/prog/${P}.tar.gz |
35 |
+ http://koti.mbnet.fi/lsoft/formido/formido-music.tar.bz2" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT=0 |
39 |
+KEYWORDS="~amd64 ~ppc ~x86" |
40 |
+IUSE="" |
41 |
+ |
42 |
+DEPEND="media-libs/libsdl[sound,video] |
43 |
+ media-libs/sdl-image |
44 |
+ media-libs/sdl-mixer" |
45 |
+RDEPEND=${DEPEND} |
46 |
+ |
47 |
+src_unpack() { |
48 |
+ unpack ${P}.tar.gz |
49 |
+ cd "${S}"/data || die |
50 |
+ unpack ${PN}-music.tar.bz2 |
51 |
+} |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ sed -i \ |
57 |
+ -e "s:g++:$(tc-getCXX):" \ |
58 |
+ -e "/^FLAGS=/s:$: ${CXXFLAGS}:" \ |
59 |
+ -e "/^LINKFLAGS=/s:=.*:=${LDFLAGS}:" \ |
60 |
+ -e "s:\${DATDIR}:/usr/share/${PN}/data:" \ |
61 |
+ -e "s:\${DEFCONFIGDIR}:/usr/share/${PN}:" \ |
62 |
+ Makefile || die |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ dobin ${PN} |
67 |
+ insinto /usr/share/${PN} |
68 |
+ doins -r ${PN}.cfg data |
69 |
+ newicon data/icon.dat ${PN}.bmp |
70 |
+ make_desktop_entry ${PN} Formido /usr/share/pixmaps/${PN}.bmp |
71 |
+ dodoc README README-1.0.1 |
72 |
+} |