diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2009-07-01 05:51:53 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2009-07-01 05:51:53 +0800 |
commit | 0706c868054c0eac415b8f6973bb8551a3743c3c (patch) | |
tree | ffa555616fcca53215b30746f573d37b7b3faa15 /databases/py-sqlite3/Makefile | |
parent | 51050004a977738788a875400b8cc1a615a6a6c0 (diff) | |
download | freebsd-ports-gnome-0706c868054c0eac415b8f6973bb8551a3743c3c.tar.gz freebsd-ports-gnome-0706c868054c0eac415b8f6973bb8551a3743c3c.tar.zst freebsd-ports-gnome-0706c868054c0eac415b8f6973bb8551a3743c3c.zip |
- Fix building with python3*
- Use checksum file under lang/python${PYTHON_SUFFIX}/,
for removal lang/python/distinfo
Diffstat (limited to 'databases/py-sqlite3/Makefile')
-rw-r--r-- | databases/py-sqlite3/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/databases/py-sqlite3/Makefile b/databases/py-sqlite3/Makefile index d33ff720d869..bfbc9972c2f9 100644 --- a/databases/py-sqlite3/Makefile +++ b/databases/py-sqlite3/Makefile @@ -24,14 +24,20 @@ DIST_SUBDIR= python USE_PYTHON= 2.5+ USE_PYDISTUTILS=yes WRKSRC= ${PYTHON_WRKSRC}/Modules -MD5_FILE= ${PORTSDIR}/lang/python/distinfo +MD5_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo PYDISTUTILS_NOEGGINFO= yes +.include <bsd.port.pre.mk> + pre-extract: @${CAT} ${PKGMESSAGE} 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> |