svn commit: r309357 - head/Mk
Dmitry Sivachenko
demon at FreeBSD.org
Fri Dec 21 15:38:07 UTC 2012
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 at 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}
More information about the svn-ports-head
mailing list