Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= redis |
4 |
PORTNAME= redis |
5 |
PORTVERSION= 2.9.1 |
5 |
PORTVERSION= 2.10.1 |
6 |
CATEGORIES= databases python |
6 |
CATEGORIES= databases python |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
|
8 |
|
Lines 11-18
Link Here
|
11 |
|
11 |
|
12 |
LICENSE= MIT |
12 |
LICENSE= MIT |
13 |
|
13 |
|
14 |
OPTIONS_DEFINE= HIREDIS |
14 |
OPTIONS_DEFINE= HIREDIS HTMLDOCS |
15 |
HIREDIS_DESC= High performance response parser (via hiredis) |
15 |
HIREDIS_DESC= High performance response parser (via hiredis) |
|
|
16 |
HTMLDOCS_DESC= Build and install API docs using Sphinx |
17 |
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} |
18 |
DOCGEN= ${LOCALBASE}/bin/sphinx-apidoc |
16 |
|
19 |
|
17 |
HIREDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>0:${PORTSDIR}/databases/py-hiredis |
20 |
HIREDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>0:${PORTSDIR}/databases/py-hiredis |
18 |
|
21 |
|
Lines 23-31
Link Here
|
23 |
USE_GITHUB= yes |
26 |
USE_GITHUB= yes |
24 |
GH_ACCOUNT= andymccurdy |
27 |
GH_ACCOUNT= andymccurdy |
25 |
GH_PROJECT= ${PORTNAME}-py |
28 |
GH_PROJECT= ${PORTNAME}-py |
26 |
GH_COMMIT= 91a0b8b |
29 |
GH_COMMIT= e7589d7 |
|
|
30 |
|
31 |
.include <bsd.port.options.mk> |
32 |
.if !empty(PORT_OPTIONS:MHTMLDOCS) |
33 |
. if empty(PORT_OPTIONS:MDOCS) |
34 |
IGNORE= you cannot build documentation with DOCS option disabled |
35 |
. endif |
36 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx |
37 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>0:${PORTSDIR}/textproc/py-MarkupSafe |
38 |
PORTDOCS= * |
39 |
USES+= gmake |
40 |
.endif |
27 |
|
41 |
|
28 |
regression-test: build |
42 |
regression-test: build |
29 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test |
43 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test |
30 |
|
44 |
|
|
|
45 |
post-build: |
46 |
.if ${PORT_OPTIONS:MHTMLDOCS} |
47 |
@${ECHO_CMD} "Building documentation" |
48 |
@cd ${WRKSRC} && ${DOCGEN} -o apidocs -F -H 'redis-py' \ |
49 |
-V ${PORTVERSION} -A '2014, Andy McCurdy, Mahdi Yusuf' \ |
50 |
-R ${PORTVERSION} redis |
51 |
|
52 |
cd ${WRKSRC}/apidocs && ${MAKE_CMD} html |
53 |
.endif |
54 |
|
55 |
post-install: |
56 |
.if ${PORT_OPTIONS:MHTMLDOCS} |
57 |
@${MKDIR} ${DOCSDIR} |
58 |
@${RM} ${WRKSRC}/apidocs/_build/html/.buildinfo |
59 |
@cd ${WRKSRC}/apidocs/_build/html && ${COPYTREE_SHARE} . \ |
60 |
${STAGEDIR}${DOCSDIR} |
61 |
.endif |
62 |
|
31 |
.include <bsd.port.mk> |
63 |
.include <bsd.port.mk> |