Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 498022
Collapse All | Expand All

(-)suds-0.4-r1.ebuild (-7 / +26 lines)
Lines 1-32 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2014 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/suds/suds-0.4-r1.ebuild,v 1.2 2013/10/04 16:20:09 mgorny Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
PYTHON_COMPAT=( python2_6 python2_7 )
6
PYTHON_COMPAT=( python{2_6,2_7,3_3} )
7
7
8
inherit distutils-r1
8
inherit distutils-r1
9
9
10
DESCRIPTION="Lightweight SOAP client"
10
DESCRIPTION="Lightweight SOAP client"
11
HOMEPAGE="https://fedorahosted.org/suds/ http://pypi.python.org/pypi/suds"
11
HOMEPAGE="https://bitbucket.org/jurko/suds/ http://pypi.python.org/pypi/suds"
12
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
12
SRC_URI="https://bitbucket.org/jurko/suds/downloads/${PN}-jurko-${PV}.tar.bz2 -> ${P}.tar.bz2"
13
13
14
LICENSE="LGPL-3"
14
LICENSE="LGPL-3"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
16
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17
IUSE="doc"
17
IUSE="doc test"
18
18
19
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
19
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
20
	doc? ( dev-python/epydoc[${PYTHON_USEDEP}] )"
20
	doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] )
21
	test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
21
RDEPEND=""
22
RDEPEND=""
22
23
24
DOCS=( README.rst notes/{argument_parsing.rst,readme.txt,traversing_client_data.rst} )
25
S="${WORKDIR}/${PN}-jurko-${PV}"
26
27
# Req'd for install phase
28
DISTUTILS_IN_SOURCE_BUILD=1
29
30
REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
31
23
python_compile_all() {
32
python_compile_all() {
24
	if use doc; then
33
	if use doc; then
25
		epydoc -n "Suds - ${DESCRIPTION}" -o doc suds || die
34
		epydoc -n "Suds - ${DESCRIPTION}" -o doc suds || die
26
	fi
35
	fi
27
}
36
}
28
37
38
python_test() {
39
	esetup.py test
40
}
41
29
python_install_all() {
42
python_install_all() {
30
	use doc && local HTML_DOCS=( doc/. )
43
	use doc && local HTML_DOCS=( doc/. )
31
	distutils-r1_python_install_all
44
	distutils-r1_python_install_all
32
}
45
}
46
47
python_install() {
48
	# test folder makes for file collisions by the eclass
49
	rm -rf ./{tests,build/lib/tests}/ || die
50
	distutils-r1_python_install
51
}

Return to bug 498022