[Midnightbsd-cvs] mports [22388] trunk/devel: refactor python setuptools
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Mar 18 12:12:06 EDT 2017
Revision: 22388
http://svnweb.midnightbsd.org/mports/?rev=22388
Author: laffer1
Date: 2017-03-18 12:12:06 -0400 (Sat, 18 Mar 2017)
Log Message:
-----------
refactor python setuptools
Modified Paths:
--------------
trunk/devel/Makefile
trunk/devel/py27-setuptools/Makefile
trunk/devel/py33-setuptools/Makefile
Added Paths:
-----------
trunk/devel/py27-setuptools/
trunk/devel/py33-setuptools/
Removed Paths:
-------------
trunk/devel/py-setuptools/
trunk/devel/py-setuptools27/
trunk/devel/py-setuptools33/
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2017-03-18 15:49:41 UTC (rev 22387)
+++ trunk/devel/Makefile 2017-03-18 16:12:06 UTC (rev 22388)
@@ -454,9 +454,6 @@
SUBDIR += py-pyasn1
SUBDIR += py-pycparser
SUBDIR += py-pytz
-SUBDIR += py-setuptools
-SUBDIR += py-setuptools27
-SUBDIR += py-setuptools33
SUBDIR += py-simplejson
SUBDIR += py-six
SUBDIR += py-subversion
@@ -464,10 +461,12 @@
SUBDIR += py-virtualenv
SUBDIR += py-xdg
SUBDIR += py-yaml
+SUBDIR += py27-setuptools
SUBDIR += py3-dbus
SUBDIR += py3-gobject3
SUBDIR += py3-libpeas
SUBDIR += py3-xdg
+SUBDIR += py33-setuptools
SUBDIR += pydbus-common
SUBDIR += pygobject3-common
SUBDIR += qca
Modified: trunk/devel/py27-setuptools/Makefile
===================================================================
--- trunk/devel/py-setuptools27/Makefile 2017-03-07 23:44:13 UTC (rev 22374)
+++ trunk/devel/py27-setuptools/Makefile 2017-03-18 16:12:06 UTC (rev 22388)
@@ -1,9 +1,47 @@
-# $MidnightBSD$
+# $FreeBSD: head/devel/py27-setuptools/Makefile 436350 2017-03-17 20:05:35Z antoine $
-PKGNAMESUFFIX= ${PYTHON_SUFFIX}
+PORTNAME= setuptools
+PORTVERSION= 32.1.0
+PORTREVISION= 1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DIST_SUBDIR= python
-PYTHON_VERSION= python2.7
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Python packages installer
-MASTERDIR= ${.CURDIR}/../py-setuptools
+LICENSE= python
-.include "${MASTERDIR}/Makefile"
+NO_ARCH= yes
+USES?= python:2.7
+USE_PYTHON= autoplist concurrent distutils
+
+PYDISTUTILS_SETUP= ${PYSETUP}
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}distribute-[0-9]*
+MAKE_ENV+= SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
+
+PLIST_FILES= "@sample %%PYTHON_SITELIBDIR%%/easy-install.pth"
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}
+SUB_FILES+= pkg-message
+SUB_LIST+= PYTHON_VER=${PYTHON_VER}
+.endif
+
+# These create dependency loops in redports/poudriere, because setuptools
+# is currently an explicit BUILD & RUN dependency in Uses/python.mk.
+#TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
+#.if ${PYTHON_REL} < 3300
+#TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
+#.endif
+
+post-install:
+ ${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/easy-install.pth
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.post.mk>
Modified: trunk/devel/py33-setuptools/Makefile
===================================================================
--- trunk/devel/py-setuptools33/Makefile 2017-03-07 23:44:13 UTC (rev 22374)
+++ trunk/devel/py33-setuptools/Makefile 2017-03-18 16:12:06 UTC (rev 22388)
@@ -1,9 +1,9 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD: head/devel/py33-setuptools/Makefile 436290 2017-03-16 19:23:48Z antoine $
# $MidnightBSD$
-PKGNAMESUFFIX= ${PYTHON_SUFFIX}
+MASTERDIR= ${.CURDIR}/../py27-setuptools
-PYTHON_VERSION= python3.3
+USES= python:3.3
-MASTERDIR= ${.CURDIR}/../py-setuptools
-
.include "${MASTERDIR}/Makefile"
More information about the Midnightbsd-cvs
mailing list