Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 22:22:12 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358855 - head/databases/py-redis
Message-ID:  <201406222222.s5MMMCjr009114@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Sun Jun 22 22:22:11 2014
New Revision: 358855
URL: http://svnweb.freebsd.org/changeset/ports/358855
QAT: https://qat.redports.org/buildarchive/r358855/

Log:
  - Updates to 2.10.1
  - Add support to build HTML documentation via sphinx.
  
  PR:		191267
  Submitted by:	melvyn@magemana.nl (maintainer)

Modified:
  head/databases/py-redis/Makefile
  head/databases/py-redis/distinfo

Modified: head/databases/py-redis/Makefile
==============================================================================
--- head/databases/py-redis/Makefile	Sun Jun 22 22:21:38 2014	(r358854)
+++ head/databases/py-redis/Makefile	Sun Jun 22 22:22:11 2014	(r358855)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	redis
-PORTVERSION=	2.9.1
+PORTVERSION=	2.10.1
 CATEGORIES=	databases python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -11,8 +11,11 @@ COMMENT=	Python client for Redis key-val
 
 LICENSE=	MIT
 
-OPTIONS_DEFINE=	HIREDIS
+OPTIONS_DEFINE=	HIREDIS HTMLDOCS
 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
 
@@ -23,9 +26,38 @@ PYDISTUTILS_AUTOPLIST=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	andymccurdy
 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
 	@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>

Modified: head/databases/py-redis/distinfo
==============================================================================
--- head/databases/py-redis/distinfo	Sun Jun 22 22:21:38 2014	(r358854)
+++ head/databases/py-redis/distinfo	Sun Jun 22 22:22:11 2014	(r358855)
@@ -1,2 +1,2 @@
-SHA256 (redis-2.9.1.tar.gz) = ac67bc0dcfe0ac56626e24ee4bea188d699d9f7ec04483534e1268db9390a2cb
-SIZE (redis-2.9.1.tar.gz) = 60476
+SHA256 (redis-2.10.1.tar.gz) = 9b577bebdc568ad47da3ff3cdb7c231ea0b0e9cf33fd3b7af75c678f158c29d6
+SIZE (redis-2.10.1.tar.gz) = 81723



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406222222.s5MMMCjr009114>