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.8-r1.ebuild ChangeLog
Date: Mon, 01 Jul 2013 10:03:04
Message-Id: 20130701100301.010232171C@flycatcher.gentoo.org
1 dev-zero 13/07/01 10:03:00
2
3 Modified: ChangeLog
4 Added: mwlib-0.15.8-r1.ebuild
5 Log:
6 Migrate to distutils-r1
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.25 dev-python/mwlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?rev=1.25&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?rev=1.25&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/ChangeLog?r1=1.24&r2=1.25
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v
20 retrieving revision 1.24
21 retrieving revision 1.25
22 diff -u -r1.24 -r1.25
23 --- ChangeLog 22 May 2013 06:41:23 -0000 1.24
24 +++ ChangeLog 1 Jul 2013 10:03:00 -0000 1.25
25 @@ -1,6 +1,12 @@
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.24 2013/05/22 06:41:23 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/ChangeLog,v 1.25 2013/07/01 10:03:00 dev-zero Exp $
30 +
31 +*mwlib-0.15.8-r1 (01 Jul 2013)
32 +
33 + 01 Jul 2013; Tiziano Müller <dev-zero@g.o>
34 + +files/0.15.8-fix-tests.patch, +mwlib-0.15.8-r1.ebuild:
35 + Migrate to distutils-r1
36
37 *mwlib-0.15.8 (22 May 2013)
38
39
40
41
42 1.1 dev-python/mwlib/mwlib-0.15.8-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/mwlib-0.15.8-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mwlib/mwlib-0.15.8-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mwlib-0.15.8-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.8-r1.ebuild,v 1.1 2013/07/01 10:03:00 dev-zero Exp $
52
53 EAPI=5
54
55 PYTHON_COMPAT=( python{2_6,2_7} )
56
57 inherit distutils-r1
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"
67
68 RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
69 =dev-python/odfpy-0.9*[${PYTHON_USEDEP}]
70 dev-python/pyPdf[${PYTHON_USEDEP}]
71 virtual/pyparsing[${PYTHON_USEDEP}]
72 dev-python/timelib[${PYTHON_USEDEP}]
73 virtual/latex-base
74 >=dev-python/simplejson-2.5[${PYTHON_USEDEP}]
75 dev-python/gevent[${PYTHON_USEDEP}]
76 >=dev-python/bottle-0.11.6[${PYTHON_USEDEP}]
77 dev-python/apipkg[${PYTHON_USEDEP}]
78 dev-python/qserve[${PYTHON_USEDEP}]
79 dev-python/roman[${PYTHON_USEDEP}]
80 dev-python/py[${PYTHON_USEDEP}]
81 dev-python/sqlite3dbm[${PYTHON_USEDEP}]
82 dev-python/pillow[${PYTHON_USEDEP}]"
83 DEPEND="${RDEPEND}
84 dev-python/setuptools[${PYTHON_USEDEP}]
85 app-arch/unzip
86 doc? ( dev-python/sphinx )"
87
88 PATCHES=( "${FILESDIR}/${PV}-fix-tests.patch" )
89
90 DOCS=(changelog.rst)
91
92 python_prepare_all() {
93 # mwlib.apipkg is actually used.
94 sed -e 's/, "apipkg"//' -i setup.py || die
95
96 # Execute odflint script.
97 sed \
98 -e "/def _get_odflint_module():/,/odflint = _get_odflint_module()/d" \
99 -e "s/odflint.lint(path)/os.system('odflint %s' % path)/" \
100 -i tests/test_odfwriter.py || die
101
102 # Disable test which requires installed mw-zip script.
103 rm -f tests/test_{nuwiki,redirect,zipwiki}.py
104 # Disable render test that fails for no apparent reason
105 rm -f tests/test_render.py
106
107 distutils-r1_python_prepare_all
108 }
109
110 python_compile() {
111 if [[ ${EPYTHON} == python2* ]] ; then
112 local CFLAGS="${CFLAGS} -fno-strict-aliasing"
113 export CFLAGS
114 fi
115
116 distutils-r1_python_compile
117 }
118
119 python_compile_all() {
120 use doc && emake -C docs html
121 }
122
123 python_test() {
124 py.test || die
125 }
126
127 python_install_all() {
128 use doc && local HTML_DOCS=( docs/_build/html/. )
129 distutils-r1_python_install_all
130 }