mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
lang/python-tools: fix for python 3.9 and later
While here, add NO_ARCH Approved by: portmgr blanket
This commit is contained in:
parent
9167af9a47
commit
c3b8d9a080
1 changed files with 9 additions and 2 deletions
|
@ -16,12 +16,13 @@ PORTSCOUT= ignore:1
|
|||
USES= python:3.6+ shebangfix tar:xz
|
||||
USE_PYTHON= flavors concurrent
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
DIST_SUBDIR= python
|
||||
DISTINFO_FILE= ${.CURDIR}/../python${PYTHON_SUFFIX}/distinfo
|
||||
WRKSRC_SUBDIR= Tools/scripts
|
||||
|
||||
SCRIPT_FILES= byteyears checkpyc copytime crlf dutree \
|
||||
SCRIPT_FILES= byteyears copytime crlf dutree \
|
||||
lfcr ptags untabify
|
||||
PYLIB_FILES= tabnanny timeit
|
||||
PLIST_FILES= ${SCRIPT_FILES:C|^|bin/|} ${PYLIB_FILES:C|^|bin/|}
|
||||
|
@ -29,6 +30,12 @@ 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} < 30900
|
||||
SCRIPT_FILES+= checkpyc
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.for fname in ${SCRIPT_FILES}
|
||||
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${fname}.py \
|
||||
|
@ -39,4 +46,4 @@ do-install:
|
|||
${STAGEDIR}${PREFIX}/bin/${fname}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue