mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Updates to 2.10.1
- Add support to build HTML documentation via sphinx. PR: 191267 Submitted by: melvyn@magemana.nl (maintainer)
This commit is contained in:
parent
004dc5576e
commit
e49c1cc45a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358855
2 changed files with 37 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= redis
|
PORTNAME= redis
|
||||||
PORTVERSION= 2.9.1
|
PORTVERSION= 2.10.1
|
||||||
CATEGORIES= databases python
|
CATEGORIES= databases python
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
@ -11,8 +11,11 @@ COMMENT= Python client for Redis key-value store
|
||||||
|
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
|
|
||||||
OPTIONS_DEFINE= HIREDIS
|
OPTIONS_DEFINE= HIREDIS HTMLDOCS
|
||||||
HIREDIS_DESC= High performance response parser (via hiredis)
|
HIREDIS_DESC= High performance response parser (via hiredis)
|
||||||
|
HTMLDOCS_DESC= Build and install API docs using Sphinx
|
||||||
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||||
|
DOCGEN= ${LOCALBASE}/bin/sphinx-apidoc
|
||||||
|
|
||||||
HIREDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>0:${PORTSDIR}/databases/py-hiredis
|
HIREDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>0:${PORTSDIR}/databases/py-hiredis
|
||||||
|
|
||||||
|
@ -23,9 +26,38 @@ PYDISTUTILS_AUTOPLIST= yes
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= andymccurdy
|
GH_ACCOUNT= andymccurdy
|
||||||
GH_PROJECT= ${PORTNAME}-py
|
GH_PROJECT= ${PORTNAME}-py
|
||||||
GH_COMMIT= 91a0b8b
|
GH_COMMIT= e7589d7
|
||||||
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
.if !empty(PORT_OPTIONS:MHTMLDOCS)
|
||||||
|
. if empty(PORT_OPTIONS:MDOCS)
|
||||||
|
IGNORE= you cannot build documentation with DOCS option disabled
|
||||||
|
. endif
|
||||||
|
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
|
regression-test: build
|
||||||
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
||||||
|
|
||||||
|
post-build:
|
||||||
|
.if ${PORT_OPTIONS:MHTMLDOCS}
|
||||||
|
@${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:MHTMLDOCS}
|
||||||
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
|
@${RM} ${WRKSRC}/apidocs/_build/html/.buildinfo
|
||||||
|
@cd ${WRKSRC}/apidocs/_build/html && ${COPYTREE_SHARE} . \
|
||||||
|
${STAGEDIR}${DOCSDIR}
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (redis-2.9.1.tar.gz) = ac67bc0dcfe0ac56626e24ee4bea188d699d9f7ec04483534e1268db9390a2cb
|
SHA256 (redis-2.10.1.tar.gz) = 9b577bebdc568ad47da3ff3cdb7c231ea0b0e9cf33fd3b7af75c678f158c29d6
|
||||||
SIZE (redis-2.9.1.tar.gz) = 60476
|
SIZE (redis-2.10.1.tar.gz) = 81723
|
||||||
|
|
Loading…
Add table
Reference in a new issue