aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-gdbm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-gdbm/Makefile')
-rw-r--r--databases/py-gdbm/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile
index 26272084da7e..29e1f42e6569 100644
--- a/databases/py-gdbm/Makefile
+++ b/databases/py-gdbm/Makefile
@@ -24,9 +24,15 @@ USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGVERSION= 0.0.0
WRKSRC= ${PYTHON_WRKSRC}/Modules
-MD5_FILE= ${PORTSDIR}/lang/python/distinfo
+MD5_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo
+
+.include <bsd.port.pre.mk>
post-extract:
+.if ${PYTHON_REL} < 300
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
+.else
+ @${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>