# $FreeBSD: head/lang/python-tools/Makefile 399684 2015-10-19 14:50:52Z amdmi3 $ 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_FILES= ${SCRIPT_FILES:C/^.*/&\.py/g} \ ../../Lib/tabnanny.py ../../Lib/timeit.py UNIQUE_SUFFIX= -${PYTHON_VER} UNIQUE_SUFFIX_FILES= ${SCRIPT_FILES:C/^.*/bin\/&/g} \ ${PYLIB_FILES:C/^.*/bin\/&/g} .include .if ${PYTHON_REL} < 3200 SCRIPT_FILES+= logmerge .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