diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-10-30 17:37:47 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-10-30 17:37:47 +0800 |
commit | 947c6447df76f44f06bb28e5af095078bc52ff6f (patch) | |
tree | 0866066c07d788f92d63ddd689f9f8cd186b0cf0 /databases/py-MySQLdb/Makefile | |
parent | 1908c3b8d424d98b5c15805a46f5450125e3ced9 (diff) | |
download | freebsd-ports-graphics-947c6447df76f44f06bb28e5af095078bc52ff6f.tar.gz freebsd-ports-graphics-947c6447df76f44f06bb28e5af095078bc52ff6f.tar.zst freebsd-ports-graphics-947c6447df76f44f06bb28e5af095078bc52ff6f.zip |
Update to 0.3.0b1.
Diffstat (limited to 'databases/py-MySQLdb/Makefile')
-rw-r--r-- | databases/py-MySQLdb/Makefile | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile index fcfc4e98ddb..c3af7b1588e 100644 --- a/databases/py-MySQLdb/Makefile +++ b/databases/py-MySQLdb/Makefile @@ -6,31 +6,29 @@ # PORTNAME= py-MySQLdb -PORTVERSION= 0.2.2 +PORTVERSION= 0.3.0b1 CATEGORIES= databases python -MASTER_SITES= http://dustman.net/andy/python/MySQLdb/${PORTVERSION}/ -DISTNAME= MySQLdb-${PORTVERSION} +MASTER_SITES= http://dustman.net/andy/python/MySQLdb/0.3.0/ +DISTNAME= MySQL-${PORTVERSION} MAINTAINER= sobomax@FreeBSD.org +BUILD_DEPENDS= ${PYDISTUTILS} LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client -USE_PYTHON= yes -ALL_TARGET= _mysqlmodule.o +WRKSRC= ${WRKDIR}/MySQLdb-${PORTVERSION} -pre-configure: - @${LN} -s ${LOCALBASE}/lib/${PYTHON_VERSION}/config/Makefile.pre.in ${WRKSRC}/ +USE_PYTHON= yes +SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py do-configure: - @cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot + @${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py -post-build: - @-${LOCALBASE}/bin/python \ - ${LOCALBASE}/lib/${PYTHON_VERSION}/compileall.py ${WRKSRC} 2>/dev/null +do-build: + ${SETUP_CMD} build -post-install: - @${INSTALL_DATA} \ - ${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/${PYTHON_VERSION}/site-packages +do-install: + ${SETUP_CMD} install .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples @${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb |