forked from Lainports/freebsd-ports
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336
43 lines
1 KiB
Makefile
43 lines
1 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= MySQLdb
|
|
DISTVERSION= 1.2.5
|
|
DISTVERSIONPREFIX= ${PORTNAME}-
|
|
CATEGORIES= databases python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Access a MySQL database through Python
|
|
|
|
USES= python:2
|
|
USE_PYTHON= distutils autoplist
|
|
USE_MYSQL= yes
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= farcepest
|
|
GH_PROJECT= ${PORTNAME}1
|
|
|
|
CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb5[0-9]-[0-9]*
|
|
|
|
PORTDOCS= *
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}1-${PORTNAME}-${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS MYSQLCLIENT_R
|
|
OPTIONS_DEFAULT= MYSQLCLIENT_R
|
|
MYSQLCLIENT_R_DESC= Use libmysqlclient_r (thread safe)
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.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 <bsd.port.mk>
|