1 |
commit: 07e290814e36265f86ddb442af14dddf72b5cf78 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 4 18:20:10 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 5 00:22:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07e29081 |
7 |
|
8 |
games-strategy/warzone2100: 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.0 |
15 |
|
16 |
.../warzone2100/warzone2100-3.1.5-r1.ebuild | 100 +++++++++++++++++++++ |
17 |
1 file changed, 100 insertions(+) |
18 |
|
19 |
diff --git a/games-strategy/warzone2100/warzone2100-3.1.5-r1.ebuild b/games-strategy/warzone2100/warzone2100-3.1.5-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..e1829ce |
22 |
--- /dev/null |
23 |
+++ b/games-strategy/warzone2100/warzone2100-3.1.5-r1.ebuild |
24 |
@@ -0,0 +1,100 @@ |
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 toolchain-funcs eutils versionator gnome2-utils |
31 |
+ |
32 |
+MY_PV=$(get_version_component_range -2) |
33 |
+VIDEOS_PV=2.2 |
34 |
+VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz |
35 |
+DESCRIPTION="3D real-time strategy game" |
36 |
+HOMEPAGE="http://wz2100.net/" |
37 |
+SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.xz |
38 |
+ videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )" |
39 |
+ |
40 |
+LICENSE="GPL-2+ CC-BY-SA-3.0 public-domain" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~ppc ~x86" |
43 |
+# upstream requested debug support |
44 |
+IUSE="debug nls qt4 videos" |
45 |
+ |
46 |
+# TODO: unbundle miniupnpc and quesoglc |
47 |
+# quesoglc-0.7.2 is buggy: http://developer.wz2100.net/ticket/2828 |
48 |
+RDEPEND=">=dev-games/physfs-2[zip] |
49 |
+ dev-libs/fribidi |
50 |
+ dev-qt/qtcore:4 |
51 |
+ dev-qt/qtscript:4 |
52 |
+ media-libs/fontconfig |
53 |
+ media-libs/freetype:2 |
54 |
+ media-libs/glew:= |
55 |
+ media-libs/libogg |
56 |
+ media-libs/libpng:0 |
57 |
+ media-libs/libtheora |
58 |
+ media-libs/libvorbis |
59 |
+ media-libs/openal |
60 |
+ sys-libs/zlib |
61 |
+ virtual/glu |
62 |
+ virtual/opengl |
63 |
+ x11-libs/libX11 |
64 |
+ x11-libs/libXrandr |
65 |
+ nls? ( virtual/libintl ) |
66 |
+ qt4? ( |
67 |
+ dev-qt/qtgui:4 |
68 |
+ dev-qt/qtopengl:4 |
69 |
+ ) |
70 |
+ !qt4? ( media-libs/libsdl[opengl,video,X] )" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ app-arch/zip |
73 |
+ virtual/pkgconfig |
74 |
+ nls? ( sys-devel/gettext )" |
75 |
+RDEPEND="${RDEPEND} |
76 |
+ media-fonts/dejavu" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ |
81 |
+ sed -i -e 's/#top_builddir/top_builddir/' po/Makevars || die |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ econf \ |
86 |
+ --docdir=/usr/share/doc/${PF} \ |
87 |
+ --localedir=/usr/share/locale \ |
88 |
+ --with-distributor="Gentoo ${PF}" \ |
89 |
+ --with-icondir=/usr/share/icons/hicolor/128x128/apps \ |
90 |
+ --with-applicationdir=/usr/share/applications \ |
91 |
+ $(use_enable debug debug relaxed) \ |
92 |
+ $(use_enable nls) \ |
93 |
+ --with-backend=$(usex qt4 "qt" "sdl") |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ emake AR="$(tc-getAR)" |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ default |
102 |
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING* |
103 |
+ if use videos ; then |
104 |
+ insinto /usr/share/${PN} |
105 |
+ newins "${DISTDIR}"/${VIDEOS_P} sequences.wz |
106 |
+ fi |
107 |
+ doman doc/warzone2100.6 |
108 |
+ dodoc doc/quickstartguide.pdf |
109 |
+ |
110 |
+ elog "If you are using opensource drivers you should consider installing: " |
111 |
+ elog " media-libs/libtxc_dxtn" |
112 |
+} |
113 |
+ |
114 |
+pkg_preinst() { |
115 |
+ gnome2_icon_savelist |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ gnome2_icon_cache_update |
120 |
+} |
121 |
+ |
122 |
+pkg_postrm() { |
123 |
+ gnome2_icon_cache_update |
124 |
+} |