Date: Fri, 21 Dec 2012 15:38:06 +0000 (UTC) From: Dmitry Sivachenko <demon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309357 - head/Mk Message-ID: <201212211538.qBLFc6Ux087795@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: demon Date: Fri Dec 21 15:38:06 2012 New Revision: 309357 URL: http://svnweb.freebsd.org/changeset/ports/309357 Log: Introduce PYTHON_MAJOR_VER variable. Discussed on python@ a while ago. Modified: head/Mk/bsd.python.mk Modified: head/Mk/bsd.python.mk ============================================================================== --- head/Mk/bsd.python.mk Fri Dec 21 14:35:53 2012 (r309356) +++ head/Mk/bsd.python.mk Fri Dec 21 15:38:06 2012 (r309357) @@ -87,6 +87,9 @@ Python_Include_MAINTAINER= python@FreeBS # in case you want to use an older version as a default. # default: python2.7 # +# PYTHON_MAJOR_VER - Python version major number. 2 for python-2.x, +# 3 for python-3.x and so on. +# # PYTHON_WRKSRC - The ${WRKSRC} for your python version. Needed for # extensions like Tkinter, py-gdbm and py-expat, which # are built from sources contained in the Python @@ -424,6 +427,8 @@ check-makevars:: @${FALSE} .endif +PYTHON_MAJOR_VER= ${PYTHON_VER:R} + PYTHON_MASTER_SITES= ${MASTER_SITE_PYTHON} PYTHON_MASTER_SITE_SUBDIR= ftp/python/${PYTHON_PORTVERSION:C/rc[0-9]//} PYTHON_DISTFILE= Python-${PYTHON_PORTVERSION:S/.rc/rc/}${EXTRACT_SUFX}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212211538.qBLFc6Ux087795>