[Midnightbsd-cvs] mports [16170] trunk/devel/py-setuptools: update py-setuptools to 2.0.1
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Apr 12 14:04:26 EDT 2014
Revision: 16170
http://svnweb.midnightbsd.org/mports/?rev=16170
Author: laffer1
Date: 2014-04-12 14:04:26 -0400 (Sat, 12 Apr 2014)
Log Message:
-----------
update py-setuptools to 2.0.1
Modified Paths:
--------------
trunk/devel/py-setuptools/Makefile
trunk/devel/py-setuptools/distinfo
trunk/devel/py-setuptools/pkg-descr
trunk/devel/py-setuptools/pkg-plist
Removed Paths:
-------------
trunk/devel/py-setuptools/files/pkg-install.in
Modified: trunk/devel/py-setuptools/Makefile
===================================================================
--- trunk/devel/py-setuptools/Makefile 2014-04-12 16:46:17 UTC (rev 16169)
+++ trunk/devel/py-setuptools/Makefile 2014-04-12 18:04:26 UTC (rev 16170)
@@ -1,43 +1,49 @@
# $MidnightBSD$
PORTNAME= setuptools
-PORTVERSION= 0.6c11
-PORTREVISION= 1
+PORTVERSION= 2.0.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DIST_SUBDIR= python
MAINTAINER= ports at MidnightBSD.org
COMMENT= Download, build, install, upgrade, and uninstall Python packages
-LICENSE= unknown
-DIST_SUBDIR= python
-USE_PYTHON= -2.7
+LICENSE= python
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}distribute-[0-9]*
+
+PLIST_SUB= PYVER=${PYTHON_VER} VERSION=${PORTVERSION} \
+ EASYINSTALL_PTH=${PYTHON_SITELIBDIR}/easy-install.pth
+
+USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to python.mk's
-PLIST_SUB= VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//}
+PYDISTUTILS_AUTOPLIST= yes
+PYDISTUTILS_SETUP= ${PYSETUP}
+SUB_LIST= IF_DEFAULT=${IF_DEFAULT}
+
.include <bsd.port.pre.mk>
-SUB_FILES= pkg-install
-SUB_LIST= EASYINSTALL_PTH=${EASYINSTALL_PTH}
+.if ${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}
+SUB_FILES+= pkg-message
+.endif
-EASYINSTALL_PTH= ${PYTHON_SITELIBDIR}/easy-install.pth
+post-patch:
+.if ${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}
+ @${REINPLACE_CMD} 's,.*yield "easy_install =.*,,' ${WRKSRC}/setup.py
+.endif
+ @${REINPLACE_CMD} 's,#!python,#!${PYTHON_CMD},' \
+ ${WRKSRC}/setuptools/command/easy_install.py
+ @${REINPLACE_CMD} 's,#!/usr/bin/python,#!${PYTHON_CMD},' \
+ ${WRKSRC}/setuptools/tests/test_resources.py
+ @${MKDIR} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}
-pre-install:
- ${MKDIR} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}
-
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
+ ${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
-.endif
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.post.mk>
Modified: trunk/devel/py-setuptools/distinfo
===================================================================
--- trunk/devel/py-setuptools/distinfo 2014-04-12 16:46:17 UTC (rev 16169)
+++ trunk/devel/py-setuptools/distinfo 2014-04-12 18:04:26 UTC (rev 16170)
@@ -1,3 +1,2 @@
-SHA256 (python/setuptools-0.6c11.tar.gz) = 630fea9b726320b73ee3ca6ff61732cb32675b0389be658080fe46383b87a1d3
-RMD160 (python/setuptools-0.6c11.tar.gz) = 7af8f39e5e74d96d10cc0d00b15a26462d66f42c
-SIZE (python/setuptools-0.6c11.tar.gz) = 256862
+SHA256 (python/setuptools-2.0.1.tar.gz) = 8772b48bdd219bfbbb6eb262ba32419856e9cb4a4d8deda88cc55c28dc6124ce
+SIZE (python/setuptools-2.0.1.tar.gz) = 783570
Deleted: trunk/devel/py-setuptools/files/pkg-install.in
===================================================================
--- trunk/devel/py-setuptools/files/pkg-install.in 2014-04-12 16:46:17 UTC (rev 16169)
+++ trunk/devel/py-setuptools/files/pkg-install.in 2014-04-12 18:04:26 UTC (rev 16170)
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-EASYINSTALL_PTH=%%EASYINSTALL_PTH%%
-
-if [ $# -ne 2 ]; then
- echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
- exit 1
-fi
-
-case $2 in
- PRE-INSTALL)
- if [ -f ${EASYINSTALL_PTH} ]; then
- mv ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.tmp
- fi
- ;;
- POST-INSTALL)
- if [ -f ${EASYINSTALL_PTH}.tmp ]; then
- mv ${EASYINSTALL_PTH}.tmp ${EASYINSTALL_PTH}
- fi
- ;;
-esac
-
-exit 0
-
Modified: trunk/devel/py-setuptools/pkg-descr
===================================================================
--- trunk/devel/py-setuptools/pkg-descr 2014-04-12 16:46:17 UTC (rev 16169)
+++ trunk/devel/py-setuptools/pkg-descr 2014-04-12 18:04:26 UTC (rev 16170)
@@ -1,6 +1,10 @@
-Setuptools is a collection of enhancements to the Python distutils (for Python
-2.3.5 and up on most platforms; 64-bit platforms require a minimum of Python
-2.4) that allow you to more easily build and distribute Python packages,
-especially ones that have dependencies on other packages.
+Setuptools is a fully-featured, actively-maintained, and stable library
+designed to facilitate packaging Python projects, where packaging includes:
+ - Python package and module definitions
+ - Distribution package metadata
+ - Test hooks
+ - Project installation
+ - Platform-specific details
+ - Python 3 support
-WWW: http://peak.telecommunity.com/DevCenter/setuptools
+WWW: https://pypi.python.org/pypi/setuptools
Modified: trunk/devel/py-setuptools/pkg-plist
===================================================================
--- trunk/devel/py-setuptools/pkg-plist 2014-04-12 16:46:17 UTC (rev 16169)
+++ trunk/devel/py-setuptools/pkg-plist 2014-04-12 18:04:26 UTC (rev 16170)
@@ -1,17 +1,4 @@
- at comment $FreeBSD$
-bin/easy_install
-bin/easy_install-%%PYVER%%
-%%PYTHON_SITELIBDIR%%/setuptools.pth
- at unexec if cmp -s %B/easy-install.pth %B/easy-install.pth.dist; then rm %B/easy-install.pth; fi
+ at echo "lah %%EASYINSTALL_PTH%%"
+ at unexec if cmp -s %%EASYINSTALL_PTH%% %%EASYINSTALL_PTH%%.dist; then rm -f %%EASYINSTALL_PTH%%; fi
%%PYTHON_SITELIBDIR%%/easy-install.pth.dist
- at exec if [ ! -f %B/easy-install.pth ]; then cp %B/%f %B/easy-install.pth; fi
-%%PYTHON_SITELIBDIR%%/site.py
-%%PYTHON_SITELIBDIR%%/site.pyc
-%%PYTHON_SITELIBDIR%%/site.pyo
-%%PYTHON_SITELIBDIR%%/setuptools-%%VERSION%%-py%%PYVER%%.egg
-%%PORTDOCS%%%%DOCSDIR%%/EasyInstall.txt
-%%PORTDOCS%%%%DOCSDIR%%/README.txt
-%%PORTDOCS%%%%DOCSDIR%%/api_tests.txt
-%%PORTDOCS%%%%DOCSDIR%%/pkg_resources.txt
-%%PORTDOCS%%%%DOCSDIR%%/setuptools.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at exec if [ ! -f "%%EASYINSTALL_PTH%%" ]; then cp -p %%EASYINSTALL_PTH%%.dist %%EASYINSTALL_PTH%%; fi
More information about the Midnightbsd-cvs
mailing list