On 20 Sep 2016, at 20:15, Ruslan Makhmatkhanov wrote:
Kristof Provost wrote on 09/20/2016 19:40:
I found I had a need for dnspython for python 3.4. The port builds only for
python 2.7 at the moment.
Attached is a patch to introduce py34-dnspython.


Feel free to commit it. Actually people asked about this in past, but I wasn't able to do that for some reason.

I'd only change port directory name to dns/py3-dnspython to not tie it to particular python version, but to use default python3 version (which is 3.4 at the moment). PYTHON_VERSION is better to replace with USES too.

Please see audio/py3-mutagen/Makefile for example.

Thanks for the suggestions. I’ve updated the patch.
I don’t have a ports commit bit, but I’m in Belgrade for EuroBSD, so I’m sure I can find someone ;)

diff --git a/dns/py-dnspython/Makefile b/dns/py-dnspython/Makefile
index f475c77..ed3d16d 100644
--- a/dns/py-dnspython/Makefile
+++ b/dns/py-dnspython/Makefile
@@ -11,7 +11,7 @@ MAINTAINER=   r...@freebsd.org
 COMMENT=       DNS toolkit for Python
 NO_ARCH=       yes
-USES=          python:2.7+
+USES?=         python:2.7+
 USE_PYTHON=    autoplist distutils
diff --git a/dns/py3-dnspython/Makefile b/dns/py3-dnspython/Makefile
new file mode 100644
index 0000000..1e618ea
--- /dev/null
+++ b/dns/py3-dnspython/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+MASTERDIR=     ${.CURDIR}/../py-dnspython
+USES=  python:3.3+
+.include "${MASTERDIR}/Makefile"
freebsd-ports@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to