2005-11-22 21:48:56 +01:00
|
|
|
# New ports collection makefile for: py-setuptools
|
|
|
|
# Date created: 2005-11-21
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= setuptools
|
2009-11-26 23:22:08 +01:00
|
|
|
PORTVERSION= 0.6c11
|
2012-01-06 17:36:03 +01:00
|
|
|
PORTREVISION= 2
|
2005-11-22 21:48:56 +01:00
|
|
|
CATEGORIES= devel python
|
2009-11-26 23:22:08 +01:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2005-11-22 21:48:56 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2006-11-17 19:07:45 +01:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
2005-11-22 21:48:56 +01:00
|
|
|
COMMENT= Download, build, install, upgrade, and uninstall Python packages
|
|
|
|
|
|
|
|
DIST_SUBDIR= python
|
2011-08-17 19:27:34 +02:00
|
|
|
USE_PYTHON= 2.5-2.7
|
2005-11-22 21:48:56 +01:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
|
2006-02-18 07:44:24 +01:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//}
|
2005-11-22 21:48:56 +01:00
|
|
|
|
2006-11-07 15:48:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_SUFFIX} < 25
|
|
|
|
PLIST_SUB+= PYTHON_CURRENT="@comment "
|
|
|
|
PLIST_SUB+= PYTHON_OLD=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PYTHON_CURRENT=""
|
|
|
|
PLIST_SUB+= PYTHON_OLD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-01-06 17:36:03 +01:00
|
|
|
SUB_FILES= pkg-install
|
|
|
|
SUB_LIST= EASYINSTALL_PTH=${EASYINSTALL_PTH}
|
|
|
|
|
|
|
|
EASYINSTALL_PTH= ${PYTHON_SITELIBDIR}/easy-install.pth
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2005-11-22 21:48:56 +01:00
|
|
|
post-install:
|
2007-11-20 10:10:41 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/site.py ${PYTHON_SITELIBDIR}
|
|
|
|
.for opt in -Qold -O
|
|
|
|
${PYTHON_CMD} ${opt} -m compileall -l -x \
|
|
|
|
'^[^s][^i]?[^t]?[^e]?[^.][^p][^y]$$' ${PYTHON_SITELIBDIR}
|
|
|
|
.endfor
|
2012-01-06 17:36:03 +01:00
|
|
|
${CP} ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.dist
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2007-11-20 10:10:41 +01:00
|
|
|
|
2005-11-22 21:48:56 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2006-11-07 15:48:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|