From 120b0d35293d8e00d39d7ad2ad7d574983111671 Mon Sep 17 00:00:00 2001 From: mva Date: Sat, 17 Aug 2013 19:10:59 +0000 Subject: - Move the symlink magic for the default python version into lang/python and lang/python2 and lang/python3. This change brings us closer to the goal of making Python ports usable with different Python versions at the same time. - Add a new lang/python2 port to handle the symlinks for bin/python2, bin/idle2, bin/pydoc2 and so on. - Add a new lang/python3 port to handle the symlinks for bin/python3, bin/idle3, bin/pydoc3 and so on. - Bump the PORTREVISION on all lang/python* ports. --- lang/python2/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ lang/python2/pkg-descr | 4 ++++ 2 files changed, 56 insertions(+) create mode 100644 lang/python2/Makefile create mode 100644 lang/python2/pkg-descr (limited to 'lang/python2') diff --git a/lang/python2/Makefile b/lang/python2/Makefile new file mode 100644 index 000000000000..99b47276cc13 --- /dev/null +++ b/lang/python2/Makefile @@ -0,0 +1,52 @@ +# $FreeBSD$ + +PORTNAME= python2 +PORTVERSION= ${PYTHON_MAJOR_VER} +CATEGORIES= lang python ipv6 +MASTER_SITES= # empty +DISTFILES= # empty +EXTRACT_ONLY= # empty + +MAINTAINER= python@FreeBSD.org +COMMENT= The "meta-port" for version 2 of the Python interpreter + +USE_PYTHON_RUN= yes +PYTHON_VERSION= ${PYTHON_DEFAULT_VERSION} +NO_BUILD= yes + +PLIST_FILES= bin/2to3-${PYTHON_MAJOR_VER} \ + bin/idle${PYTHON_MAJOR_VER} \ + bin/pydoc${PYTHON_MAJOR_VER} \ + bin/python${PYTHON_MAJOR_VER} \ + bin/python${PYTHON_MAJOR_VER}-config \ + bin/python-shared${PYTHON_MAJOR_VER} \ + bin/python-shared${PYTHON_MAJOR_VER}-config \ + bin/smtpd${PYTHON_MAJOR_VER}.py + +.include + +do-install: +.for file in idle pydoc python python-shared + ${LN} -sf ${PREFIX}/bin/${file}${PYTHON_VER} ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER} +.endfor + ${LN} -sf ${PREFIX}/bin/2to3-${PYTHON_VER} ${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER} + ${LN} -sf ${PREFIX}/bin/smtpd${PYTHON_VER}.py ${PREFIX}/bin/smtpd${PYTHON_MAJOR_VER}.py + ${LN} -sf ${PREFIX}/bin/python${PYTHON_VER}-config ${PREFIX}/bin/python${PYTHON_MAJOR_VER}-config + ${LN} -sf ${PREFIX}/bin/python-shared${PYTHON_VER}-config ${PREFIX}/bin/python-shared${PYTHON_MAJOR_VER}-config + +# Major upgrade support +PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade + +.if defined(USE_PORTMASTER) +PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster +.endif + +.if defined(WITH_PKGNG) +PKG_LIST= ${PKG_BIN} query -a '%n-%v' +PKG_LIST_FILES= ${PKG_INFO} -l +.else +PKG_LIST= ${PKG_INFO} -Ea +PKG_LIST_FILES= ${PKG_INFO} -L +.endif + +.include diff --git a/lang/python2/pkg-descr b/lang/python2/pkg-descr new file mode 100644 index 000000000000..f595c479c814 --- /dev/null +++ b/lang/python2/pkg-descr @@ -0,0 +1,4 @@ +Python is an interpreted object-oriented programming language, and is +often compared to Tcl, Perl or Scheme. + +WWW: http://www.python.org/ -- cgit