freebsd-ports/databases/py-mysqlclient/Makefile
Pawel Pekala 4e3579f57b - Update to version 1.3.8 [1]
- Install doc files only when needed

PR:		213171 [1]
Submitted by:	Neel Chauhan (maintainer) [1]
2016-10-10 19:16:35 +00:00

29 lines
670 B
Makefile

# $FreeBSD$
PORTNAME= mysqlclient
DISTVERSION= 1.3.8
CATEGORIES= databases python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= neel@neelc.org
COMMENT= MySQL database connector for Python
USES= python mysql
USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= pymysql
GH_PROJECT= ${PORTNAME}-python
CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb5[0-9]-[0-9]* py*-MySQLdb
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>