freebsd-ports/dns/py-dnspython/Makefile
Yasuhiro Kimura 7fc16dab84 dns/py-dnspython: Update to 2.1.0 for Python 3
While updating this port to 2.1.0 fixes runtime error "AttributeError:
module 'base64' has no attribute 'decodestring'" with python 3.9 or
later, it isn't compatible with Python 2.7. So update to 2.1.0 only
for Python 3.

ChangeLog:	https://github.com/rthalley/dnspython/blob/v2.1.0/doc/whatsnew.rst
PR:		260475
Approved by:	maintainer timeout (> 1 month)
2022-01-19 15:36:06 +09:00

38 lines
962 B
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
PORTNAME= dnspython
PORTVERSION= 1.16.0
CATEGORIES= dns python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rm@FreeBSD.org
COMMENT= DNS toolkit for Python
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:2.7+ zip
USE_PYTHON= autoplist concurrent cython distutils
NO_ARCH= yes
OPTIONS_DEFINE= EXAMPLES PYCRYPTODOME
PYCRYPTODOME_DESC= Enable pycryptodome (part of dnssec needs it)
PYCRYPTODOME_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR}
PORTEXAMPLES= ddns.py e164.py mx.py name.py reverse.py reverse_name.py \
xfr.py zonediff.py
.include <bsd.port.pre.mk>
.if ${PYTHON_MAJOR_VER} == 3
PORTVERSION= 2.1.0
.endif
post-install-EXAMPLES-on:
# examples
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>