1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Update to 0.6.21

- Adjust the conditional installation of bin/easy_install
- Cosmetic change

Changes:	http://pypi.python.org/pypi/distribute#changes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-09-01 16:50:49 +00:00
parent a788bec53b
commit 8a3f44aff1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280990
2 changed files with 12 additions and 12 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= distribute
PORTVERSION= 0.6.16
PORTREVISION= 0
PORTVERSION= 0.6.21
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -15,6 +14,8 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= A Python packages installer, and Setuptools replacement
CONFLICTS= ${PYTHON_PKGNAMEPREFIX}setuptools-[0-9]*
PLIST_SUB= PYVER=${PYTHON_VER} VERSION=${PORTVERSION} SETUPTOOLS_VER=0.6c11
PYDISTUTILS_NOEGGINFO= yes
@ -32,29 +33,28 @@ PYFILES= site.py
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 320
PYCACHE="__pycache__/%%PYMOD%%.cpython-${PYTHON_VER:S,.,,}"
PLIST_DIRS= "${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/__pycache__"
PYCACHE= __pycache__/%%PYMOD%%.cpython-${PYTHON_VER:S,.,,}
PLIST_DIRS= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/__pycache__
.else
PYCACHE="%%PYMOD%%"
PYCACHE= %%PYMOD%%
.endif
.for m in ${PYFILES}
.for ext in pyc pyo
PLIST_FILES+= "${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/${PYCACHE:S,%%PYMOD%%,${m:R},}.${ext}"
PLIST_FILES+= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/${PYCACHE:S,%%PYMOD%%,${m:R},}.${ext}
.endfor
.endfor
.if exists(${LOCALBASE}/bin/easy_install-${PYTHON_VER})
CONFLICTS= py[2-3][0-9]-setuptools-[0-9]*
.elif !exists(${LOCALBASE}/bin/easy_install)
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} && !exists(${LOCALBASE}/bin/easy_install)
PLIST_SUB+= IF_DEFAULT=""
.else
PLIST_SUB+= IF_DEFAULT="@comment "
SUB_FILES+= pkg-message
SUB_LIST+= PYVER=${PYTHON_VER}
# remove the console script easy_install
post-patch:
${SED} -i.bak -e '/easy_install =/d' ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e '/easy_install = / s|".*"||' ${WRKSRC}/setup.py
.endif
pre-install:

View File

@ -1,2 +1,2 @@
SHA256 (distribute-0.6.16.tar.gz) = 1edb8f34303a9af42db419bc5cfd189572351797d57b62c03e6dc7bf61168b56
SIZE (distribute-0.6.16.tar.gz) = 288263
SHA256 (distribute-0.6.21.tar.gz) = 1ed4b5895e722b06f6701f56dd227dd6aa25cbfc0c76ce0465b755ed92f52097
SIZE (distribute-0.6.21.tar.gz) = 399934