Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2020 13:33:04 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r522488 - in head/lang: python2 python3
Message-ID:  <202001091333.009DX4Sm002204@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001091333.009DX4Sm002204>