Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 10:54:15 +0200
From:      "Kristof Provost" <kp@FreeBSD.org>
To:        "Ruslan Makhmatkhanov" <rm@FreeBSD.org>, brd@FreeBSD.org
Cc:        "FreeBSD Ports ML" <freebsd-ports@freebsd.org>
Subject:   Re: py34-dnspython
Message-ID:  <53ACBD5B-ADD4-4620-B3E5-6001FD6E8E91@FreeBSD.org>
In-Reply-To: <3da6b5da-f41e-1dcc-1d19-1d34fdce71c8@FreeBSD.org>
References:  <51315ADA-983B-4557-B6E0-37ACE1F70C87@FreeBSD.org> <3da6b5da-f41e-1dcc-1d19-1d34fdce71c8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=_MailMate_2B232B12-FD0E-456A-90BA-CECE80DFABCF_=
Content-Type: text/plain; charset=utf-8; format=flowed; markup=markdown
Content-Transfer-Encoding: 8bit

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.
>>
>> Regards,
>> Kristof
>
> 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 ;)

Regards,
Kristof
--=_MailMate_2B232B12-FD0E-456A-90BA-CECE80DFABCF_=
Content-Disposition: attachment; filename=py3-dnspython.patch
Content-Transfer-Encoding: quoted-printable

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=3D	rm@FreeBSD.org
 COMMENT=3D	DNS toolkit for Python
 =

 NO_ARCH=3D	yes
-USES=3D		python:2.7+
+USES?=3D		python:2.7+
 USE_PYTHON=3D	autoplist distutils
 =

 OPTIONS_DEFINE=3D	DOCS EXAMPLES PYCRYPTO
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=3D	${.CURDIR}/../py-dnspython
+
+USES=3D	python:3.3+
+
+.include "${MASTERDIR}/Makefile"

--=_MailMate_2B232B12-FD0E-456A-90BA-CECE80DFABCF_=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53ACBD5B-ADD4-4620-B3E5-6001FD6E8E91>