aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-gdbm/Makefile
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-07-08 17:12:46 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-07-08 17:12:46 +0800
commit9b40338aa4bdc4957218b811e5f368604ae6905a (patch)
treee588e0cd2bc7c0b937f77ab8e63d6a1235f8103d /databases/py-gdbm/Makefile
parente5635ff7fd8859d27ca6be6004f9e7a1ddfff2df (diff)
downloadfreebsd-ports-gnome-9b40338aa4bdc4957218b811e5f368604ae6905a.tar.gz
freebsd-ports-gnome-9b40338aa4bdc4957218b811e5f368604ae6905a.tar.zst
freebsd-ports-gnome-9b40338aa4bdc4957218b811e5f368604ae6905a.zip
- Fix building with python3*
- Use checksum file under lang/python${PYTHON_SUFFIX}/, for removal lang/python/distinfo PR: ports/136199 Submitted by: lwhsu Approved by: perky
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>