Marcelo Araujo 761493be4d - Update textproc/py-sphinx to 1.6.5. [0]
- Update all ports that depends of py-sphinx. [0]
- Add conditional RUN_DEPENDS. [1]
- Add TEST_DEPENDS. [1]

PR:		ports/221891 [0] and ports/225136 [1]
Submitted by:	sunpoet [1]
Approved by:	antoine (portmgr)
Exprun by:	antoine (several rounds)
Sponsored by:	iXsystems, Inc.
2018-01-29 06:45:16 +00:00

35 lines
767 B
Makefile

# $FreeBSD$
PORTNAME= pathtools
PORTVERSION= 0.1.2
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= File system general utilities for Python
LICENSE= MIT
OPTIONS_DEFINE= DOCS
USES= python
USE_PYTHON= distutils autoplist
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= ${PKGNAMEPREFIX}sphinx>=1.1.3:textproc/py-sphinx@${FLAVOR}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
post-build:
@(cd ${WRKSRC}/docs ; ${MAKE} SPHINXBUILD=sphinx-build-${PYTHON_VER} html)
post-install:
@(cd ${WRKSRC}/docs/build/html ; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name .buildinfo -and ! -name objects.inv")
.endif
.include <bsd.port.mk>