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