opnsense-ports/lang/python-tools/Makefile
Franco Fichtner cce23da8e4 lang/python27: switch to 2.7.10
We merge this ahead of FreeBSD, mostly to make use of the builtin
fixes for LibreSSL builds.  Many thanks to Bernard Spil for his
work on this!!!

Taken from: https://reviews.freebsd.org/D2637
2015-06-29 07:46:10 +02:00

62 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= python-tools
PORTVERSION= ${PYTHON_PORTVERSION}
CATEGORIES= lang python devel
MASTER_SITES= PYTHON/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 \
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} < 3200
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>