From dae9080432ab404e2dc5574b1af371dc5e5bd21d Mon Sep 17 00:00:00 2001 From: Steven Thomas Smith Date: Wed, 28 Feb 2024 07:00:18 -0500 Subject: [PATCH] pandoc: Fix checksums * Fixes: https://trac.macports.org/ticket/69413 --- textproc/pandoc/Portfile | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/textproc/pandoc/Portfile b/textproc/pandoc/Portfile index b61921558e50e..3230542e128a7 100644 --- a/textproc/pandoc/Portfile +++ b/textproc/pandoc/Portfile @@ -36,11 +36,6 @@ notes-append "For PDF support, please install the texlive-latex and texliv set minimum_major_version_for_source 20 -# set build_arch/os.arch/os.major by hand to get binary x86_64/arm64 checksums -# sudo port -d checksum pandoc os.arch=arm os.major=19 build_arch=arm64 -# sudo port -d checksum pandoc os.arch=i386 os.major=19 build_arch=x86_64 -# run `sudo port clean --all pandoc` afterwards - if {(${os.platform} eq {darwin} && ${os.major} >= ${minimum_major_version_for_source}) || ${os.platform} ne {darwin}} { @@ -103,20 +98,25 @@ if {(${os.platform} eq {darwin} github.tarball_from releases use_zip yes + set worksrcpath ${workpath}/pandoc-${version}-${build_arch} + + # set build_arch/os.arch/os.major to get binary arm64/x86_64 checksums + # sudo port -d checksum pandoc os.arch=arm os.major=19 build_arch=arm64 + # sudo port -d checksum pandoc os.arch=i386 os.major=19 build_arch=x86_64 + # run `sudo port clean --all pandoc` afterwards + switch ${build_arch} { - x86_64 { - distfiles pandoc-${version}-x86_64-macOS${extract.suffix} - checksums rmd160 5d101a09cd57bf6fcefad62be021b1a6e16e6ef7 \ - sha256 0018eddd489389ac4e6cf6f4711c1ad49574361c04282e075400fad2c0050084 \ - size 21209103 - set worksrcpath ${workpath}/pandoc-${version}-x86_64 - } arm64 { distfiles pandoc-${version}-arm64-macOS${extract.suffix} - checksums rmd160 5c9a2ce62cf19b779be6593194aadc9d1fe482a5 \ - sha256 fa38ad91d8f1f09549ae16830ade3a26650b03cb9a29c68b41b55ea7fab0aa2d \ - size 34443762 - set worksrcpath ${workpath}/pandoc-${version}-arm64 + checksums rmd160 67c278baea2088b2a243495693325e9e1f8e4a57 \ + sha256 5267cec23889e55a56335616e59734ffb80391c5a1db7c341c83e20bd9cc745c \ + size 35116143 + } + x86_64 { + distfiles pandoc-${version}-x86_64-macOS${extract.suffix} + checksums rmd160 cbf9fbaae5a5b5bacf4437425978700ab93f31b0 \ + sha256 2ca867f52987765fa1676ffd9d8b04ba0cf2dc3a3c6c16c48b5b057878225099 \ + size 21547315 } default { known_fail yes