1 |
mr_bones_ 08/08/24 06:36:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: londonlaw-0.2.1-r2.ebuild |
5 |
Log: |
6 |
dedicated support and sed patch from mattenklicker@×××.net via bug #235326 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.14 games-puzzle/londonlaw/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/londonlaw/ChangeLog?rev=1.14&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/londonlaw/ChangeLog?rev=1.14&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/londonlaw/ChangeLog?r1=1.13&r2=1.14 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/ChangeLog,v |
19 |
retrieving revision 1.13 |
20 |
retrieving revision 1.14 |
21 |
diff -u -r1.13 -r1.14 |
22 |
--- ChangeLog 25 Jun 2008 19:42:01 -0000 1.13 |
23 |
+++ ChangeLog 24 Aug 2008 06:36:05 -0000 1.14 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for games-puzzle/londonlaw |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/ChangeLog,v 1.13 2008/06/25 19:42:01 nixnut Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/ChangeLog,v 1.14 2008/08/24 06:36:05 mr_bones_ Exp $ |
29 |
+ |
30 |
+*londonlaw-0.2.1-r2 (24 Aug 2008) |
31 |
+ |
32 |
+ 24 Aug 2008; Michael Sterrett <mr_bones_@g.o> |
33 |
+ +files/londonlaw.confd, +files/londonlaw.rc, +londonlaw-0.2.1-r2.ebuild: |
34 |
+ dedicated support and sed patch from mattenklicker@×××.net via bug #235326 |
35 |
|
36 |
25 Jun 2008; nixnut <nixnut@g.o> londonlaw-0.2.1-r1.ebuild: |
37 |
Stable on ppc wrt bug 229307 |
38 |
|
39 |
|
40 |
|
41 |
1.1 games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: londonlaw-0.2.1-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild,v 1.1 2008/08/24 06:36:05 mr_bones_ Exp $ |
51 |
|
52 |
EAPI=1 |
53 |
inherit eutils python games |
54 |
|
55 |
DESCRIPTION="Clone of the famous Scotland Yard board game" |
56 |
HOMEPAGE="http://pessimization.com/software/londonlaw/" |
57 |
SRC_URI="http://pessimization.com/software/londonlaw/${P}.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~ppc ~x86" |
62 |
IUSE="dedicated" |
63 |
|
64 |
DEPEND=">=dev-lang/python-2.3 |
65 |
!dedicated? ( dev-python/wxpython:2.6 ) |
66 |
dev-python/twisted" |
67 |
|
68 |
src_unpack() { |
69 |
unpack ${A} |
70 |
cd "${S}" |
71 |
epatch \ |
72 |
"${FILESDIR}"/${P}-setup.py.patch \ |
73 |
"${FILESDIR}"/${P}-wxversion.patch |
74 |
if has_version '>=dev-python/twisted-2.3' ; then |
75 |
sed -i \ |
76 |
-e 's:import log:import log\nfrom zope import interface\n:' \ |
77 |
-e 's:class IGameListener(components.Interface):class IGameListener(interface.Interface):' \ |
78 |
londonlaw/server/Game.py \ |
79 |
|| die "sed failed" |
80 |
fi |
81 |
|
82 |
if use dedicated ; then |
83 |
local f |
84 |
rm -r londonlaw/{london-client,london-client.py,guiclient/} |
85 |
sed -i \ |
86 |
-e "s:'londonlaw.guiclient'::" \ |
87 |
-e "s:'londonlaw/london-client'::" \ |
88 |
setup.py \ |
89 |
|| die "sed failed" |
90 |
for f in londonlaw.rc londonlaw.confd |
91 |
do |
92 |
sed \ |
93 |
-e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ |
94 |
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ |
95 |
"${FILESDIR}/${f}" > "${T}/${f}" \ |
96 |
|| die "sed failed" |
97 |
done |
98 |
fi |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
python_version |
103 |
python setup.py install \ |
104 |
--root="${D}" \ |
105 |
--prefix="${GAMES_PREFIX}" \ |
106 |
--install-lib=/usr/lib/python${PYVER}/site-packages \ |
107 |
--install-data="${GAMES_DATADIR}" \ |
108 |
|| die "install failed" |
109 |
dodoc ChangeLog README |
110 |
|
111 |
if use dedicated ; then |
112 |
newinitd "${T}/londonlaw.rc" londonlaw |
113 |
newconfd "${T}/londonlaw.confd" londonlaw |
114 |
insinto /var/log |
115 |
newins /dev/null londonlaw.log |
116 |
fowners ${GAMES_USER_DED}:${GAMES_GROUP} /var/log/londonlaw.log |
117 |
fi |
118 |
|
119 |
prepgamesdirs |
120 |
} |
121 |
|
122 |
pkg_postinst() { |
123 |
games_pkg_postinst |
124 |
if ! use dedicated ; then |
125 |
echo |
126 |
elog "To play, first start the server (london-server), then connect" |
127 |
elog "with the client (london-client). At least two players are" |
128 |
elog "needed to play." |
129 |
echo |
130 |
fi |
131 |
} |