1 |
dev-zero 14/01/30 13:36:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mwlib-0.15.14.ebuild |
5 |
Log: |
6 |
Version bump. |
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.31 dev-python/mwlib/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?rev=1.31&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?rev=1.31&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?r1=1.30&r2=1.31 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v |
20 |
retrieving revision 1.30 |
21 |
retrieving revision 1.31 |
22 |
diff -u -r1.30 -r1.31 |
23 |
--- ChangeLog 27 Nov 2013 17:21:30 -0000 1.30 |
24 |
+++ ChangeLog 30 Jan 2014 13:36:42 -0000 1.31 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-python/mwlib |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v 1.30 2013/11/27 17:21:30 dev-zero Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v 1.31 2014/01/30 13:36:42 dev-zero Exp $ |
31 |
+ |
32 |
+*mwlib-0.15.14 (30 Jan 2014) |
33 |
+ |
34 |
+ 30 Jan 2014; Tiziano Müller <dev-zero@g.o> +mwlib-0.15.14.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
*mwlib-0.15.12 (27 Nov 2013) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/mwlib/mwlib-0.15.14.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/mwlib-0.15.14.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/mwlib-0.15.14.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mwlib-0.15.14.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/mwlib-0.15.14.ebuild,v 1.1 2014/01/30 13:36:42 dev-zero Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
56 |
|
57 |
inherit distutils-r1 user |
58 |
|
59 |
DESCRIPTION="Tools for parsing Mediawiki content to other formats" |
60 |
HOMEPAGE="http://code.pediapress.com/wiki/wiki http://pypi.python.org/pypi/mwlib" |
61 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
62 |
|
63 |
LICENSE="BSD" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
IUSE="doc server test" |
67 |
|
68 |
RDEPEND="dev-python/lxml[${PYTHON_USEDEP}] |
69 |
>=dev-python/odfpy-0.9[${PYTHON_USEDEP}] |
70 |
<dev-python/odfpy-0.10[${PYTHON_USEDEP}] |
71 |
>=dev-python/pyPdf-1.12[${PYTHON_USEDEP}] |
72 |
>=dev-python/pyparsing-1.5.5[${PYTHON_USEDEP}] |
73 |
<dev-python/pyparsing-1.6[${PYTHON_USEDEP}] |
74 |
>=dev-python/timelib-0.2[${PYTHON_USEDEP}] |
75 |
virtual/latex-base |
76 |
>=dev-python/simplejson-2.3[${PYTHON_USEDEP}] |
77 |
dev-python/gevent[${PYTHON_USEDEP}] |
78 |
>=dev-python/bottle-0.10[${PYTHON_USEDEP}] |
79 |
>=dev-python/apipkg-1.2[${PYTHON_USEDEP}] |
80 |
>=dev-python/qserve-0.2.7[${PYTHON_USEDEP}] |
81 |
dev-python/roman[${PYTHON_USEDEP}] |
82 |
>=dev-python/py-1.4[${PYTHON_USEDEP}] |
83 |
dev-python/sqlite3dbm[${PYTHON_USEDEP}] |
84 |
dev-python/pillow[${PYTHON_USEDEP}] |
85 |
server? ( app-admin/sudo )" |
86 |
DEPEND="${RDEPEND} |
87 |
dev-python/setuptools[${PYTHON_USEDEP}] |
88 |
app-arch/unzip |
89 |
doc? ( dev-python/sphinx ) |
90 |
test? ( >=dev-python/wsgiintercept-0.6 )" |
91 |
|
92 |
# TODO: requires ploticus to generate timelines |
93 |
|
94 |
DOCS=(changelog.rst) |
95 |
|
96 |
pkg_setup() { |
97 |
if use server ; then |
98 |
enewgroup mwlib |
99 |
enewuser mwlib -1 -1 -1 mwlib |
100 |
fi |
101 |
} |
102 |
|
103 |
python_prepare_all() { |
104 |
# mwlib.apipkg is actually used. |
105 |
sed -e 's/, "apipkg"//' -i setup.py || die |
106 |
|
107 |
# Execute odflint script. |
108 |
sed \ |
109 |
-e "/def _get_odflint_module():/,/odflint = _get_odflint_module()/d" \ |
110 |
-e "s/odflint.lint(path)/os.system('odflint %s' % path)/" \ |
111 |
-i tests/test_odfwriter.py || die |
112 |
|
113 |
# Disable test which requires installed mw-zip or mw-render script |
114 |
# which don't get generated in distutils_install_for_testing for some reason |
115 |
rm -f tests/test_{nuwiki,redirect,render,zipwiki}.py || die |
116 |
|
117 |
distutils-r1_python_prepare_all |
118 |
} |
119 |
|
120 |
python_compile() { |
121 |
if [[ ${EPYTHON} == python2* ]] ; then |
122 |
local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
123 |
export CFLAGS |
124 |
fi |
125 |
|
126 |
distutils-r1_python_compile |
127 |
} |
128 |
|
129 |
python_compile_all() { |
130 |
use doc && emake -C docs html |
131 |
} |
132 |
|
133 |
python_test() { |
134 |
distutils_install_for_testing |
135 |
PATH="${TEST_DIR}/scripts:${PATH}" py.test || die |
136 |
} |
137 |
|
138 |
python_install_all() { |
139 |
use doc && local HTML_DOCS=( docs/_build/html/. ) |
140 |
distutils-r1_python_install_all |
141 |
|
142 |
if use server ; then |
143 |
keepdir /var/log/mwlib |
144 |
keepdir /var/cache/mwlib |
145 |
|
146 |
fowners mwlib:mwlib /var/log/mwlib /var/cache/mwlib |
147 |
fperms 0750 /var/log/mwlib /var/cache/mwlib |
148 |
|
149 |
insinto /etc/logrotate.d |
150 |
for d in mw-qserve nserve ; do |
151 |
newins "${FILESDIR}/${d}.logrotate" "${d}" |
152 |
newinitd "${FILESDIR}/${d}.initd" "${d}" |
153 |
newconfd "${FILESDIR}/${d}.confd" "${d}" |
154 |
done |
155 |
|
156 |
newins "${FILESDIR}/nslave.logrotate" "nslave" |
157 |
newinitd "${FILESDIR}/nslave.initd-r1" "nslave" |
158 |
newconfd "${FILESDIR}/nslave.confd-r1" "nslave" |
159 |
|
160 |
newins "${FILESDIR}/postman.logrotate" "postman" |
161 |
newinitd "${FILESDIR}/postman.initd-r1" "postman" |
162 |
newconfd "${FILESDIR}/postman.confd" "postman" |
163 |
|
164 |
insinto /etc/cron.d |
165 |
newins "${FILESDIR}/mwlib-purge-cache.cron-r1" "mwlib-purge-cache" |
166 |
else |
167 |
rm "${D}"/usr/bin/{mw-qserve,nserve,nslave,postman}* || die "removing binaries failed" |
168 |
fi |
169 |
} |
170 |
|
171 |
pkg_postinst() { |
172 |
elog "Please enable required image formats for dev-python/pillow" |
173 |
if use server ; then |
174 |
elog "A cronjob to cleanup the cache files got installed to" |
175 |
elog " /etc/cron.d/mwlib-purge-cache" |
176 |
elog "Default parameters are to clean every 24h, adjust it to your needs." |
177 |
fi |
178 |
} |