aboutsummaryrefslogtreecommitdiff
path: root/databases/py-MySQLdb
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-09-19 06:38:32 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-09-19 06:38:32 +0000
commitcc2fb1f48f0dca672103d9b5812a30223dc64ab8 (patch)
tree05e54e65a1cb05ccec30fa6f020a88d47747bf3f /databases/py-MySQLdb
parent9321374d4f85c0f3d823b39e84092fe8925b67da (diff)
downloadports-cc2fb1f48f0dca672103d9b5812a30223dc64ab8.tar.gz
ports-cc2fb1f48f0dca672103d9b5812a30223dc64ab8.zip
Notes
Diffstat (limited to 'databases/py-MySQLdb')
-rw-r--r--databases/py-MySQLdb/Makefile9
-rw-r--r--databases/py-MySQLdb/pkg-plist4
2 files changed, 6 insertions, 7 deletions
diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile
index efa46e7eea29..fcfc4e98ddb1 100644
--- a/databases/py-MySQLdb/Makefile
+++ b/databases/py-MySQLdb/Makefile
@@ -13,25 +13,24 @@ DISTNAME= MySQLdb-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
-BUILD_DEPENDS= python1.5:${PORTSDIR}/lang/python15
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
-RUN_DEPENDS= python1.5:${PORTSDIR}/lang/python15
+USE_PYTHON= yes
ALL_TARGET= _mysqlmodule.o
pre-configure:
- @${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/
+ @${LN} -s ${LOCALBASE}/lib/${PYTHON_VERSION}/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
+ ${LOCALBASE}/lib/${PYTHON_VERSION}/compileall.py ${WRKSRC} 2>/dev/null
post-install:
@${INSTALL_DATA} \
- ${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/python1.5/site-packages
+ ${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples
@${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb
diff --git a/databases/py-MySQLdb/pkg-plist b/databases/py-MySQLdb/pkg-plist
index 63472e045e94..89e042b3270b 100644
--- a/databases/py-MySQLdb/pkg-plist
+++ b/databases/py-MySQLdb/pkg-plist
@@ -1,5 +1,5 @@
-lib/python1.5/site-packages/MySQLdb.pyc
-lib/python1.5/site-packages/_mysqlmodule.so
+lib/%%PYTHON_VERSION%%/site-packages/MySQLdb.pyc
+lib/%%PYTHON_VERSION%%/site-packages/_mysqlmodule.so
share/doc/py-MySQLdb/MySQLdb-1.html
share/doc/py-MySQLdb/MySQLdb-2.html
share/doc/py-MySQLdb/MySQLdb-3.html