aboutsummaryrefslogtreecommitdiff
path: root/dns/py-dnspython/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dns/py-dnspython/Makefile')
-rw-r--r--dns/py-dnspython/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/dns/py-dnspython/Makefile b/dns/py-dnspython/Makefile
index ed72b3ffa45a..ba52900816d1 100644
--- a/dns/py-dnspython/Makefile
+++ b/dns/py-dnspython/Makefile
@@ -24,9 +24,15 @@ PYCRYPTODOME_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pyc
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.mk>
+.include <bsd.port.post.mk>