# Created by: Maxim Sobolev # $FreeBSD$ PORTNAME= MySQLdb DISTVERSION= 1.2.5 CATEGORIES= databases python MASTER_SITES= https://github.com/farcepest/${PORTNAME}1/archive/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Access a MySQL database through Python USES= python:2 USE_PYTHON= distutils autoplist USE_MYSQL= yes CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb5[0-9]-[0-9]* PORTDOCS= * DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}1-${PORTNAME}-${PORTVERSION} OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options OPTIONS_DEFINE= DOCS MYSQLCLIENT_R OPTIONS_DEFAULT= MYSQLCLIENT_R MYSQLCLIENT_R_DESC= Use libmysqlclient_r (thread safe) .include .if ${PORT_OPTIONS:MMYSQLCLIENT_R} pre-configure: @${REINPLACE_CMD} -E -e "s|(threadsafe.*)True|\1 False|" \ ${WRKSRC}/site.cfg .endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} .include