1 |
commit: c0e216403830d361b699643b6d6f0555c840d23c |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 31 00:22:46 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 00:59:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0e21640 |
7 |
|
8 |
games-action/wordwarvi: 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/wordwarvi/wordwarvi-1.00-r1.ebuild | 60 +++++++++++++++++++++++++ |
17 |
1 file changed, 60 insertions(+) |
18 |
|
19 |
diff --git a/games-action/wordwarvi/wordwarvi-1.00-r1.ebuild b/games-action/wordwarvi/wordwarvi-1.00-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..1d6096e |
22 |
--- /dev/null |
23 |
+++ b/games-action/wordwarvi/wordwarvi-1.00-r1.ebuild |
24 |
@@ -0,0 +1,60 @@ |
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="A retro side-scrolling shoot'em up based on the editor war story" |
33 |
+HOMEPAGE="http://wordwarvi.sourceforge.net" |
34 |
+SRC_URI="mirror://sourceforge/wordwarvi/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2 CC-BY-2.0 CC-BY-SA-3.0" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="portaudio" |
40 |
+ |
41 |
+RDEPEND="x11-libs/gtk+:2 |
42 |
+ portaudio? ( media-libs/libvorbis |
43 |
+ >=media-libs/portaudio-19_pre1 )" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ virtual/pkgconfig" |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}"/${P}-sound.patch |
49 |
+) |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ |
54 |
+ sed -i \ |
55 |
+ -e "/^WITHAUDIO/s/yes/$(use portaudio && echo yes || echo no)/" \ |
56 |
+ Makefile || die |
57 |
+ sed -i \ |
58 |
+ -e "s:GENTOO_DATADIR:/usr/share/${PN}:" \ |
59 |
+ wwviaudio.c || die |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ emake \ |
64 |
+ PREFIX="/usr" \ |
65 |
+ DATADIR="/usr/share/${PN}" \ |
66 |
+ MANDIR="/usr/share/man" |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ emake \ |
71 |
+ DESTDIR="${D}" \ |
72 |
+ PREFIX="/usr" \ |
73 |
+ DATADIR="/usr/share/${PN}" \ |
74 |
+ MANDIR="/usr/share/man" \ |
75 |
+ install |
76 |
+ |
77 |
+ if ! use portaudio ; then |
78 |
+ rm -rf "${D}/usr/share" || die |
79 |
+ fi |
80 |
+ |
81 |
+ dodoc README AUTHORS changelog.txt AAA_HOW_TO_MAKE_NEW_LEVELS.txt |
82 |
+ newicon icons/wordwarvi_icon_128x128.png ${PN}.png |
83 |
+ make_desktop_entry ${PN} "Word War vi" |
84 |
+} |