freebsd-ports/lang/python-tools/Makefile
Mathieu Arnold 6146cf6b51 Convert to USE_PYTHON=concurrent instead of doing it manually, and add
flavors.

While there, cleanup a bit.

Sponsored by:	Absolight
2017-12-18 13:10:14 +00:00

49 lines
1.1 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
USE_PYTHON= flavors concurrent
NO_BUILD= yes
DIST_SUBDIR= python
DISTINFO_FILE= ${.CURDIR}/../python${PYTHON_SUFFIX}/distinfo
WRKSRC_SUBDIR= Tools/scripts
SCRIPT_FILES= byteyears checkpyc copytime crlf dutree \
lfcr ptags untabify
PYLIB_FILES= tabnanny timeit
PLIST_FILES= ${SCRIPT_FILES:C|^|bin/|} ${PYLIB_FILES:C|^|bin/|}
SHEBANG_FILES= ${SCRIPT_FILES:C|$|.py|} \
${PYLIB_FILES:C|.*|../../Lib/&.py|}
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3200
SCRIPT_FILES+= logmerge
.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>