2009-01-19 22:02:58 +00:00
|
|
|
# New ports collection makefile for: pip
|
|
|
|
# Date created: 2009-01-19
|
|
|
|
# Whom: Nicola Vitale <nivit@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pip
|
2010-04-27 12:06:38 +00:00
|
|
|
PORTVERSION= 0.7.1
|
2009-05-27 22:13:30 +00:00
|
|
|
PORTREVISION= 0
|
2009-01-19 22:02:58 +00:00
|
|
|
CATEGORIES= devel python
|
|
|
|
MASTER_SITES= CHEESESHOP \
|
|
|
|
LOCAL/nivit/${PORTNAME}/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
|
|
COMMENT= Pip installs (Python) packages. An easy_install replacement
|
|
|
|
|
2009-12-14 13:25:45 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0.6c9:${PORTSDIR}/devel/py-setuptools
|
|
|
|
|
2009-10-12 11:59:17 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
|
|
|
|
REINPLACE_ARGS= -i.bak -e "s/env python$$/&${PYTHON_VER}/"
|
|
|
|
|
2009-01-19 22:02:58 +00:00
|
|
|
USE_PYTHON= yes
|
2009-01-29 21:10:30 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2009-01-19 22:02:58 +00:00
|
|
|
|
2009-10-12 11:59:17 +00:00
|
|
|
post-patch:
|
|
|
|
${FIND} ${WRKSRC} -type f -name "pip*" -print0 | ${XARGS} -0 ${REINPLACE_CMD}
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2009-12-14 13:25:45 +00:00
|
|
|
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
2009-10-12 11:59:17 +00:00
|
|
|
.endif
|
|
|
|
|
2009-01-19 22:02:58 +00:00
|
|
|
.include <bsd.port.mk>
|