aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-pathtools/Makefile
blob: cde8ff69d77d5697316bb4631331a561f25d7151 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $FreeBSD$

PORTNAME=   pathtools
PORTVERSION=    0.1.2
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= nivit@FreeBSD.org
COMMENT=    File system general utilities for Python

LICENSE=    MIT

OPTIONS_DEFINE= DOCS

PYDISTUTILS_AUTOPLIST=  yes

USE_PYTHON= yes
USE_PYDISTUTILS=    yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= ${PKGNAMEPREFIX}sphinx>=1.1.3:${PORTSDIR}/textproc/py-sphinx
DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}

post-build:
    @(cd ${WRKSRC}/docs ; ${MAKE} html)

post-install:
    @(cd ${WRKSRC}/docs/build/html ; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
        "! -name .buildinfo -and ! -name objects.inv")
.endif

.include <bsd.port.mk>