1 |
commit: 9945a6cfdaa39ac47f1c5e11a30402cb412c53e1 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 7 17:39:27 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 7 21:04:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9945a6cf |
7 |
|
8 |
games-strategy/asc: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
14 |
|
15 |
games-strategy/asc/asc-2.6.0.0-r2.ebuild | 73 ++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 73 insertions(+) |
17 |
|
18 |
diff --git a/games-strategy/asc/asc-2.6.0.0-r2.ebuild b/games-strategy/asc/asc-2.6.0.0-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..9f44b9d7d53 |
21 |
--- /dev/null |
22 |
+++ b/games-strategy/asc/asc-2.6.0.0-r2.ebuild |
23 |
@@ -0,0 +1,73 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+WX_GTK_VER=3.0 |
29 |
+inherit eutils toolchain-funcs flag-o-matic wxwidgets |
30 |
+ |
31 |
+DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series" |
32 |
+HOMEPAGE="http://www.asc-hq.org/" |
33 |
+SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2 |
34 |
+ http://www.asc-hq.org/music/frontiers.ogg |
35 |
+ http://www.asc-hq.org/music/time_to_strike.ogg |
36 |
+ http://www.asc-hq.org/music/machine_wars.ogg" |
37 |
+ |
38 |
+LICENSE="GPL-2+" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+RDEPEND="app-arch/bzip2 |
44 |
+ dev-games/physfs |
45 |
+ dev-lang/lua:0 |
46 |
+ dev-libs/boost |
47 |
+ dev-libs/expat |
48 |
+ dev-libs/libsigc++:1.2 |
49 |
+ media-libs/libpng:0 |
50 |
+ media-libs/libsdl[video] |
51 |
+ media-libs/sdl-image[gif,jpeg,png] |
52 |
+ media-libs/sdl-mixer[vorbis] |
53 |
+ media-libs/sdl-sound |
54 |
+ media-libs/freetype |
55 |
+ media-libs/xvid |
56 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X]" |
57 |
+ |
58 |
+DEPEND="${RDEPEND} |
59 |
+ app-arch/zip |
60 |
+ dev-lang/perl |
61 |
+ virtual/pkgconfig" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}/"/${P}-gcc6-nothrow-in-dtors.patch ) |
64 |
+ |
65 |
+src_unpack() { |
66 |
+ local f |
67 |
+ |
68 |
+ unpack ${P}.tar.bz2 |
69 |
+ for f in ${A} |
70 |
+ do |
71 |
+ case ${f} in |
72 |
+ *ogg) |
73 |
+ cp "${DISTDIR}/${f}" "${S}/data/music" || die |
74 |
+ ;; |
75 |
+ esac |
76 |
+ done |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ need-wxwidgets unicode |
81 |
+ # Added --disable-paraguitest for bugs 26402 and 4488 |
82 |
+ # Added --disable-paragui for bug 61154 since it's not really used much |
83 |
+ # and the case is well documented at http://www.asc-hq.org/ |
84 |
+ if [[ $(gcc-major-version) -eq 4 ]] ; then |
85 |
+ replace-flags -O3 -O2 |
86 |
+ fi |
87 |
+ econf \ |
88 |
+ --disable-paraguitest \ |
89 |
+ --disable-paragui \ |
90 |
+ --datadir="/usr/share" |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ default |
95 |
+ dodoc -r doc/* |
96 |
+} |