diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-05-26 15:05:20 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-05-26 15:05:20 +0800 |
commit | 65d5f6db05db66674a0cb9d4fe152a5236ee585a (patch) | |
tree | a4377675e31a25fbd458fcaf2693fb3b6d0135bb /databases/py-MySQLdb-devel/Makefile | |
parent | c8e12d64de9490bff41867d271c5dca3fb1d6de6 (diff) | |
download | freebsd-ports-gnome-65d5f6db05db66674a0cb9d4fe152a5236ee585a.tar.gz freebsd-ports-gnome-65d5f6db05db66674a0cb9d4fe152a5236ee585a.tar.zst freebsd-ports-gnome-65d5f6db05db66674a0cb9d4fe152a5236ee585a.zip |
Initial import of py-MySQLdb.
py-MySQLdb is a Python module to access MySQL databases, very similar to the one
in ports/databases/py-MySQL, but unlike the latter it is actively maintained
and conform to the DB-API v2.0. Therefore it should be used instead of the oldest
one by all who want retain maintainability of their Python DB applications in
the future.
PR: 18383
Submitted by: sobomax
Diffstat (limited to 'databases/py-MySQLdb-devel/Makefile')
-rw-r--r-- | databases/py-MySQLdb-devel/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/databases/py-MySQLdb-devel/Makefile b/databases/py-MySQLdb-devel/Makefile new file mode 100644 index 000000000000..95c8c05db1e5 --- /dev/null +++ b/databases/py-MySQLdb-devel/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: py-MySQLdb +# Date created: 04 April 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= py-MySQLdb +PORTVERSION= 0.2.1 +CATEGORIES= databases python +MASTER_SITES= http://dustman.net/andy/python/MySQLdb/${PORTVERSION}/ +DISTNAME= MySQLdb-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +BUILD_DEPENDS= python:${PORTSDIR}/lang/python +LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client +RUN_DEPENDS= python:${PORTSDIR}/lang/python + +ALL_TARGET= _mysqlmodule.o + +pre-configure: + @${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/ + +do-configure: + @cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot + +post-build: + @-${LOCALBASE}/bin/python \ + ${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC} 2>/dev/null + +post-install: + @${INSTALL_DATA} \ + ${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/python1.5/site-packages +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples + @${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb + @${INSTALL_MAN} \ + ${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples +.endif + +.include <bsd.port.mk> |