diff --git a/srcpkgs/python-lxml/template b/srcpkgs/python-lxml/template index c2ce5b27ee3..33465ffef79 100644 --- a/srcpkgs/python-lxml/template +++ b/srcpkgs/python-lxml/template @@ -1,15 +1,28 @@ # Template file for 'python-lxml' pkgname=python-lxml -version=2.3.5 -revision=2 +version=3.3.5 +revision=1 wrksrc="lxml-${version}" build_style=python-module -hostmakedepends="python-devel libxslt-devel" -makedepends="python-devel libxslt-devel" +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools libxslt-devel" +makedepends="python-devel python3.4-devel libxslt-devel python-cssselect + python3.4-cssselect" +depends="python libxml2 libxslt python-cssselect" pycompile_module="lxml" -short_desc="Python binding for the libxml2 and libxslt libraries" +short_desc="Python2 binding for the libxml2 and libxslt libraries" maintainer="Juan RP " -license="BSD" homepage="http://lxml.de/" -distfiles="http://pypi.python.org/packages/source/l/lxml/lxml-${version}.tar.gz" -checksum=0912d5e83d9e82f2c6ee1267cb5cefb0fffcd9e20b19bbc1e52e2662ef30e064 +license="BSD" +distfiles="https://pypi.python.org/packages/source/l/lxml/lxml-${version}.tar.gz" +checksum=6ad6949dc7eea744a30fba77a968dd5910f545220e58bcc813b9df5c793e318a + +python3.4-lxml_package() { + depends="python3.4 libxml2 libxslt python3.4-cssselect" + pycompile_version="3.4" + pycompile_module="lxml" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-lxml b/srcpkgs/python3.4-lxml new file mode 120000 index 00000000000..e69b7beb133 --- /dev/null +++ b/srcpkgs/python3.4-lxml @@ -0,0 +1 @@ +python-lxml \ No newline at end of file