1 |
commit: b28a6410bd59b2afe37bac8feb3af35f62b02a0c |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 23:40:07 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 7 00:51:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28a6410 |
7 |
|
8 |
games-fps/blackshades: 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 |
.../blackshades/blackshades-20070723-r1.ebuild | 61 ++++++++++++++++++++++ |
17 |
.../blackshades/files/blackshades-datadir.patch | 4 +- |
18 |
2 files changed, 63 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/games-fps/blackshades/blackshades-20070723-r1.ebuild b/games-fps/blackshades/blackshades-20070723-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000..3d02700 |
23 |
--- /dev/null |
24 |
+++ b/games-fps/blackshades/blackshades-20070723-r1.ebuild |
25 |
@@ -0,0 +1,61 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=6 |
31 |
+inherit eutils |
32 |
+ |
33 |
+DESCRIPTION="You control a psychic bodyguard, and try to protect the VIP" |
34 |
+HOMEPAGE="http://www.wolfire.com/blackshades.html |
35 |
+ http://www.icculus.org/blackshades/" |
36 |
+SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2 |
37 |
+ mirror://gentoo/${P}.tar.bz2" |
38 |
+ |
39 |
+LICENSE="blackshades" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~ppc ~x86" |
42 |
+IUSE="" |
43 |
+ |
44 |
+DEPEND=" |
45 |
+ media-libs/freealut |
46 |
+ media-libs/libsdl |
47 |
+ media-libs/libvorbis |
48 |
+ media-libs/openal |
49 |
+ virtual/glu |
50 |
+ virtual/opengl" |
51 |
+RDEPEND="${DEPEND}" |
52 |
+ |
53 |
+S=${WORKDIR}/${PN} |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${PN}-datadir.patch |
57 |
+) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ rm -rf Data/Textures || die |
63 |
+ rm -f ../Textures/{,Blood/}._* || die |
64 |
+ mv -f ../Textures Data || die "mv failed" |
65 |
+ sed -i \ |
66 |
+ -e "s/-O2 \(-Wall\) -g/${CXXFLAGS} \1/" \ |
67 |
+ -e "/^LINKER/s:$: ${LDFLAGS}:" \ |
68 |
+ Makefile \ |
69 |
+ || die "sed Makefile failed" |
70 |
+ sed -i "s:@DATADIR@:/usr/share/${PN}:" \ |
71 |
+ Source/Main.cpp \ |
72 |
+ || die "sed Main.cpp failed" |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ emake bindir |
77 |
+ emake |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ newbin objs/blackshades ${PN} |
82 |
+ insinto /usr/share/${PN} |
83 |
+ doins -r Data |
84 |
+ dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme |
85 |
+ make_desktop_entry ${PN} "Black Shades" |
86 |
+} |
87 |
|
88 |
diff --git a/games-fps/blackshades/files/blackshades-datadir.patch b/games-fps/blackshades/files/blackshades-datadir.patch |
89 |
index 0050271..ee6cdf8 100644 |
90 |
--- a/games-fps/blackshades/files/blackshades-datadir.patch |
91 |
+++ b/games-fps/blackshades/files/blackshades-datadir.patch |
92 |
@@ -1,5 +1,5 @@ |
93 |
---- Source/Main.cpp |
94 |
-+++ Source/Main.cpp |
95 |
+--- a/Source/Main.cpp |
96 |
++++ b/Source/Main.cpp |
97 |
@@ -1,6 +1,7 @@ |
98 |
/********************> Headers <*****/ |