8fcbbdadd4
Submitted by: Neil Darlow <neil@darlow.co.uk>, Johann Visagie <wjv@FreeBSD.ORG>
41 lines
902 B
Makefile
41 lines
902 B
Makefile
# New ports collection makefile for: py-MySQLdb
|
|
# Date created: 04 April 2000
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= py-MySQLdb
|
|
PORTVERSION= 0.9.0
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= mysql-python
|
|
DISTNAME= MySQL-python-${PORTVERSION}
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
USE_PYTHON= yes
|
|
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
|
|
|
|
DOCS= MANIFEST README doc/*.html
|
|
|
|
do-configure:
|
|
@${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
|
|
|
do-build:
|
|
${SETUP_CMD} build
|
|
|
|
do-install:
|
|
${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in ${DOCS}
|
|
@${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|