Gentoo Archives: gentoo-commits

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