1 |
commit: 5ef981fceffc8fe28e9b308065d8f9591ac04e23 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 25 18:06:23 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 25 18:29:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ef981fc |
7 |
|
8 |
games-arcade/xrick: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-arcade/xrick/files/xrick-021212-zlib.patch | 4 +- |
13 |
games-arcade/xrick/xrick-021212-r2.ebuild | 54 ++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/games-arcade/xrick/files/xrick-021212-zlib.patch b/games-arcade/xrick/files/xrick-021212-zlib.patch |
17 |
index da09a46369d..bd7d6287925 100644 |
18 |
--- a/games-arcade/xrick/files/xrick-021212-zlib.patch |
19 |
+++ b/games-arcade/xrick/files/xrick-021212-zlib.patch |
20 |
@@ -1,5 +1,5 @@ |
21 |
---- include/unzip.h.old 2012-03-24 16:13:16.012854948 +0100 |
22 |
-+++ include/unzip.h 2012-03-24 16:15:42.744346771 +0100 |
23 |
+--- a/include/unzip.h.old 2012-03-24 16:13:16.012854948 +0100 |
24 |
++++ b/include/unzip.h 2012-03-24 16:15:42.744346771 +0100 |
25 |
@@ -49,6 +49,10 @@ |
26 |
#include "zlib.h" |
27 |
#endif |
28 |
|
29 |
diff --git a/games-arcade/xrick/xrick-021212-r2.ebuild b/games-arcade/xrick/xrick-021212-r2.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..9e95cbe3a4b |
32 |
--- /dev/null |
33 |
+++ b/games-arcade/xrick/xrick-021212-r2.ebuild |
34 |
@@ -0,0 +1,54 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+inherit desktop |
40 |
+ |
41 |
+DESCRIPTION="Clone of the Rick Dangerous adventure game from the 80's" |
42 |
+HOMEPAGE="http://www.bigorno.net/xrick/" |
43 |
+SRC_URI="http://www.bigorno.net/xrick/${P}.tgz" |
44 |
+ |
45 |
+LICENSE="GPL-1+ xrick" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd" |
48 |
+IUSE="" |
49 |
+RESTRICT="mirror bindist" # bug #149097 |
50 |
+ |
51 |
+DEPEND="media-libs/libsdl[video]" |
52 |
+RDEPEND="${DEPEND}" |
53 |
+ |
54 |
+src_unpack() { |
55 |
+ unpack ${A} |
56 |
+ cd "${S}" |
57 |
+ unpack ./xrick.6.gz |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ eapply "${FILESDIR}"/${P}*.patch |
63 |
+ sed -i \ |
64 |
+ -e "/^run from/d" \ |
65 |
+ -e "/data.zip/ s:the directory where xrick is:$(get_libdir)/${PN}.:" \ |
66 |
+ xrick.6 || die |
67 |
+ |
68 |
+ sed -i \ |
69 |
+ -e "s:data.zip:/usr/$(get_libdir)/${PN}/data.zip:" \ |
70 |
+ src/xrick.c || die |
71 |
+ |
72 |
+ sed -i \ |
73 |
+ -e "s/-g -ansi -pedantic -Wall -W -O2/${CFLAGS}/" \ |
74 |
+ -e '/LDFLAGS/s/=/+=/' \ |
75 |
+ -e '/CC=/d' \ |
76 |
+ -e "/CPP=/ { s/gcc/\$(CC)/; s/\"/'/g }" \ |
77 |
+ Makefile || die |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ dobin xrick |
82 |
+ insinto /usr/"$(get_libdir)"/${PN} |
83 |
+ doins data.zip |
84 |
+ newicon src/xrickST.ico ${PN}.ico |
85 |
+ make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico |
86 |
+ dodoc README KeyCodes |
87 |
+ doman xrick.6 |
88 |
+} |