Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177991779
D62027.1795718248.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
D62027.1795718248.diff
View Options
diff --git a/print/texlive-texmf-source/Makefile b/print/texlive-texmf-source/Makefile
--- a/print/texlive-texmf-source/Makefile
+++ b/print/texlive-texmf-source/Makefile
@@ -15,6 +15,8 @@
CPE_VENDOR= tug
USE_PERL5= build
+python_CMD= ${SETENV} python3
+
CONFLICTS_INSTALL= texlive-base-202[0-9]*
NO_BUILD= yes
@@ -28,6 +30,10 @@
${TAR} -Jxf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
-C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner
+ ${FIND} ${STAGEDIR}${PREFIX}/share/texmf-dist -type f -perm +111 \
+ -exec ${GREP} -l --null '^#!/usr/bin/env python3' {} + | \
+ ${XARGS} -0 ${REINPLACE_CMD} -i '' \
+ -e '1s|^#!/usr/bin/env python3|#!${PYTHON_CMD}|'
${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -type d -empty | ${SORT} -r | \
diff --git a/print/texlive-texmf/Makefile b/print/texlive-texmf/Makefile
--- a/print/texlive-texmf/Makefile
+++ b/print/texlive-texmf/Makefile
@@ -13,10 +13,12 @@
WWW= https://tug.org/texlive/
# Reduce DEPENDS temporarily
-USES= cpe tar:xz tex
+USES= cpe python:env shebangfix tar:xz tex
CPE_VENDOR= tug
USE_TEX= texhash tlmgr:run
+python_CMD= ${SETENV} python3
+
NO_ARCH= yes
NO_BUILD= yes
@@ -29,10 +31,10 @@
${TAR} -Jxf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
-C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner
- @${REINPLACE_CMD} -i '' -E -e '1s|/bin/python3|${python_CMD}|' \
- ${STAGEDIR}${PREFIX}/share/texmf-dist/tex/latex/prettytok/prettytok-decode-8bit.py
- ${REINPLACE_CMD} -i '' -e '1s|/usr/bin/perl|${perl_CMD}|' \
- ${STAGEDIR}${PREFIX}/share/texmf-dist/scripts/eolang/eolang.pl
+ ${FIND} ${STAGEDIR}${PREFIX}/share/texmf-dist -type f -perm +111 \
+ -exec ${GREP} -l --null '^#!/usr/bin/env python3' {} + | \
+ ${XARGS} -0 ${REINPLACE_CMD} -i '' \
+ -e '1s|^#!/usr/bin/env python3|#!${PYTHON_CMD}|'
# https://ctan.org/ctan-ann/id/mailman.9290.1717583628.3764.ctan-ann@ctan.org
${REINPLACE_CMD} -e 's|IfInstanceExistTF|IfInstanceExistsTF|g' \
${STAGEDIR}${PREFIX}/share/texmf-dist/tex/latex/xfrac/xfrac.sty
@@ -126,12 +128,11 @@
${WRKSRC}/texmf-dist/tex/generic/config/language.dat \
${WRKSRC}/texmf-dist/tex/generic/config/language.def
${FIND} ${WRKSRC} -type f | \
- ${XARGS} ${REINPLACE_CMD} -i '' -E -e '1s|/bin/bash|${bash_CMD}|; \
- 1s|/usr/bin/perl|${perl_CMD}|; \
- 1s|/usr/bin/env python[23]?|${python_CMD}|; \
- 1s|/usr/bin/python|${python_CMD}|; \
- 1s|/bin/python3|${python_CMD}|; \
- 1s|/usr/bin/luatex|${LOCALBASE}/bin/luatex|'
+ ${XARGS} ${REINPLACE_CMD} -i '' -E -e '1s|^#![[:space:]]*(/usr)?/bin/bash|#!${bash_CMD}|; \
+ 1s|^#![[:space:]]*/usr/bin/perl|#!${perl_CMD}|; \
+ 1s|^#![[:space:]]*/usr/bin/env python[23]?|#!${python_CMD}|; \
+ 1s|^#![[:space:]]*(/usr)?/bin/python[23]?|#!${python_CMD}|; \
+ 1s|^#![[:space:]]*/usr/bin/luatex|#!${LOCALBASE}/bin/luatex|'
_maintainer-dist: _maintainer-patch
${TAR} --options xz:compression-level=9 -Jcvf \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 6:37 PM (23 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42024573
Default Alt Text
D62027.1795718248.diff (3 KB)
Attached To
Mode
D62027: print/texlive-texmf*: Fix a longstanding shebang problem
Attached
Detach File
Event Timeline