1 |
commit: 8e526a4c11387c99eab0ddf17d8e103f15038b3e |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 7 17:47:14 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=8e526a4c |
7 |
|
8 |
games-strategy/boswars: 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/boswars/boswars-2.7-r2.ebuild | 70 ++++++++++++++++++++++ |
16 |
.../boswars/files/boswars-2.7-gentoo.patch | 4 +- |
17 |
.../boswars/files/boswars-2.7-scons-blows.patch | 4 +- |
18 |
3 files changed, 74 insertions(+), 4 deletions(-) |
19 |
|
20 |
diff --git a/games-strategy/boswars/boswars-2.7-r2.ebuild b/games-strategy/boswars/boswars-2.7-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..e47f414ef94 |
23 |
--- /dev/null |
24 |
+++ b/games-strategy/boswars/boswars-2.7-r2.ebuild |
25 |
@@ -0,0 +1,70 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
30 |
+inherit eutils scons-utils |
31 |
+ |
32 |
+DESCRIPTION="Futuristic real-time strategy game" |
33 |
+HOMEPAGE="http://www.boswars.org/" |
34 |
+SRC_URI="http://www.boswars.org/dist/releases/${P}-src.tar.gz |
35 |
+ https://dev.gentoo.org/~hasufell/distfiles/${P}-fixed-images-for-libpng-1.6.tar.xz |
36 |
+ mirror://gentoo/bos.png" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+RDEPEND="dev-lang/lua:0 |
44 |
+ media-libs/libogg |
45 |
+ media-libs/libpng:0 |
46 |
+ media-libs/libsdl[opengl,sound,video] |
47 |
+ media-libs/libtheora |
48 |
+ media-libs/libvorbis |
49 |
+ virtual/opengl |
50 |
+ x11-libs/libX11" |
51 |
+DEPEND="${RDEPEND}" |
52 |
+ |
53 |
+S=${WORKDIR}/${P}-src |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${P}-gentoo.patch |
57 |
+ "${FILESDIR}"/${P}-scons-blows.patch |
58 |
+) |
59 |
+ |
60 |
+src_unpack() { |
61 |
+ default |
62 |
+ # bug 475764 |
63 |
+ cp -dRp ${P}-fixed-images-for-libpng-1.6/* ${P}-src/ \ |
64 |
+ || die "copying fixed images failed!" |
65 |
+} |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ |
70 |
+ rm -f doc/{README-SDL.txt,guichan-copyright.txt} || die |
71 |
+ |
72 |
+ sed -i \ |
73 |
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ |
74 |
+ engine/include/stratagus.h \ |
75 |
+ || die |
76 |
+ sed -i \ |
77 |
+ -e "/-O2/s:-O2.*math:${CXXFLAGS} -Wall:" \ |
78 |
+ SConstruct \ |
79 |
+ || die |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ escons || die |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ newbin build/${PN}-release ${PN} |
88 |
+ insinto /usr/share/${PN} |
89 |
+ doins -r campaigns graphics intro languages maps patches scripts sounds units |
90 |
+ newicon "${DISTDIR}"/bos.png ${PN}.png |
91 |
+ make_desktop_entry ${PN} "Bos Wars" |
92 |
+ # COPYRIGHT.txt is referenced by the html |
93 |
+ dodoc CHANGELOG COPYRIGHT.txt README.txt |
94 |
+ dodoc -r doc/* |
95 |
+} |
96 |
|
97 |
diff --git a/games-strategy/boswars/files/boswars-2.7-gentoo.patch b/games-strategy/boswars/files/boswars-2.7-gentoo.patch |
98 |
index 9459c77d89b..a005f6f93ad 100644 |
99 |
--- a/games-strategy/boswars/files/boswars-2.7-gentoo.patch |
100 |
+++ b/games-strategy/boswars/files/boswars-2.7-gentoo.patch |
101 |
@@ -1,5 +1,5 @@ |
102 |
-diff -ru boswars-2.6.1-src.orig/engine/include/stratagus.h boswars-2.6.1-src/engine/include/stratagus.h |
103 |
---- boswars-2.6.1-src.orig/engine/include/stratagus.h 2010-04-11 08:12:18.000000000 -0400 |
104 |
+diff -ru boswars-2.6.1-src/engine/include/stratagus.h boswars-2.6.1-src/engine/include/stratagus.h |
105 |
+--- boswars-2.6.1-src/engine/include/stratagus.h 2010-04-11 08:12:18.000000000 -0400 |
106 |
+++ boswars-2.6.1-src/engine/include/stratagus.h 2010-05-22 02:33:50.021377764 -0400 |
107 |
@@ -133,7 +133,7 @@ |
108 |
-- General |
109 |
|
110 |
diff --git a/games-strategy/boswars/files/boswars-2.7-scons-blows.patch b/games-strategy/boswars/files/boswars-2.7-scons-blows.patch |
111 |
index 0a7029df497..1d2c04cc4f1 100644 |
112 |
--- a/games-strategy/boswars/files/boswars-2.7-scons-blows.patch |
113 |
+++ b/games-strategy/boswars/files/boswars-2.7-scons-blows.patch |
114 |
@@ -1,5 +1,5 @@ |
115 |
---- SConstruct.orig 2010-11-19 21:09:45.724976603 -0500 |
116 |
-+++ SConstruct 2010-11-19 21:11:05.723197985 -0500 |
117 |
+--- a/SConstruct 2010-11-19 21:09:45.724976603 -0500 |
118 |
++++ b/SConstruct 2010-11-19 21:11:05.723197985 -0500 |
119 |
@@ -22,6 +22,7 @@ |
120 |
## |