aboutsummaryrefslogtreecommitdiff
path: root/devel/py-virtualenv/Makefile
blob: a84a2430358d5be936086d04bcc128a9ef4a5c37 (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
37
38
39
40
41
42
43
44
45
46
# $FreeBSD$

PORTNAME=	virtualenv
PORTVERSION=	1.10.1
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	Virtual Python Environment builder

LICENSE=	MIT

OPTIONS_DEFINE=	DOCS
OPTIONSFILE?=	${PORT_DBDIR}/py-${PORTNAME}/options

PLIST_SUB=	PYVER=${PYTHON_VER} PIPVER=${PIPVER} \
		SETUPTOOLSVER=${SETUPTOOLSVER}

# Python3 ready
USE_PYTHON=		yes
USE_PYDISTUTILS=	easy_install

PIPVER=	1.4.1
SETUPTOOLSVER=	0.9.8

NO_STAGE=	yes
.include <bsd.port.options.mk>

.include <bsd.port.pre.mk>

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

post-install:
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif

.if ${PYTHON_REL} >= 320
.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
.endif

.include <bsd.port.post.mk>