Skip to content

Commit

Permalink
pandoc: Fix checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
essandess authored and judaew committed Feb 28, 2024
1 parent 6241683 commit dae9080
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions textproc/pandoc/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}} {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dae9080

Please sign in to comment.