Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 416479 | Differences between
and this patch

Collapse All | Expand All

(-)../mwlib.orig/mwlib-0.13.7.ebuild (-15 / +63 lines)
Lines 1-13 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/mwlib-0.13.6.ebuild,v 1.1 2012/04/19 09:54:31 patrick Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/mwlib-0.13.7.ebuild,v 1.1 2012/04/19 09:54:31 patrick Exp $
4
4
5
EAPI="3"
5
EAPI="4"
6
PYTHON_DEPEND="2:2.5"
6
PYTHON_DEPEND="2:2.6"
7
SUPPORT_PYTHON_ABIS="1"
7
SUPPORT_PYTHON_ABIS="1"
8
RESTRICT_PYTHON_ABIS="2.4 2.5 3.* 2.7-pypy-* *-jython"
8
RESTRICT_PYTHON_ABIS="3.* *-pypy-* *-jython"
9
9
10
inherit distutils
10
inherit distutils eutils
11
11
12
DESCRIPTION="Tools for parsing Mediawiki content to other formats"
12
DESCRIPTION="Tools for parsing Mediawiki content to other formats"
13
HOMEPAGE="http://code.pediapress.com/wiki/wiki http://pypi.python.org/pypi/mwlib"
13
HOMEPAGE="http://code.pediapress.com/wiki/wiki http://pypi.python.org/pypi/mwlib"
Lines 16-38 Link Here
16
LICENSE="BSD"
16
LICENSE="BSD"
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="~amd64 ~x86"
18
KEYWORDS="~amd64 ~x86"
19
IUSE=""
19
IUSE="doc"
20
20
21
RDEPEND="dev-lang/perl
21
RDEPEND="dev-python/lxml
22
	>=dev-python/flup-1.0
23
	dev-python/imaging
24
	>=dev-python/lockfile-0.8
25
	dev-python/lxml
26
	=dev-python/odfpy-0.9*
22
	=dev-python/odfpy-0.9*
27
	>=dev-python/pyPdf-1.12
23
	>=dev-python/pyPdf-1.12
28
	>=dev-python/pyparsing-1.4.11
24
	>=dev-python/pyparsing-1.4.11
29
	>=dev-python/timelib-0.2
25
	>=dev-python/timelib-0.2
30
	>=dev-python/twisted-9.0.0-r1
31
	>=dev-python/twisted-web-9.0.0
32
	>=dev-python/webob-0.9
33
	virtual/latex-base
26
	virtual/latex-base
34
	|| ( dev-lang/python:2.7 dev-lang/python:2.6 >=dev-python/simplejson-1.3 )"
27
	|| ( dev-lang/python:2.7 dev-lang/python:2.6 >=dev-python/simplejson-2.5 )
28
	dev-python/gevent
29
	>=dev-python/bottle-0.10
30
	dev-python/apipkg
31
	>=dev-python/qserve-0.2.7
32
	dev-python/roman
33
	>=dev-python/py-1.4
34
	dev-python/sqlite3dbm"
35
DEPEND="${RDEPEND}
35
DEPEND="${RDEPEND}
36
	app-arch/unzip
37
	doc? ( dev-python/sphinx )
36
	dev-python/setuptools"
38
	dev-python/setuptools"
37
39
38
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
40
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
41
42
src_prepare() {
43
	# mwlib.apipkg is actually used.
44
	sed -e 's/, "apipkg"//' -i setup.py
45
46
	distutils_src_prepare
47
	# Disable test which requires installed mw-zip script.
48
	rm -f tests/test_nuwiki.py
49
	rm -f tests/test_redirect.py
50
	rm -f tests/test_zipwiki.py
51
	epatch "${FILESDIR}"/test.patch
52
}
53
54
src_compile() {
55
	distutils_src_compile
56
	use doc && emake -C  docs html
57
}
58
59
src_test() {
60
	# Though DISTUTILS_SRC_TEST=py.test ought work, it errors out. Yet to know why.
61
	# XNET=1 is what I was seeking from upstream. It disables xfails, having acquired it 
62
	# it now appears to work with and without it.
63
	XNET=1 py.test tests
64
	# AFter re-emerging one or more of the deps, response has changed. 
65
	# I leave this as a 'backup' and a record of what also worked by different means.		
66
#	testing() {
67
#	PYTHONPATH="$(find build-${PYTHON_ABI} -name mwlib)}/"
68
#	local exit_status=0
69
#	for test in tests/test_[b-z]*.py
70
#	do
71
#		PYTHONPATH="$(find build-${PYTHON_ABI} -name mwlib)}/" py.test -x $test || exit_status=1
72
#	done
73
#	return $exit_status
74
#	}
75
#	python_execute_function testing
76
}
77
78
src_install() {
79
	distutils_src_install
80
	if use doc; then
81
		dohtml -r docs/_build/html/
82
		docompress -x usr/share/doc/${P}/doctrees/
83
		insinto usr/share/doc/${P}/
84
		doins -r docs/_build/doctrees
85
	fi
86
}

Return to bug 416479