summaryrefslogtreecommitdiff
path: root/lang/python33
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-12-29 12:03:09 +0000
committerJohn Marino <marino@FreeBSD.org>2015-12-29 12:03:09 +0000
commit6256117d69833c86052b33bbc7252a244d3413a7 (patch)
tree442cd87d41f98356b818e916797bd629171b005c /lang/python33
parentFind Postfix also if installed with INST_BASE option. (diff)
lang/python27(3*), Mk/Uses/python.mk: remove make spawn
There are some inefficiencies in python.mk that significantly slow down full tree scanning. The use of bmake to obtain the current version of a specific python is responsible for the majority of the slow done. This commit splits out the PYTHON_PORTVERSION definition (which is the same as the lang/python* PORTVERSION) into separate files. With this change, python.mk can simple include the makefile fragment instead of spawning a new instance of make. Different Revision: https://reviews.freebsd.org/D4660 Approved by: antoine (python), mva (python)
Notes
Notes: svn path=/head/; revision=404739
Diffstat (limited to 'lang/python33')
-rw-r--r--lang/python33/Makefile3
-rw-r--r--lang/python33/Makefile.version4
2 files changed, 6 insertions, 1 deletions
diff --git a/lang/python33/Makefile b/lang/python33/Makefile
index 813cff0387b7..e49c1f9d9b1d 100644
--- a/lang/python33/Makefile
+++ b/lang/python33/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= python33
-PORTVERSION= 3.3.6
+PORTVERSION= ${PYTHON_PORTVERSION}
PORTREVISION= 2
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION}
@@ -73,6 +73,7 @@ THREADS_LDFLAGS= -lpthread
TSC_CONFIGURE_WITH= tsc
+.include "${.CURDIR}/Makefile.version"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYMALLOC}
diff --git a/lang/python33/Makefile.version b/lang/python33/Makefile.version
new file mode 100644
index 000000000000..0f10704423bd
--- /dev/null
+++ b/lang/python33/Makefile.version
@@ -0,0 +1,4 @@
+# Mk/Uses/python.mk includes this file, don't remove it!
+# $FreeBSD$
+
+PYTHON_PORTVERSION= 3.3.6