1 |
commit: 07813a42e9eb824a45d6997f578ef1f9812d15c6 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 25 19:28:35 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 19:30:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07813a42 |
7 |
|
8 |
games-puzzle/monsterz: Fixes from Debian, python3 support |
9 |
|
10 |
Package-Manager: Portage-2.3.82, Repoman-2.3.20 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
games-puzzle/monsterz/Manifest | 1 + |
14 |
.../monsterz/files/monsterz-0.7.1-gentoo-r1.patch | 11 +++++ |
15 |
games-puzzle/monsterz/monsterz-0.7.1_p11.ebuild | 57 ++++++++++++++++++++++ |
16 |
3 files changed, 69 insertions(+) |
17 |
|
18 |
diff --git a/games-puzzle/monsterz/Manifest b/games-puzzle/monsterz/Manifest |
19 |
index 874f1fe627d..dc3d0158282 100644 |
20 |
--- a/games-puzzle/monsterz/Manifest |
21 |
+++ b/games-puzzle/monsterz/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST monsterz-0.7.1.tar.gz 1879537 BLAKE2B e1ad9f17a64bcbb07005eb61d951dbf756997a6e6bd76c48d88bb634c9b3167c9fd41ef32032925b219153eb607dc238af76b44c3ef6c47aab753d59c61958e1 SHA512 62de125251a74e7ff237c90ad88e10a4953b8841251dfec45cc6b77f416677ef6d68cf4308c3190f65896b5bb1312934abd5e438f0341f08c02884585f0e4787 |
24 |
+DIST monsterz_0.7.1-11.debian.tar.xz 13688 BLAKE2B 2274b6d18b2f03200e09468243bae7ede94b81bd7595f65a73fd33bc9ccc7302fbea3a4876b5bbf6cf98735652742b1cf76b3c288fc6c005f9566c04b4a4f277 SHA512 c172355667db29de949de07745469552d62dc226120f38ff76a288b14018424338f27b6a562de215b7194b8b09c6346d29e9088c8a0edb0fe915f915b8577a4b |
25 |
|
26 |
diff --git a/games-puzzle/monsterz/files/monsterz-0.7.1-gentoo-r1.patch b/games-puzzle/monsterz/files/monsterz-0.7.1-gentoo-r1.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..bd8a825c3c4 |
29 |
--- /dev/null |
30 |
+++ b/games-puzzle/monsterz/files/monsterz-0.7.1-gentoo-r1.patch |
31 |
@@ -0,0 +1,11 @@ |
32 |
+--- a/monsterz.py.old 2019-12-25 20:25:16.680365172 +0100 |
33 |
++++ b/monsterz.py 2019-12-25 20:25:50.606666122 +0100 |
34 |
+@@ -1991,7 +1991,7 @@ |
35 |
+ global system, data, settings, fonter, monsterz |
36 |
+ override = {} |
37 |
+ scorefile = None |
38 |
+- sharedir = dirname(argv[0]) |
39 |
++ sharedir = "GENTOO_DATADIR" |
40 |
+ outfd = None |
41 |
+ try: |
42 |
+ long = ['help', 'version', 'music', 'sound', 'fullscreen', |
43 |
|
44 |
diff --git a/games-puzzle/monsterz/monsterz-0.7.1_p11.ebuild b/games-puzzle/monsterz/monsterz-0.7.1_p11.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..74cbff40172 |
47 |
--- /dev/null |
48 |
+++ b/games-puzzle/monsterz/monsterz-0.7.1_p11.ebuild |
49 |
@@ -0,0 +1,57 @@ |
50 |
+# Copyright 1999-2019 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=7 |
54 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
55 |
+ |
56 |
+inherit desktop python-r1 |
57 |
+ |
58 |
+DESCRIPTION="A little puzzle game, similar to the famous Bejeweled or Zookeeper" |
59 |
+HOMEPAGE="http://sam.zoy.org/projects/monsterz/" |
60 |
+SRC_URI=" |
61 |
+ http://sam.zoy.org/projects/monsterz/${P/_p*}.tar.gz |
62 |
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz |
63 |
+" |
64 |
+ |
65 |
+LICENSE="GPL-1+ LGPL-2+ WTFPL-2" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~hppa ~x86" |
68 |
+ |
69 |
+IUSE="" |
70 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
71 |
+ |
72 |
+RDEPEND="${PYTHON_DEPS} |
73 |
+ dev-python/pygame[${PYTHON_USEDEP}] |
74 |
+ media-libs/sdl-image[png] |
75 |
+ media-libs/sdl-mixer[mod] |
76 |
+" |
77 |
+DEPEND="${RDEPEND}" |
78 |
+BDEPEND="" |
79 |
+ |
80 |
+S="${WORKDIR}/${P/_p*}" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ # Debian fixes |
86 |
+ for p in $(<"${WORKDIR}"/debian/patches/series) ; do |
87 |
+ eapply -p1 "${WORKDIR}/debian/patches/${p}" |
88 |
+ done |
89 |
+ |
90 |
+ eapply "${FILESDIR}"/${PN}-0.7.1-gentoo-r1.patch |
91 |
+ sed -i \ |
92 |
+ -e "s:GENTOO_DATADIR:/usr/share/${PN}:" \ |
93 |
+ monsterz.py || die "sed failed" |
94 |
+ |
95 |
+ rm Makefile || die |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ insinto /usr/share/${PN} |
100 |
+ doins -r graphics sound |
101 |
+ newbin monsterz.py ${PN} |
102 |
+ newicon graphics/icon.png ${PN}.png |
103 |
+ make_desktop_entry ${PN} Monsterz |
104 |
+ einstalldocs |
105 |
+ python_replicate_script "${ED}"/usr/bin/monsterz |
106 |
+} |