summaryrefslogtreecommitdiff
path: root/databases/py-mysql/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-06-22 21:53:09 +0000
committertron <tron@pkgsrc.org>1998-06-22 21:53:09 +0000
commit428c964d4eb60a728a822b52dd3674509dddc740 (patch)
tree58f6c21d149a1b0dd49cf14521c5d851b32349ef /databases/py-mysql/Makefile
parentfa9d3d91e29f82e8256823f0a33b7ca2bddd59ea (diff)
downloadpkgsrc-428c964d4eb60a728a822b52dd3674509dddc740.tar.gz
New "py-mysql" package supplied by Ty Sarna in PR pkg/5602:
MySQLmodule 1.1.0 for Python 1.5(.x)
Diffstat (limited to 'databases/py-mysql/Makefile')
-rw-r--r--databases/py-mysql/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/databases/py-mysql/Makefile b/databases/py-mysql/Makefile
new file mode 100644
index 00000000000..b805c1d25c1
--- /dev/null
+++ b/databases/py-mysql/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 1998/06/22 21:53:09 tron Exp $
+
+DISTNAME= MySQLmodule-1.1
+PKGNAME= py-mysql-1.1
+CATEGORIES= databases
+MASTER_SITES= http://snail.earthlight.co.nz/mysql/
+DISTFILES= MySQLmodule-1.1${EXTRACT_SUFX} \
+ Mysqldb.py mysqlshelve.py
+
+MAINTAINER= tsarna@endicor.com
+
+DEPENDS+= python-1.5.1:../../lang/python \
+ mysql-3.21.31:../mysql
+
+EXTRACT_ONLY= MySQLmodule-1.1${EXTRACT_SUFX}
+ALL_TARGET= default
+
+do-configure:
+ ${SED} -e 's,@PREFIX@,${PREFIX},' ${FILESDIR}/Setup.in \
+ >${WRKSRC}/Setup.in
+ ${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}
+ (cd ${WRKSRC}; make -f Makefile.pre.in boot)
+ ${CP} ${DISTDIR}/Mysqldb.py ${DISTDIR}/mysqlshelve.py ${WRKSRC}
+
+post-build:
+ (cd ${WRKSRC}; python ${PREFIX}/lib/python1.5/compileall.py .)
+ (cd ${WRKSRC}; python -O ${PREFIX}/lib/python1.5/compileall.py .)
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/*.py[co] \
+ ${PREFIX}/lib/python1.5/site-packages
+
+.include "../../mk/bsd.pkg.mk"