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@
This commit is contained in:
Marcus von Appen 2014-08-18 16:44:14 +00:00
parent 69f82727cf
commit 3d62b77032
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365326
3 changed files with 66 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,2 @@
A selection of supplementary tools for the Python language, which ship with
the Python default distribution.