From owner-svn-ports-head@freebsd.org Sun Jan 22 15:29:47 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02EC0CBCCA6; Sun, 22 Jan 2017 15:29:47 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C66A9FBE; Sun, 22 Jan 2017 15:29:46 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0MFTjMq086467; Sun, 22 Jan 2017 15:29:45 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0MFTjlo086466; Sun, 22 Jan 2017 15:29:45 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201701221529.v0MFTjlo086466@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 22 Jan 2017 15:29:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432153 - head/lang/python X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 15:29:47 -0000 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 - -.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 +.include