1 |
commit: 935497894b037935742e9630c1bad511d8dddca5 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 29 01:07:44 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Sat Feb 29 01:12:26 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=93549789 |
7 |
|
8 |
games-puzzle/londonlaw: remove package |
9 |
|
10 |
Python 2.7 only package. |
11 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
12 |
|
13 |
games-puzzle/londonlaw/files/londonlaw.confd | 2 - |
14 |
games-puzzle/londonlaw/files/londonlaw.rc | 21 ----- |
15 |
games-puzzle/londonlaw/londonlaw-0.3.0_pre2.ebuild | 1 - |
16 |
games-puzzle/londonlaw/londonlaw-9999.ebuild | 104 --------------------- |
17 |
4 files changed, 128 deletions(-) |
18 |
|
19 |
diff --git a/games-puzzle/londonlaw/files/londonlaw.confd b/games-puzzle/londonlaw/files/londonlaw.confd |
20 |
deleted file mode 100644 |
21 |
index 083798b..0000000 |
22 |
--- a/games-puzzle/londonlaw/files/londonlaw.confd |
23 |
+++ /dev/null |
24 |
@@ -1,2 +0,0 @@ |
25 |
-#run londonlaw on port 7921 (default) |
26 |
-LONDONLAW_PORT="7921" |
27 |
|
28 |
diff --git a/games-puzzle/londonlaw/files/londonlaw.rc b/games-puzzle/londonlaw/files/londonlaw.rc |
29 |
deleted file mode 100644 |
30 |
index fbc185c..0000000 |
31 |
--- a/games-puzzle/londonlaw/files/londonlaw.rc |
32 |
+++ /dev/null |
33 |
@@ -1,21 +0,0 @@ |
34 |
-#!/sbin/runscript |
35 |
- |
36 |
-depend() { |
37 |
- need net |
38 |
-} |
39 |
- |
40 |
-start() { |
41 |
- ebegin "Starting londonlaw server" |
42 |
- start-stop-daemon --start --pidfile /var/run/london-server.pid \ |
43 |
- --user GAMES_USER_DED --background --stdout GAMES_LOGDIR/PN.log \ |
44 |
- --stderr GAMES_LOGDIR/PN.log --make-pidfile \ |
45 |
- --exec GAMES_BINDIR/london-server -- -p $LONDONLAW_PORT |
46 |
- eend $? |
47 |
-} |
48 |
- |
49 |
-stop() { |
50 |
- ebegin "Stopping londonlaw server" |
51 |
- start-stop-daemon --stop --pidfile /var/run/london-server.pid \ |
52 |
- --exec GAMES_BINDIR/london-server |
53 |
- eend $? |
54 |
-} |
55 |
|
56 |
diff --git a/games-puzzle/londonlaw/londonlaw-0.3.0_pre2.ebuild b/games-puzzle/londonlaw/londonlaw-0.3.0_pre2.ebuild |
57 |
deleted file mode 120000 |
58 |
index e058002..0000000 |
59 |
--- a/games-puzzle/londonlaw/londonlaw-0.3.0_pre2.ebuild |
60 |
+++ /dev/null |
61 |
@@ -1 +0,0 @@ |
62 |
-londonlaw-9999.ebuild |
63 |
\ No newline at end of file |
64 |
|
65 |
diff --git a/games-puzzle/londonlaw/londonlaw-9999.ebuild b/games-puzzle/londonlaw/londonlaw-9999.ebuild |
66 |
deleted file mode 100644 |
67 |
index abf7dc5..0000000 |
68 |
--- a/games-puzzle/londonlaw/londonlaw-9999.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,104 +0,0 @@ |
71 |
-# Copyright 1999-2015 Gentoo Foundation |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
-# $Header: $ |
74 |
- |
75 |
-EAPI=5 |
76 |
-PYTHON_COMPAT=( python2_7 ) |
77 |
- |
78 |
-if [ "${PV}" == "9999" ]; then |
79 |
- MY_INHERIT=git-r3 |
80 |
-fi |
81 |
- |
82 |
-inherit eutils python-single-r1 games $MY_INHERIT |
83 |
- |
84 |
-DESCRIPTION="Clone of the famous Scotland Yard board game" |
85 |
-HOMEPAGE="http://pessimization.com/software/londonlaw/" |
86 |
-if [ "${PV}" == "9999" ]; then |
87 |
- EGIT_REPO_URI=https://github.com/anyc/londonlaw.git |
88 |
-else |
89 |
- SRC_URI="https://github.com/anyc/londonlaw/archive/v${PV}.tar.gz" |
90 |
-fi |
91 |
- |
92 |
-LICENSE="GPL-2" |
93 |
-SLOT="0" |
94 |
-KEYWORDS="~amd64 ~x86" |
95 |
-IUSE="dedicated" |
96 |
- |
97 |
-DEPEND="dev-python/twisted-core[${PYTHON_USEDEP}] |
98 |
- dev-python/zope-interface[${PYTHON_USEDEP}] |
99 |
- |
100 |
- !dedicated? ( dev-python/wxpython:3.0[${PYTHON_USEDEP}] ) |
101 |
- ${PYTHON_DEPS}" |
102 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
103 |
- |
104 |
-src_prepare() { |
105 |
- if use dedicated ; then |
106 |
- local f |
107 |
- rm -r londonlaw/{london-client,london-client.py,guiclient/} |
108 |
- sed -i \ |
109 |
- -e "s:'londonlaw.guiclient',::" \ |
110 |
- -e "s:'londonlaw/london-client',::" \ |
111 |
- setup.py \ |
112 |
- || die "sed failed" |
113 |
- fi |
114 |
- |
115 |
- for f in londonlaw.rc londonlaw.confd |
116 |
- do |
117 |
- sed \ |
118 |
- -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ |
119 |
- -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ |
120 |
- -e "s:GAMES_LOGDIR:${GAMES_LOGDIR}:" \ |
121 |
- -e "s:PN:${PN}:" \ |
122 |
- "${FILESDIR}/${f}" > "${T}/${f}" \ |
123 |
- || die "sed failed" |
124 |
- done |
125 |
- |
126 |
- sed -i \ |
127 |
- -e "s:^LONDONLAW_DBDIR=.*$:LONDONLAW_DBDIR=${GAMES_STATEDIR}/${PN}:" \ |
128 |
- "${T}/londonlaw.confd" \ |
129 |
- || die "sed failed" |
130 |
- |
131 |
- python_fix_shebang . |
132 |
-} |
133 |
- |
134 |
-src_install() { |
135 |
- "${PYTHON}" setup.py install \ |
136 |
- --root="${D}" \ |
137 |
- --prefix="${GAMES_PREFIX}" \ |
138 |
- --install-lib=$(python_get_sitedir) \ |
139 |
- --install-data="${GAMES_DATADIR}" \ |
140 |
- || die "install failed" |
141 |
- |
142 |
- dodoc doc/ChangeLog README.md doc/TODO doc/manual.tex doc/readme.protocol |
143 |
- dohtml doc/manual.html |
144 |
- |
145 |
- newinitd "${T}/londonlaw.rc" londonlaw |
146 |
- newconfd "${T}/londonlaw.confd" londonlaw |
147 |
- |
148 |
- dodir "${GAMES_LOGDIR}" |
149 |
- touch "${D}/${GAMES_LOGDIR}"/${PN}.log |
150 |
- |
151 |
- keepdir "${GAMES_STATEDIR}/${PN}" |
152 |
- fowners ${GAMES_USER_DED}:${GAMES_GROUP} \ |
153 |
- "${GAMES_STATEDIR}/${PN}" "${GAMES_LOGDIR}"/${PN}.log |
154 |
- |
155 |
- fperms ug+rwx "${GAMES_STATEDIR}/${PN}" |
156 |
- fperms ug+rw "${GAMES_LOGDIR}"/${PN}.log |
157 |
- |
158 |
- prepgamesdirs |
159 |
-} |
160 |
- |
161 |
-pkg_setup() { |
162 |
- python-single-r1_pkg_setup |
163 |
- games_pkg_setup |
164 |
-} |
165 |
- |
166 |
-pkg_postinst() { |
167 |
- games_pkg_postinst |
168 |
- if ! use dedicated ; then |
169 |
- echo |
170 |
- elog "To play, first start the server (london-server), then connect" |
171 |
- elog "with the client (london-client)." |
172 |
- echo |
173 |
- fi |
174 |
-} |