Files
ports/lang/python-tools/Makefile
T
Po-Chuan Hsieh bb99743fd9 lang/python-tools: Fix build with Python 3.12+
- While I'm here:
  - Reorder knobs
  - Sort USE_PYTHON
  - Remove WRKSRC_SUBDIR
  - Cosmetic change

These scripts have been removed from python 3.12+ repository [1][2][3].

===>  Patching for py312-python-tools-3.12.13_1
find: byteyears.py: No such file or directory
find: copytime.py: No such file or directory
find: crlf.py: No such file or directory
find: dutree.py: No such file or directory
find: lfcr.py: No such file or directory
find: ptags.py: No such file or directory
find: untabify.py: No such file or directory
*** Error code 1

Reference:	https://pkg-status.freebsd.org/beefy23/data/150amd64-default/b669d2e5ce77/logs/py312-python-tools-3.12.13_1.log
		https://github.com/python/cpython/commit/6cbbc26a73879f17df8896ea4feb40c61b085775 [1]
		https://github.com/python/cpython/commit/4ed00be98f5b7dbac3ab71159dda907c931de486 [2]
		https://github.com/python/cpython/commit/0895c2a066c64c84cab0821886dfa66efc1bdc2f [3]
2026-07-01 06:13:36 +08:00

45 lines
1.1 KiB
Makefile

PORTNAME= python-tools
DISTVERSION= ${PYTHON_DISTVERSION}
PORTREVISION= 1
CATEGORIES= lang python devel
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Python-${DISTVERSION}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= Supplementary tools for the Python language
LICENSE= PSFL
USES= python shebangfix tar:xz
USE_PYTHON= concurrent flavors
DISTINFO_FILE= ${.CURDIR}/../python${PYTHON_SUFFIX}/distinfo
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= ${PYLIB_FILES:C|^|bin/|} ${SCRIPT_FILES:C|^|bin/|}
SHEBANG_FILES= ${PYLIB_FILES:C|.*|Lib/&.py|} ${SCRIPT_FILES:C|.*|Tools/scripts/&.py|}
PYLIB_FILES= tabnanny timeit
PORTSCOUT= ignore:1
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 31200
SCRIPT_FILES= byteyears copytime crlf dutree lfcr ptags untabify
.endif
do-install:
.for fname in ${PYLIB_FILES}
${INSTALL_SCRIPT} ${WRKSRC}/Lib/${fname}.py ${STAGEDIR}${PREFIX}/bin/${fname}
.endfor
.for fname in ${SCRIPT_FILES}
${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/${fname}.py ${STAGEDIR}${PREFIX}/bin/${fname}
.endfor
.include <bsd.port.post.mk>