svn commit: r522488 - in head/lang: python2 python3

Mathieu Arnold mat at FreeBSD.org
Thu Jan 9 13:40:14 UTC 2020


Author: mat
Date: Thu Jan  9 13:33:04 2020
New Revision: 522488
URL: https://svnweb.freebsd.org/changeset/ports/522488

Log:
  Simplify the lang/python{2,3} metaports.
  
  Reviewed by:	antoine

Modified:
  head/lang/python2/Makefile   (contents, props changed)
  head/lang/python3/Makefile   (contents, props changed)

Modified: head/lang/python2/Makefile
==============================================================================
--- head/lang/python2/Makefile	Thu Jan  9 13:33:01 2020	(r522487)
+++ head/lang/python2/Makefile	Thu Jan  9 13:33:04 2020	(r522488)
@@ -14,11 +14,10 @@ COMMENT=	The "meta-port" for version 2 of the Python i
 DEPRECATED=	EOLed upstream
 EXPIRATION_DATE=	2020-12-31
 
-USES=		python:run
+USES=		python:2.7,run
 
 NO_ARCH=	yes
 NO_BUILD=	yes
-PYTHON_VERSION=	python${PYTHON2_DEFAULT}
 
 PLIST_FILES=	bin/2to3-${PYTHON_MAJOR_VER} \
 		bin/idle${PYTHON_MAJOR_VER} \
@@ -28,8 +27,6 @@ PLIST_FILES=	bin/2to3-${PYTHON_MAJOR_VER} \
 		libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
 
 .include <bsd.port.pre.mk>
-
-RUN_DEPENDS+=	${PYTHON_CMD}:${PYTHON_PORTSDIR}
 
 do-install:
 .for file in idle pydoc python

Modified: head/lang/python3/Makefile
==============================================================================
--- head/lang/python3/Makefile	Thu Jan  9 13:33:01 2020	(r522487)
+++ head/lang/python3/Makefile	Thu Jan  9 13:33:04 2020	(r522488)
@@ -11,11 +11,10 @@ EXTRACT_ONLY=
 MAINTAINER=	python at FreeBSD.org
 COMMENT=	The "meta-port" for version 3 of the Python interpreter
 
-USES=		python:run
+USES=		python:3.5+,run
 
 NO_ARCH=	yes
 NO_BUILD=	yes
-PYTHON_VERSION=	python${PYTHON3_DEFAULT}
 
 PLIST_FILES=	bin/2to3-${PYTHON_MAJOR_VER} \
 		bin/idle${PYTHON_MAJOR_VER} \
@@ -25,8 +24,6 @@ PLIST_FILES=	bin/2to3-${PYTHON_MAJOR_VER} \
 		libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
 
 .include <bsd.port.pre.mk>
-
-RUN_DEPENDS+=	${PYTHON_CMD}:${PYTHON_PORTSDIR}
 
 do-install:
 	${LN} -sf python${PYTHON_VER} \


More information about the svn-ports-all mailing list