From owner-freebsd-ports@freebsd.org Wed Sep 21 08:54:17 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CDE9BE0C78 for ; Wed, 21 Sep 2016 08:54:17 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48D53C23; Wed, 21 Sep 2016 08:54:17 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [192.168.86.93] (unknown [109.111.229.194]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 79EA324E48; Wed, 21 Sep 2016 10:54:14 +0200 (CEST) From: "Kristof Provost" To: "Ruslan Makhmatkhanov" , brd@FreeBSD.org Cc: "FreeBSD Ports ML" Subject: Re: py34-dnspython Date: Wed, 21 Sep 2016 10:54:15 +0200 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_MailMate_2B232B12-FD0E-456A-90BA-CECE80DFABCF_=" Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6056) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2016 08:54:17 -0000 --=_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_=--