diff options
-rw-r--r-- | dev-python/cssselect/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/cssselect/cssselect-0.6.1.ebuild | 47 | ||||
-rw-r--r-- | dev-python/cssselect/metadata.xml | 5 |
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/cssselect/ChangeLog b/dev-python/cssselect/ChangeLog new file mode 100644 index 000000000000..2f2b0782fb51 --- /dev/null +++ b/dev-python/cssselect/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-python/cssselect +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cssselect/ChangeLog,v 1.1 2012/05/15 15:35:33 xarthisius Exp $ + +*cssselect-0.6.1 (15 May 2012) + + 15 May 2012; Kacper Kowalik <xarthisius@gentoo.org> +cssselect-0.6.1.ebuild, + +metadata.xml: + Initial import, ebuild written by me. It's new dependency for >=dev- + python/pyquery-1.2 + diff --git a/dev-python/cssselect/cssselect-0.6.1.ebuild b/dev-python/cssselect/cssselect-0.6.1.ebuild new file mode 100644 index 000000000000..5797aac09ba8 --- /dev/null +++ b/dev-python/cssselect/cssselect-0.6.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cssselect/cssselect-0.6.1.ebuild,v 1.1 2012/05/15 15:35:33 xarthisius Exp $ + +EAPI=4 + +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*" + +inherit distutils + +DESCRIPTION="parses CSS3 Selectors and translates them to XPath 1.0" +HOMEPAGE="http://packages.python.org/cssselect/ http://pypi.python.org/pypi/cssselect" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +DEPEND="dev-python/setuptools + doc? ( dev-python/sphinx ) + test? ( dev-python/lxml )" +RDEPEND="" + +DOCS="AUTHORS CHANGES README.rst" + +src_compile() { + distutils_src_compile + if use doc ; then + "$(PYTHON -f)" setup.py build_sphinx || die + fi +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" ${PN}/tests.py -v + } + python_execute_function testing +} + +src_install() { + distutils_src_install + if use doc ; then + dohtml -r docs/_build/html/ + fi +} diff --git a/dev-python/cssselect/metadata.xml b/dev-python/cssselect/metadata.xml new file mode 100644 index 000000000000..301d2207cc29 --- /dev/null +++ b/dev-python/cssselect/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> +</pkgmetadata> |