mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 19:13:27 -04:00
- Set PYTHON_CONCURRENT_INSTALL and do not manually set DOCSDIR so that multiple versions can be installed concurrently. PR: 191267 Submitted by: rakuco Approved by: koobs (the actual maintainer :-)
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= redis
|
|
PORTVERSION= 2.10.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Python client for Redis key-value store
|
|
|
|
LICENSE= MIT
|
|
|
|
OPTIONS_DEFINE= DOCS HIREDIS
|
|
HIREDIS_DESC= High performance response parser (via hiredis)
|
|
DOCGEN= ${LOCALBASE}/bin/sphinx-apidoc
|
|
|
|
HIREDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>0:${PORTSDIR}/databases/py-hiredis
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
PYTHON_CONCURRENT_INSTALL=yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= andymccurdy
|
|
GH_PROJECT= ${PORTNAME}-py
|
|
GH_COMMIT= e7589d7
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>0:${PORTSDIR}/textproc/py-MarkupSafe
|
|
PORTDOCS= *
|
|
USES+= gmake
|
|
.endif
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
|
|
|
post-build:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${ECHO_CMD} "Building documentation"
|
|
@cd ${WRKSRC} && ${DOCGEN} -o apidocs -F -H 'redis-py' \
|
|
-V ${PORTVERSION} -A '2014, Andy McCurdy, Mahdi Yusuf' \
|
|
-R ${PORTVERSION} redis
|
|
|
|
cd ${WRKSRC}/apidocs && ${MAKE_CMD} html
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@${RM} ${WRKSRC}/apidocs/_build/html/.buildinfo
|
|
@cd ${WRKSRC}/apidocs/_build/html && ${COPYTREE_SHARE} . \
|
|
${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|