3c7099b027
PR: ports/118301 Submitted by: Douglas William Thrift <douglas@douglasthrift.net> Approved by: lars.eggert@nokia.com (maintainer, timeout 3 years), gabor (mentor)
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# New ports collection makefile for: py-setuptools
|
|
# Date created: 2005-11-21
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= setuptools
|
|
PORTVERSION= 0.6c11
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Download, build, install, upgrade, and uninstall Python packages
|
|
|
|
DIST_SUBDIR= python
|
|
USE_PYTHON= 2.5-2.7
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
|
|
PLIST_SUB= VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//}
|
|
|
|
.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
|
|
|
|
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
|
|
|
|
post-install:
|
|
${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
|
|
${CP} ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.dist
|
|
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|