Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2017 15:29:45 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432153 - head/lang/python
Message-ID:  <201701221529.v0MFTjlo086466@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Jan 22 15:29:45 2017
New Revision: 432153
URL: https://svnweb.freebsd.org/changeset/ports/432153

Log:
  Simplify Makefile
  
  - Simplify RUN_DEPENDS
  - Use bsd.port.mk instead of bsd.port.pre.mk + bsd.port.post.mk

Modified:
  head/lang/python/Makefile

Modified: head/lang/python/Makefile
==============================================================================
--- head/lang/python/Makefile	Sun Jan 22 15:22:17 2017	(r432152)
+++ head/lang/python/Makefile	Sun Jan 22 15:29:45 2017	(r432153)
@@ -13,6 +13,8 @@ EXTRACT_ONLY=	# empty
 MAINTAINER=	python@FreeBSD.org
 COMMENT=	"meta-port" for the default version of Python interpreter
 
+RUN_DEPENDS=	python${PYTHON_MAJOR_VER}:lang/python${PYTHON_MAJOR_VER}
+
 USES=		python:run
 NO_ARCH=	yes
 NO_BUILD=	yes
@@ -23,14 +25,6 @@ PLIST_FILES=	bin/2to3 \
 		bin/python \
 		bin/python-config
 
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_MAJOR_VER} == 2
-RUN_DEPENDS+=	python2:lang/python2
-.elif ${PYTHON_MAJOR_VER} == 3
-RUN_DEPENDS+=	python3:lang/python3
-.endif
-
 do-install:
 	${LN} -sf 2to3-${PYTHON_MAJOR_VER} ${STAGEDIR}${PREFIX}/bin/2to3
 .for file in idle pydoc python
@@ -71,4 +65,4 @@ upgrade-site-packages:
 		fi; \
 	fi; \
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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