From b91425625401707859cb161f536e2c1ee3d39935 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 11 May 2016 12:13:13 +0200 Subject: [PATCH] python-dnspython: update to 1.13.0 dnspython now uses a single source for Python 2 and Python 3. --- srcpkgs/python-dnspython/INSTALL.msg | 1 + .../python3.4-dnspython.INSTALL.msg | 1 + srcpkgs/python-dnspython/template | 36 ++++++++++++++----- 3 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/python-dnspython/INSTALL.msg create mode 100644 srcpkgs/python-dnspython/python3.4-dnspython.INSTALL.msg diff --git a/srcpkgs/python-dnspython/INSTALL.msg b/srcpkgs/python-dnspython/INSTALL.msg new file mode 100644 index 00000000000..1ec1bee8adf --- /dev/null +++ b/srcpkgs/python-dnspython/INSTALL.msg @@ -0,0 +1 @@ +In order to perform DNSSEC validation install python-crypto. diff --git a/srcpkgs/python-dnspython/python3.4-dnspython.INSTALL.msg b/srcpkgs/python-dnspython/python3.4-dnspython.INSTALL.msg new file mode 100644 index 00000000000..e027638c4d2 --- /dev/null +++ b/srcpkgs/python-dnspython/python3.4-dnspython.INSTALL.msg @@ -0,0 +1 @@ +In order to perform DNSSEC validation install python3.4-crypto. diff --git a/srcpkgs/python-dnspython/template b/srcpkgs/python-dnspython/template index 65f13aca737..2b87464ab6f 100644 --- a/srcpkgs/python-dnspython/template +++ b/srcpkgs/python-dnspython/template @@ -1,16 +1,34 @@ # Template file for 'python-dnspython' -pkgname="python-dnspython" -version=1.12.0 +pkgname=python-dnspython +version=1.13.0 revision=1 -wrksrc="dnspython-${version}" noarch=yes +wrksrc="dnspython-${version}" build_style=python-module -hostmakedepends="python-devel unzip" -depends="python" +python_versions="2.7 3.4" pycompile_module="dns" -short_desc="A DNS toolkit for Python" -maintainer="Farhad Shahbazi " -license="BSD" +hostmakedepends="python-setuptools python3.4-setuptools unzip" +depends="python" +short_desc="A DNS toolkit for Python2" +maintainer="Juan RP " +license="ISC" homepage="http://www.dnspython.org/" distfiles="${PYPI_SITE}/d/dnspython/dnspython-${version}.zip" -checksum=63bd1fae61809eedb91f84b2185816fac1270ae51494fbdd36ea25f904a8502f +checksum=80f89881b402fc3b931a936111b43bcfe3abd8b0005d27e50e3c5fb59f7260f8 + +post_install() { + vlicense LICENSE +} + +python3.4-dnspython_package() { + replaces="python3.4-dnspython3>=0" + noarch=yes + pycompile_version="3.4" + pycompile_module="dns" + depends="python3.4" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE + } +}