1 |
dev-zero 13/07/01 13:56:29 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: mwlib-0.15.8-r2.ebuild |
5 |
Log: |
6 |
Add init.d scripts to manage servers, thanks to Pat Kläy and Christian Affolter. Add patch which adds an address parameter to nslave. |
7 |
|
8 |
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0x1E0CA85F!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 dev-python/mwlib/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/metadata.xml?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/metadata.xml?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/metadata.xml?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/mwlib/metadata.xml,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- metadata.xml 31 Mar 2012 17:02:36 -0000 1.2 |
24 |
+++ metadata.xml 1 Jul 2013 13:56:29 -0000 1.3 |
25 |
@@ -5,4 +5,7 @@ |
26 |
<upstream> |
27 |
<remote-id type="pypi">mwlib</remote-id> |
28 |
</upstream> |
29 |
+ <use> |
30 |
+ <flag name='server'>Install the daemons required when using mwlib for generating PDFs on a MediaWiki instance.</flag> |
31 |
+ </use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.26 dev-python/mwlib/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?rev=1.26&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?rev=1.26&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?r1=1.25&r2=1.26 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v |
45 |
retrieving revision 1.25 |
46 |
retrieving revision 1.26 |
47 |
diff -u -r1.25 -r1.26 |
48 |
--- ChangeLog 1 Jul 2013 10:03:00 -0000 1.25 |
49 |
+++ ChangeLog 1 Jul 2013 13:56:29 -0000 1.26 |
50 |
@@ -1,6 +1,18 @@ |
51 |
# ChangeLog for dev-python/mwlib |
52 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v 1.25 2013/07/01 10:03:00 dev-zero Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v 1.26 2013/07/01 13:56:29 dev-zero Exp $ |
55 |
+ |
56 |
+*mwlib-0.15.8-r2 (01 Jul 2013) |
57 |
+ |
58 |
+ 01 Jul 2013; Tiziano Müller <dev-zero@g.o> |
59 |
+ +files/0.15.8-nslave-add-address-parameter.patch, +files/mw-qserve.confd, |
60 |
+ +files/mw-qserve.initd, +files/mw-qserve.logrotate, |
61 |
+ +files/mwlib-purge-cache.cron, +files/nserve.confd, +files/nserve.initd, |
62 |
+ +files/nserve.logrotate, +files/nslave.confd, +files/nslave.initd, |
63 |
+ +files/nslave.logrotate, +files/postman.confd, +files/postman.initd, |
64 |
+ +files/postman.logrotate, +mwlib-0.15.8-r2.ebuild, metadata.xml: |
65 |
+ Add init.d scripts to manage servers, thanks to Pat Kläy and Christian |
66 |
+ Affolter. Add patch which adds an address parameter to nslave. |
67 |
|
68 |
*mwlib-0.15.8-r1 (01 Jul 2013) |
69 |
|
70 |
|
71 |
|
72 |
|
73 |
1.1 dev-python/mwlib/mwlib-0.15.8-r2.ebuild |
74 |
|
75 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/mwlib-0.15.8-r2.ebuild?rev=1.1&view=markup |
76 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/mwlib-0.15.8-r2.ebuild?rev=1.1&content-type=text/plain |
77 |
|
78 |
Index: mwlib-0.15.8-r2.ebuild |
79 |
=================================================================== |
80 |
# Copyright 1999-2013 Gentoo Foundation |
81 |
# Distributed under the terms of the GNU General Public License v2 |
82 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/mwlib-0.15.8-r2.ebuild,v 1.1 2013/07/01 13:56:29 dev-zero Exp $ |
83 |
|
84 |
EAPI=5 |
85 |
|
86 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
87 |
|
88 |
inherit distutils-r1 user eutils |
89 |
|
90 |
DESCRIPTION="Tools for parsing Mediawiki content to other formats" |
91 |
HOMEPAGE="http://code.pediapress.com/wiki/wiki http://pypi.python.org/pypi/mwlib" |
92 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
93 |
|
94 |
LICENSE="BSD" |
95 |
SLOT="0" |
96 |
KEYWORDS="~amd64 ~x86" |
97 |
IUSE="doc server" |
98 |
|
99 |
RDEPEND="dev-python/lxml[${PYTHON_USEDEP}] |
100 |
=dev-python/odfpy-0.9*[${PYTHON_USEDEP}] |
101 |
dev-python/pyPdf[${PYTHON_USEDEP}] |
102 |
virtual/pyparsing[${PYTHON_USEDEP}] |
103 |
dev-python/timelib[${PYTHON_USEDEP}] |
104 |
virtual/latex-base |
105 |
>=dev-python/simplejson-2.5[${PYTHON_USEDEP}] |
106 |
dev-python/gevent[${PYTHON_USEDEP}] |
107 |
>=dev-python/bottle-0.11.6[${PYTHON_USEDEP}] |
108 |
dev-python/apipkg[${PYTHON_USEDEP}] |
109 |
dev-python/qserve[${PYTHON_USEDEP}] |
110 |
dev-python/roman[${PYTHON_USEDEP}] |
111 |
dev-python/py[${PYTHON_USEDEP}] |
112 |
dev-python/sqlite3dbm[${PYTHON_USEDEP}] |
113 |
dev-python/pillow[${PYTHON_USEDEP}] |
114 |
server? ( app-admin/sudo )" |
115 |
DEPEND="${RDEPEND} |
116 |
dev-python/setuptools[${PYTHON_USEDEP}] |
117 |
app-arch/unzip |
118 |
doc? ( dev-python/sphinx )" |
119 |
|
120 |
# TODO: requires ploticus to generate timelines |
121 |
|
122 |
PATCHES=( "${FILESDIR}/${PV}-fix-tests.patch" "${FILESDIR}/${PV}-nslave-add-address-parameter.patch" ) |
123 |
|
124 |
DOCS=(changelog.rst) |
125 |
|
126 |
pkg_setup() { |
127 |
if use server ; then |
128 |
enewgroup mwlib |
129 |
enewuser mwlib -1 -1 -1 mwlib |
130 |
fi |
131 |
} |
132 |
|
133 |
python_prepare_all() { |
134 |
# mwlib.apipkg is actually used. |
135 |
sed -e 's/, "apipkg"//' -i setup.py || die |
136 |
|
137 |
# Execute odflint script. |
138 |
sed \ |
139 |
-e "/def _get_odflint_module():/,/odflint = _get_odflint_module()/d" \ |
140 |
-e "s/odflint.lint(path)/os.system('odflint %s' % path)/" \ |
141 |
-i tests/test_odfwriter.py || die |
142 |
|
143 |
# Disable test which requires installed mw-zip script. |
144 |
rm -f tests/test_{nuwiki,redirect,zipwiki}.py |
145 |
# Disable render test that fails for no apparent reason |
146 |
rm -f tests/test_render.py |
147 |
|
148 |
distutils-r1_python_prepare_all |
149 |
} |
150 |
|
151 |
python_compile() { |
152 |
if [[ ${EPYTHON} == python2* ]] ; then |
153 |
local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
154 |
export CFLAGS |
155 |
fi |
156 |
|
157 |
distutils-r1_python_compile |
158 |
} |
159 |
|
160 |
python_compile_all() { |
161 |
use doc && emake -C docs html |
162 |
} |
163 |
|
164 |
python_test() { |
165 |
py.test || die |
166 |
} |
167 |
|
168 |
python_install_all() { |
169 |
use doc && local HTML_DOCS=( docs/_build/html/. ) |
170 |
distutils-r1_python_install_all |
171 |
|
172 |
if use server ; then |
173 |
keepdir /var/log/mwlib |
174 |
keepdir /var/cache/mwlib |
175 |
|
176 |
fowners mwlib:mwlib /var/log/mwlib /var/cache/mwlib |
177 |
fperms 0750 /var/log/mwlib /var/cache/mwlib |
178 |
|
179 |
insinto /etc/logrotate.d |
180 |
for d in mw-qserve nserve nslave postman ; do |
181 |
newins "${FILESDIR}/${d}.logrotate" "${d}" |
182 |
newinitd "${FILESDIR}/${d}.initd" "${d}" |
183 |
newconfd "${FILESDIR}/${d}.confd" "${d}" |
184 |
done |
185 |
|
186 |
insinto /etc/cron.d |
187 |
newins "${FILESDIR}/mwlib-purge-cache.cron" "mwlib-purge-cache" |
188 |
else |
189 |
rm "${D}"/usr/bin/{mw-qserve,nserve,nslave,postman}* || die "removing binaries failed" |
190 |
fi |
191 |
} |
192 |
|
193 |
pkg_postinst() { |
194 |
elog "Please enable required image formats for dev-python/pillow" |
195 |
if use server ; then |
196 |
elog "A cronjob to cleanup the cache files got installed to" |
197 |
elog " /etc/cron.d/mwlib-purge-cache" |
198 |
elog "Default parameters are to clean every 24h, adjust it to your needs." |
199 |
fi |
200 |
} |