diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-04-23 14:30:07 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-04-23 14:30:07 +0000 |
commit | 12e30e1e159688b4c007fd92e0829c20c99fe7d5 (patch) | |
tree | 80c82e0e2140ead798d551941e380d95ba27c62c /dev-python/zsi | |
parent | Version bump. (diff) | |
download | gentoo-2-12e30e1e159688b4c007fd92e0829c20c99fe7d5.tar.gz gentoo-2-12e30e1e159688b4c007fd92e0829c20c99fe7d5.tar.bz2 gentoo-2-12e30e1e159688b4c007fd92e0829c20c99fe7d5.zip |
dev-python/zsi: Move to distutils-r1.eclass
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
Diffstat (limited to 'dev-python/zsi')
-rw-r--r-- | dev-python/zsi/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/zsi/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/zsi/zsi-2.1_alpha1-r1.ebuild | 56 |
3 files changed, 72 insertions, 11 deletions
diff --git a/dev-python/zsi/ChangeLog b/dev-python/zsi/ChangeLog index 467013cbe8d9..318cdc039478 100644 --- a/dev-python/zsi/ChangeLog +++ b/dev-python/zsi/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/zsi -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/zsi/ChangeLog,v 1.21 2011/12/03 19:37:53 hwoarang Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/zsi/ChangeLog,v 1.22 2013/04/23 14:30:07 jlec Exp $ + +*zsi-2.1_alpha1-r1 (23 Apr 2013) + + 23 Apr 2013; Justin Lecher <jlec@gentoo.org> +zsi-2.1_alpha1-r1.ebuild, + metadata.xml: + Move to distutils-r1.eclass 03 Dec 2011; Markos Chandras <hwoarang@gentoo.org> zsi-2.1_alpha1.ebuild: Fix LICENSE. Clean ebuild. Patch by Arfrever. diff --git a/dev-python/zsi/metadata.xml b/dev-python/zsi/metadata.xml index 45a8bfabc6f6..5a2028cd9c40 100644 --- a/dev-python/zsi/metadata.xml +++ b/dev-python/zsi/metadata.xml @@ -1,13 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>python</herd> - <maintainer> - <email>angelos@gentoo.org</email> - <name>Christoph Mende</name> - </maintainer> - <use> - <flag name='twisted'>add support for <pkg>dev-python/twisted</pkg></flag> - </use> + <herd>python</herd> + <maintainer> + <email>angelos@gentoo.org</email> + <name>Christoph Mende</name> + </maintainer> + <use> + <flag name="twisted">add support for <pkg>dev-python/twisted</pkg></flag> + </use> </pkgmetadata> - diff --git a/dev-python/zsi/zsi-2.1_alpha1-r1.ebuild b/dev-python/zsi/zsi-2.1_alpha1-r1.ebuild new file mode 100644 index 000000000000..0ff70c322ba4 --- /dev/null +++ b/dev-python/zsi/zsi-2.1_alpha1-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/zsi/zsi-2.1_alpha1-r1.ebuild,v 1.1 2013/04/23 14:30:07 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit distutils-r1 + +MY_PN="ZSI" +MY_P="${MY_PN}-${PV/_alpha/-a}" + +DESCRIPTION="Web Services for Python" +HOMEPAGE="http://pywebsvcs.sourceforge.net/zsi.html" +SRC_URI="mirror://sourceforge/pywebsvcs/${MY_P}.tar.gz" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc examples twisted" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + twisted? ( + dev-python/twisted + dev-python/twisted-web + )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS="CHANGES README" + +python_prepare_all() { + if ! use twisted; then + sed -i \ + -e "/version_info/d"\ + -e "/ZSI.twisted/d"\ + setup.py || die "sed failed" + fi + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + if use doc; then + dohtml doc/*.{html,css,png} + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r doc/examples/* samples/* + fi +} |