1 |
commit: 13374ab0e4ac61e8935e1effc9bbc02777324f99 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 25 19:59:15 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 19:59:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13374ab0 |
7 |
|
8 |
games-puzzle/pathological: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.82, Repoman-2.3.20 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
.../files/pathological-1.1.3-build.patch | 27 ------ |
14 |
.../files/pathological-1.1.3-music-py.patch | 23 ------ |
15 |
.../pathological/pathological-1.1.3-r3.ebuild | 95 ---------------------- |
16 |
3 files changed, 145 deletions(-) |
17 |
|
18 |
diff --git a/games-puzzle/pathological/files/pathological-1.1.3-build.patch b/games-puzzle/pathological/files/pathological-1.1.3-build.patch |
19 |
deleted file mode 100644 |
20 |
index d8793a6aef6..00000000000 |
21 |
--- a/games-puzzle/pathological/files/pathological-1.1.3-build.patch |
22 |
+++ /dev/null |
23 |
@@ -1,27 +0,0 @@ |
24 |
-Use implicit rules to build write-highscores so we dont have to worry |
25 |
-about CC/CFLAGS/LDFLAGS/etc... |
26 |
- |
27 |
-Include stdlib.h to get exit() prototype |
28 |
- |
29 |
---- write-highscores.c |
30 |
-+++ write-highscores.c |
31 |
-@@ -25,6 +25,7 @@ |
32 |
- #include <sys/stat.h> |
33 |
- #include <unistd.h> |
34 |
- #include <fcntl.h> |
35 |
-+#include <stdlib.h> |
36 |
- |
37 |
- #define BUFFER_SIZE 1024 |
38 |
- |
39 |
---- Makefile |
40 |
-+++ Makefile |
41 |
-@@ -4,9 +4,6 @@ |
42 |
- |
43 |
- all: write-highscores html/wheel.png |
44 |
- |
45 |
--write-highscores: write-highscores.c |
46 |
-- gcc -s -o write-highscores write-highscores.c |
47 |
-- |
48 |
- html/wheel.png: |
49 |
- ./makehtml |
50 |
- |
51 |
|
52 |
diff --git a/games-puzzle/pathological/files/pathological-1.1.3-music-py.patch b/games-puzzle/pathological/files/pathological-1.1.3-music-py.patch |
53 |
deleted file mode 100644 |
54 |
index 9d67085dd13..00000000000 |
55 |
--- a/games-puzzle/pathological/files/pathological-1.1.3-music-py.patch |
56 |
+++ /dev/null |
57 |
@@ -1,23 +0,0 @@ |
58 |
-Make sure music_pending_song is defined before we try using it |
59 |
- |
60 |
-http://bugs.gentoo.org/109272 |
61 |
- |
62 |
---- pathological.py |
63 |
-+++ pathological.py |
64 |
-@@ -28,6 +28,7 @@ |
65 |
- colorblind = 0 |
66 |
- sound_on = 1 |
67 |
- music_on = 1 |
68 |
-+music_pending_song = 0 |
69 |
- for arg in sys.argv[1:]: |
70 |
- if arg == '-s': |
71 |
- screenshot = 1 |
72 |
-@@ -194,7 +195,7 @@ |
73 |
- sound_on = sound_on ^ 1 |
74 |
- |
75 |
- def toggle_music(): |
76 |
-- global music_on |
77 |
-+ global music_pending_song, music_on |
78 |
- music_on = music_on ^ 1 |
79 |
- if music_on: |
80 |
- if music_pending_song: |
81 |
|
82 |
diff --git a/games-puzzle/pathological/pathological-1.1.3-r3.ebuild b/games-puzzle/pathological/pathological-1.1.3-r3.ebuild |
83 |
deleted file mode 100644 |
84 |
index 88e3d609d04..00000000000 |
85 |
--- a/games-puzzle/pathological/pathological-1.1.3-r3.ebuild |
86 |
+++ /dev/null |
87 |
@@ -1,95 +0,0 @@ |
88 |
-# Copyright 1999-2015 Gentoo Foundation |
89 |
-# Distributed under the terms of the GNU General Public License v2 |
90 |
- |
91 |
-EAPI=5 |
92 |
- |
93 |
-PYTHON_COMPAT=( python2_7 ) |
94 |
-inherit eutils python-single-r1 games |
95 |
- |
96 |
-DESCRIPTION="An enriched clone of the game 'Logical' by Rainbow Arts" |
97 |
-HOMEPAGE="http://pathological.sourceforge.net/" |
98 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
99 |
- |
100 |
-LICENSE="GPL-2" |
101 |
-SLOT="0" |
102 |
-KEYWORDS="~amd64 ~x86" |
103 |
-IUSE="doc" |
104 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
105 |
- |
106 |
-RDEPEND="${PYTHON_DEPS} |
107 |
- app-shells/bash |
108 |
- >=dev-python/pygame-1.5.5[${PYTHON_USEDEP}]" |
109 |
-DEPEND="${PYTHON_DEPS} |
110 |
- doc? ( media-libs/netpbm )" |
111 |
- |
112 |
-pkg_setup() { |
113 |
- games_pkg_setup |
114 |
- python-single-r1_pkg_setup |
115 |
-} |
116 |
- |
117 |
-src_unpack() { |
118 |
- unpack ${A} |
119 |
- cd "${S}" || die |
120 |
- unpack ./${PN}.6.gz |
121 |
-} |
122 |
- |
123 |
-src_prepare() { |
124 |
- epatch \ |
125 |
- "${FILESDIR}"/${P}-build.patch \ |
126 |
- "${FILESDIR}"/${P}-music-py.patch |
127 |
- |
128 |
- if use doc ; then |
129 |
- sed -i -e '5,$ s/=/ /g' makehtml || die |
130 |
- else |
131 |
- echo "#!/bin/sh" > makehtml |
132 |
- fi |
133 |
- |
134 |
- sed -i \ |
135 |
- -e "s:/usr/share/games:${GAMES_DATADIR}:" \ |
136 |
- -e "s:/var/games:${GAMES_STATEDIR}:" \ |
137 |
- -e "s:exec:exec ${EPYTHON}:" \ |
138 |
- ${PN} || die |
139 |
- |
140 |
- sed -i \ |
141 |
- -e 's:\xa9:(C):' \ |
142 |
- -e "s:/usr/lib/${PN}/bin:$(games_get_libdir)/${PN}:" \ |
143 |
- ${PN}.py || die |
144 |
- |
145 |
- python_fix_shebang ${PN}.py |
146 |
-} |
147 |
- |
148 |
-src_install() { |
149 |
- dogamesbin ${PN} |
150 |
- |
151 |
- exeinto "$(games_get_libdir)"/${PN} |
152 |
- doexe write-highscores |
153 |
- |
154 |
- insinto "${GAMES_DATADIR}"/${PN} |
155 |
- doins -r circuits graphics music sounds ${PN}.py |
156 |
- |
157 |
- insinto "${GAMES_STATEDIR}" |
158 |
- doins ${PN}_scores |
159 |
- fperms 660 "${GAMES_STATEDIR}"/${PN}_scores |
160 |
- |
161 |
- dodoc changelog README TODO |
162 |
- doman ${PN}.6 |
163 |
- use doc && dohtml -r html/* |
164 |
- |
165 |
- doicon ${PN}.xpm |
166 |
- make_desktop_entry ${PN} Pathological ${PN} |
167 |
- |
168 |
- # remove some unneeded resource files |
169 |
- rm -f "${D}/${GAMES_DATADIR}"/${PN}/graphics/*.xcf |
170 |
- prepgamesdirs |
171 |
-} |
172 |
- |
173 |
-pkg_postinst() { |
174 |
- games_pkg_postinst |
175 |
- if ! has_version "media-libs/sdl-mixer[mod]" ; then |
176 |
- echo |
177 |
- elog "Since you have turned off the 'mod' use flag for media-libs/sdl-mixer" |
178 |
- elog "no background music will be played." |
179 |
- echo |
180 |
- fi |
181 |
- |
182 |
-} |