<pre style='margin:0'>
Dan Ports (drkp) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d88dd9adb251bf5f2629432ee54699a48901d759">https://github.com/macports/macports-ports/commit/d88dd9adb251bf5f2629432ee54699a48901d759</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d88dd9adb25 emacs, emacs-devel: allow build on powerpc
</span>d88dd9adb25 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d88dd9adb251bf5f2629432ee54699a48901d759
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sat Apr 6 02:34:24 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> emacs, emacs-devel: allow build on powerpc
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/69677
</span>---
editors/emacs/Portfile | 17 ++++++++++++++++-
editors/emacs/files/patch-allow-powerpc-devel.diff | 14 ++++++++++++++
editors/emacs/files/patch-allow-powerpc.diff | 16 ++++++++++++++++
3 files changed, 46 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/emacs/Portfile b/editors/emacs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 36ddc7132ff..f44d6bdc071 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/editors/emacs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/emacs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -66,6 +66,8 @@ depends_lib-append port:gmp \
</span> port:sqlite3 \
port:webp
<span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append *gcc-4.0 *gcc-4.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
delete ${destroot}${prefix}/bin/ctags
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -107,6 +109,9 @@ if {$subport eq $name || $subport eq "emacs-app"} {
</span> checksums rmd160 74592d7dba2f02b2d827a74b5a5aa5e2077fc73f \
sha256 2de8df5cab8ac697c69a1c46690772b0cf58fe7529f1d1999582c67d927d22e4 \
size 78508272
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-allow-powerpc.diff
</span> }
if {$subport eq "emacs-devel" || $subport eq "emacs-app-devel"} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -125,6 +130,9 @@ if {$subport eq "emacs-devel" || $subport eq "emacs-app-devel"} {
</span> sha256 b8e0ae5ecca0d2f908759dacd00503f2d4e44562443ce2ac6c5f335dc8960f52 \
size 49660683
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-allow-powerpc-devel.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-configure {
system -W ${worksrcpath} "sh ./autogen.sh"
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -317,4 +325,11 @@ variant treesitter description {Builds emacs with tree-sitter support} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-default_variants-append +nativecomp +treesitter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants-append +treesitter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# JIT not supported in gcc for i386, so configure will fail.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# On ppc it is supported, but the build with +nativecomp segfaults.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/69677
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} ni [list i386 ppc]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +nativecomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/emacs/files/patch-allow-powerpc-devel.diff b/editors/emacs/files/patch-allow-powerpc-devel.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cd6bc122a11
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/emacs/files/patch-allow-powerpc-devel.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac 2024-03-24 21:02:33.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac 2024-04-05 10:19:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -738,11 +738,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Apple Darwin / macOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-apple-darwin* )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- case "${canonical}" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- *-apple-darwin[0-9].*) unported=yes ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- i[3456]86-* | x86_64-* | arm-* | aarch64-* ) ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * ) unported=yes ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ opsys=darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## FIXME: Find a way to use Fink if available (Bug#11507).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/emacs/files/patch-allow-powerpc.diff b/editors/emacs/files/patch-allow-powerpc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8d73f863917
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/emacs/files/patch-allow-powerpc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure 2024-03-24 21:15:23.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2024-04-05 10:22:30.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6108,13 +6108,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Apple Darwin / macOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-apple-darwin* )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- case "${canonical}" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- *-apple-darwin[0-9].*) unported=yes ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- i[3456]86-* | x86_64-* | arm-* | aarch64-* ) ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- * ) unported=yes ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ opsys=darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ## FIXME: Find a way to use Fink if available (Bug#11507).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Chromium Native Client
</span></pre><pre style='margin:0'>
</pre>