2000-05-26 09:05:20 +02:00
|
|
|
# New ports collection makefile for: py-MySQLdb
|
|
|
|
# Date created: 04 April 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= py-MySQLdb
|
2001-03-30 00:48:08 +02:00
|
|
|
PORTVERSION= 0.3.5
|
2000-05-26 09:05:20 +02:00
|
|
|
CATEGORIES= databases python
|
2001-03-30 00:48:08 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mysql-python
|
2000-12-04 09:47:04 +01:00
|
|
|
DISTNAME= MySQL-python-${PORTVERSION}
|
2000-05-26 09:05:20 +02:00
|
|
|
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
|
2000-10-30 10:37:47 +01:00
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
2001-01-21 16:40:47 +01:00
|
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2000-10-30 10:37:47 +01:00
|
|
|
USE_PYTHON= yes
|
|
|
|
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2001-03-30 00:48:08 +02:00
|
|
|
DOCS= README.MySQLmodule MANIFEST README
|
|
|
|
|
|
|
|
|
2000-05-26 09:05:20 +02:00
|
|
|
do-configure:
|
2000-10-30 10:37:47 +01:00
|
|
|
@${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2000-10-30 10:37:47 +01:00
|
|
|
do-build:
|
|
|
|
${SETUP_CMD} build
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2000-10-30 10:37:47 +01:00
|
|
|
do-install:
|
|
|
|
${SETUP_CMD} install
|
2000-05-26 09:05:20 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples
|
2001-03-30 00:48:08 +02:00
|
|
|
.for file in ${DOCS}
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/doc/py-MySQLdb
|
|
|
|
.endfor
|
2000-05-26 09:05:20 +02:00
|
|
|
@${INSTALL_MAN} \
|
|
|
|
${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|