mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 15:20:32 -04:00
FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight
34 lines
777 B
Makefile
34 lines
777 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+= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:textproc/py-sphinx@${PY_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>
|