1 |
commit: 689665a811a72189bcb6ea55363097db738c9810 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 25 19:12:37 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 25 19:13:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=689665a8 |
7 |
|
8 |
games-arcade/berusky: install data files again |
9 |
|
10 |
This was lost a few years ago in the games.eclass porting. Only now did |
11 |
somebody notice! |
12 |
|
13 |
Closes: https://bugs.gentoo.org/785259 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
...sky-1.7.1-r1.ebuild => berusky-1.7.1-r2.ebuild} | 31 ++++++++++---- |
17 |
.../berusky/files/berusky-1.7.1-r2-gentoo.patch | 47 ++++++++++++++++++++++ |
18 |
2 files changed, 71 insertions(+), 7 deletions(-) |
19 |
|
20 |
diff --git a/games-arcade/berusky/berusky-1.7.1-r1.ebuild b/games-arcade/berusky/berusky-1.7.1-r2.ebuild |
21 |
similarity index 62% |
22 |
rename from games-arcade/berusky/berusky-1.7.1-r1.ebuild |
23 |
rename to games-arcade/berusky/berusky-1.7.1-r2.ebuild |
24 |
index 57077ecfc39..66d347e826c 100644 |
25 |
--- a/games-arcade/berusky/berusky-1.7.1-r1.ebuild |
26 |
+++ b/games-arcade/berusky/berusky-1.7.1-r2.ebuild |
27 |
@@ -1,7 +1,8 @@ |
28 |
-# Copyright 1999-2020 Gentoo Authors |
29 |
+# Copyright 1999-2021 Gentoo Authors |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
|
32 |
-EAPI=6 |
33 |
+EAPI=7 |
34 |
+ |
35 |
inherit desktop gnome2 |
36 |
|
37 |
DATAFILE="${PN}-data-1.7" |
38 |
@@ -14,20 +15,36 @@ SRC_URI="https://www.anakreon.cz/download/${P}.tar.gz |
39 |
LICENSE="GPL-2+" |
40 |
SLOT="0" |
41 |
KEYWORDS="~amd64 ~x86" |
42 |
-IUSE="" |
43 |
|
44 |
RDEPEND=" |
45 |
media-libs/libsdl[X,video] |
46 |
media-libs/sdl-image[png] |
47 |
x11-libs/gtk+:2 |
48 |
" |
49 |
-DEPEND="${RDEPEND} |
50 |
- virtual/pkgconfig |
51 |
-" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+BDEPEND="virtual/pkgconfig" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${PN}-1.7.1-r1-gentoo.patch |
57 |
+) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ mv ../${DATAFILE}/{berusky.ini,GameData,Graphics,Levels} . || die |
61 |
+ |
62 |
+ default |
63 |
+} |
64 |
|
65 |
src_install() { |
66 |
gnome2_src_install |
67 |
- rm -rf "${ED}"/usr/doc |
68 |
+ |
69 |
+ rm -rf "${ED}"/usr/doc || die |
70 |
+ |
71 |
+ insinto /usr/share/${PN} |
72 |
+ doins -r GameData Graphics Levels |
73 |
+ |
74 |
+ insinto /var/lib/${PN} |
75 |
+ doins berusky.ini |
76 |
+ |
77 |
doicon -s 32 "${DISTDIR}"/${PN}.png |
78 |
make_desktop_entry ${PN} |
79 |
} |
80 |
|
81 |
diff --git a/games-arcade/berusky/files/berusky-1.7.1-r2-gentoo.patch b/games-arcade/berusky/files/berusky-1.7.1-r2-gentoo.patch |
82 |
new file mode 100644 |
83 |
index 00000000000..6fd1381ad2a |
84 |
--- /dev/null |
85 |
+++ b/games-arcade/berusky/files/berusky-1.7.1-r2-gentoo.patch |
86 |
@@ -0,0 +1,47 @@ |
87 |
+--- a/Makefile.am |
88 |
++++ b/Makefile.am |
89 |
+@@ -5,8 +5,7 @@ |
90 |
+ |
91 |
+ SUBDIRS = po src data |
92 |
+ |
93 |
+-beruskydocdir = ${prefix}/doc/berusky |
94 |
+-beruskydoc_DATA = \ |
95 |
++EXTRA_DIST = \ |
96 |
+ README\ |
97 |
+ COPYING\ |
98 |
+ AUTHORS\ |
99 |
+@@ -15,10 +14,6 @@ |
100 |
+ NEWS\ |
101 |
+ TODO |
102 |
+ |
103 |
+-EXTRA_DIST = $(beruskydoc_DATA) |
104 |
+- |
105 |
+- |
106 |
+- |
107 |
+ # Copy all the spec files. Of cource, only one is actually used. |
108 |
+ dist-hook: |
109 |
+ for specfile in *.spec; do \ |
110 |
+--- a/data/Makefile.am |
111 |
++++ b/data/Makefile.am |
112 |
+@@ -3,10 +3,3 @@ |
113 |
+ ## Created by Anjuta - will be overwritten |
114 |
+ ## If you don't want it to overwrite it, |
115 |
+ ## Please disable it in the Anjuta project configuration |
116 |
+- |
117 |
+-berusky_datadir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/@PACKAGE@ |
118 |
+- |
119 |
+-berusky_data_DATA = \ |
120 |
+- berusky.ini |
121 |
+- |
122 |
+-EXTRA_DIST = $(berusky_data_DATA) |
123 |
+--- a/src/defines.h |
124 |
++++ b/src/defines.h |
125 |
+@@ -446,7 +446,7 @@ |
126 |
+ #define INI_USER_DIRECTORY "~/.berusky" |
127 |
+ #define INI_USER_LEVELS "~/.berusky/User" |
128 |
+ #define INI_USER_PROFILES "~/.berusky/Profiles" |
129 |
+-#define INI_FILE_GLOBAL "/var/games/berusky/"INI_FILE_NAME |
130 |
++#define INI_FILE_GLOBAL "/var/lib/berusky/"INI_FILE_NAME |
131 |
+ #define INI_FILE_USER "~/.berusky/"INI_FILE_NAME |
132 |
+ #define INI_FILE_LOCAL "./"INI_FILE_NAME |
133 |
+ #elif WINDOWS |