Date: Mon, 18 Aug 2014 16:44:14 +0000 (UTC) From: Marcus von Appen <mva@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r365326 - in head/lang: . python-tools Message-ID: <201408181644.s7IGiEiL072498@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mva Date: Mon Aug 18 16:44:14 2014 New Revision: 365326 URL: http://svnweb.freebsd.org/changeset/ports/365326 QAT: https://qat.redports.org/buildarchive/r365326/ Log: A selection of supplementary tools for the Python language, which ship with the Python default distribution. Phabric: D561 Reviewed by: antoine, koobs With hat: python@ Added: head/lang/python-tools/ head/lang/python-tools/Makefile (contents, props changed) head/lang/python-tools/pkg-descr (contents, props changed) Modified: head/lang/Makefile Modified: head/lang/Makefile ============================================================================== --- head/lang/Makefile Mon Aug 18 16:43:24 2014 (r365325) +++ head/lang/Makefile Mon Aug 18 16:44:14 2014 (r365326) @@ -259,6 +259,7 @@ SUBDIR += python-doc-pdf-letter SUBDIR += python-doc-text SUBDIR += python-mode.el + SUBDIR += python-tools SUBDIR += python2 SUBDIR += python27 SUBDIR += python3 Added: head/lang/python-tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/python-tools/Makefile Mon Aug 18 16:44:14 2014 (r365326) @@ -0,0 +1,63 @@ +# $FreeBSD$ + +PORTNAME= python-tools +PORTVERSION= ${PYTHON_PORTVERSION} +CATEGORIES= lang python devel +MASTER_SITES= PYTHON +MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= Python-${PORTVERSION} + +MAINTAINER= python@FreeBSD.org +COMMENT= Supplementary tools for the Python language + +LICENSE= PSFL + +PORTSCOUT= ignore:1 + +USES= python shebangfix tar:xz uniquefiles +NO_BUILD= yes + +DIST_SUBDIR= python +DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo +WRKSRC= ${WRKDIR}/Python-${PORTVERSION}/Tools/scripts + +SCRIPT_FILES= byteyears checkpyc copytime crlf dutree \ + ftpmirror lfcr ptags untabify +PYLIB_FILES= tabnanny timeit +PLIST_FILES= ${SCRIPT_FILES:C/^.*/bin\/&/g} ${PYLIB_FILES:C/^.*/bin\/&/g} + +SHEBANG_LANG= python +SHEBANG_FILES= ${SCRIPT_FILES:C/^.*/&\.py/g} \ + ../../Lib/tabnanny.py ../../Lib/timeit.py +python_CMD= ${PYTHON_CMD} + +UNIQUE_SUFFIX= -${PYTHON_VER} +UNIQUE_SUFFIX_FILES= ${SCRIPT_FILES:C/^.*/bin\/&/g} \ + ${PYLIB_FILES:C/^.*/bin\/&/g} + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 320 +SCRIPT_FILES+= logmerge +python_OLD_CMD= /usr/bin/env python +.else +# Python 3+ uses python3 as shebang line, python2 just python +python_OLD_CMD= /usr/bin/env python3 +.endif + +.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} +UNIQUE_DEFAULT_LINKS= yes +.endif + +do-install: +.for fname in ${SCRIPT_FILES} + ${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${fname}.py \ + ${STAGEDIR}${PREFIX}/bin/${fname} +.endfor +.for fname in ${PYLIB_FILES} + ${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/../../Lib/${fname}.py \ + ${STAGEDIR}${PREFIX}/bin/${fname} +.endfor + +.include <bsd.port.post.mk> Added: head/lang/python-tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/python-tools/pkg-descr Mon Aug 18 16:44:14 2014 (r365326) @@ -0,0 +1,2 @@ +A selection of supplementary tools for the Python language, which ship with +the Python default distribution.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408181644.s7IGiEiL072498>