diff --git a/srcpkgs/python-dulwich/template b/srcpkgs/python-dulwich/template index 027555fae7e..90cd4d5fb90 100644 --- a/srcpkgs/python-dulwich/template +++ b/srcpkgs/python-dulwich/template @@ -1,15 +1,34 @@ # Template file for 'python-dulwich' pkgname=python-dulwich version=0.12.0 -revision=1 +revision=2 wrksrc="dulwich-${version}" build_style=python-module -hostmakedepends="python-setuptools" -makedepends="python-devel" +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" pycompile_module="dulwich" -short_desc="Python implementation of the Git file formats and protocols" +short_desc="Python2 implementation of the Git file formats and protocols" maintainer="Juan RP " -homepage="http://samba.org/~jelmer/dulwich/" +homepage="https://www.dulwich.io/" license="GPL-2" distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz" checksum=8f9070f37eec6175aab60d7064246b5b6453b2fab342589101f1c8feda0a0cc6 + +post_install() { + # remove extra docs + rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs + for f in build-3.4/scripts-3.4/*; do + vbin ${f} ${f}3.4 + done +} + +python3.4-dulwich_package() { + pycompile_version="3.4" + pycompile_module="dulwich" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/*3.4 + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-dulwich b/srcpkgs/python3.4-dulwich new file mode 120000 index 00000000000..f9db7256ef8 --- /dev/null +++ b/srcpkgs/python3.4-dulwich @@ -0,0 +1 @@ +python-dulwich \ No newline at end of file