<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5e2a924cb8cc62f0573d92caf8c184cd68b1448e">https://github.com/macports/macports-ports/commit/5e2a924cb8cc62f0573d92caf8c184cd68b1448e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5e2a924cb8cc62f0573d92caf8c184cd68b1448e
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Fri Feb 18 15:41:26 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> xz-bootstrap: cleanup install path
</span>---
archivers/xz/Portfile | 44 +++++++++++++++++++++++++++++---------------
archivers/zlib/Portfile | 2 +-
devel/libunwind/Portfile | 2 +-
lang/libcxx/Portfile | 2 +-
lang/llvm-3.7/Portfile | 2 +-
lang/python27/Portfile | 2 +-
6 files changed, 34 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/xz/Portfile b/archivers/xz/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4fb3c75762f..bc7e7092916 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/xz/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/xz/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,8 +26,6 @@ homepage https://tukaani.org/xz/
</span> master_sites sourceforge:project/lzmautils
use_bzip2 yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set my_prefix ${prefix}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> if {${subport} eq ${name}} {
revision 0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,20 +35,30 @@ if {${subport} eq ${name}} {
</span> port:libiconv \
port:gettext-runtime
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-libiconv-prefix=${my_prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-libintl-prefix=${my_prefix}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # document that we always need legacy symlinks now that "lzmautils" refers here
configure.args-append --enable-lzma-links
}
# This port is used by clang-3.4 to bootstrap libcxx
subport ${name}-bootstrap {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_prefix ${prefix}/libexec/libcxx-bootstrap
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args --prefix=${my_prefix}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.ldflags-prepend -L${my_prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Avoid macports-clang dep (doesn't use C++ anyway)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxx_stdlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.whitelist clang llvm-gcc-4.2 gcc-4.2 apple-gcc-4.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # sterilize MacPorts build environment; we want nothing picked up from MP prefix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.library_path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ccache no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.distcc no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # sterilize PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append PATH=/usr/bin:/bin:/usr/sbin:/sbin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append PATH=/usr/bin:/bin:/usr/sbin:/sbin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ prefix ${prefix}/libexec/xz-bootstrap
</span> configure.args --disable-doc \
--disable-lzma-links \
--disable-lzmadec \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,13 +69,19 @@ subport ${name}-bootstrap {
</span> --disable-xzdec \
--without-libiconv-prefix \
--without-libintl-prefix
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Don't install manpages
destroot.args dist_man_MANS=
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Avoid macports-clang dep (doesn't use C++ anyway)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cxx_stdlib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.whitelist clang llvm-gcc-4.2 gcc-4.2 apple-gcc-4.2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To use this bootstrap version of xz instead of the default xz, add the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+following lines to the Portfile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_extract port:xz-bootstrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.suffix .tar.xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.cmd \$\{prefix\}/libexec/${subport}/bin/xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span> if {${os.platform} eq "darwin" && ${os.major} < 11 && ${cxx_stdlib} eq "libc++"} {
# This port is in the dependency chain for clang 3.7 and later
clang_dependency.extra_versions 3.7
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -76,7 +90,7 @@ if {${os.platform} eq "darwin" && ${os.major} < 11 && ${cxx_stdlib} eq "libc++"}
</span> patchfiles c89.patch
# the internal "check.h" header conflicts with port check's <check.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cppflags -I${worksrcpath}/src/liblzma/check -I${my_prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags -I${worksrcpath}/src/liblzma/check -I${prefix}/include
</span>
livecheck.url ${homepage}
livecheck.regex xz-(\[0-9.a-z\]*)${extract.suffix}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/zlib/Portfile b/archivers/zlib/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ed73132a4f1..d6661d105d9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/zlib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/zlib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +25,7 @@ if {${os.platform} eq "darwin" && ${os.major} < 11 && ${configure.cxx_stdlib} eq
</span> depends_extract port:xz-bootstrap
depends_skip_archcheck-append xz-bootstrap
extract.suffix .tar.xz
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.cmd ${prefix}/libexec/libcxx-bootstrap/bin/xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.cmd ${prefix}/libexec/xz-bootstrap/bin/xz
</span> # Doesn't actually use C++, and having the stdlib set to libc++
# on 10.6 causes a macports-clang compiler to be selected.
configure.cxx_stdlib
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libunwind/Portfile b/devel/libunwind/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a24f8537cd2..a8a505f563e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libunwind/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libunwind/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,7 +57,7 @@ if {${subport} eq "${name}-headers"} {
</span> depends_extract port:xz-bootstrap
depends_skip_archcheck-append xz-bootstrap
extract.suffix .tar.xz
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.cmd ${prefix}/libexec/libcxx-bootstrap/bin/xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.cmd ${prefix}/libexec/xz-bootstrap/bin/xz
</span> }
supported_archs noarch
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/libcxx/Portfile b/lang/libcxx/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6ad41110c9b..5b857f4e2c1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/libcxx/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/libcxx/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,7 +30,7 @@ if {${os.platform} eq "darwin" && ${os.major} < 11 && ${configure.cxx_stdlib} eq
</span> depends_extract port:xz-bootstrap
depends_skip_archcheck-append xz-bootstrap
extract.suffix .tar.xz
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.cmd ${prefix}/libexec/libcxx-bootstrap/bin/xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.cmd ${prefix}/libexec/xz-bootstrap/bin/xz
</span> # And having the stdlib set to libc++ on 10.6 causes a
# macports-clang compiler to be selected.
configure.cxx_stdlib
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.7/Portfile b/lang/llvm-3.7/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4efa7040f4b..22d325160ea 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,7 +102,7 @@ if {${os.platform} eq "darwin" && ${os.major} < 11 && ${cxx_stdlib} eq "libc++"
</span> depends_extract port:xz-bootstrap
depends_skip_archcheck-append xz-bootstrap
extract.suffix .tar.xz
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.cmd ${prefix}/libexec/libcxx-bootstrap/bin/xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.cmd ${prefix}/libexec/xz-bootstrap/bin/xz
</span> } else {
use_xz yes
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python27/Portfile b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a6d6dedfa75..857386f154f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,7 +90,7 @@ subport ${name}-bootstrap {
</span> depends_extract port:xz-bootstrap
depends_skip_archcheck-append xz-bootstrap
extract.suffix .tar.xz
<span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.cmd ${prefix}/bin/xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.cmd ${stdprefix}/libexec/xz-bootstrap/bin/xz
</span> if {${os.platform} eq "darwin" && ${os.major} >= 18} {
# libstdc++ can't be used on Mojave and later
known_fail yes
</pre><pre style='margin:0'>
</pre>