ghc: update to 9.12.1

This commit is contained in:
i0ntempest
2025-01-08 22:40:34 +08:00
committed by Zhenfu Shi
parent e9df1cb707
commit d0c6e08ff7
+19 -17
View File
@@ -6,7 +6,7 @@ PortGroup compiler_blacklist_versions 1.0
PortGroup legacysupport 1.1
name ghc
version 9.6.6
version 9.12.1
revision 0
categories lang haskell
maintainers {ieee.org:s.t.smith @essandess} openmaintainer
@@ -64,26 +64,26 @@ set ghc_distname ${distname}-${ghc_build_arch}-apple-darwin
# run `port clean --all ghc-prebuilt` afterwards
if {${build_arch} eq {arm64}} {
checksums ${ghc_distname}${extract.suffix} \
rmd160 1846e846a8c9daf9cdae37af5d2a6540ea246230 \
sha256 9134047605401bad08d8a845bce92acf225154753cfc8bddf0a2abaa86f4af42 \
size 204151332
rmd160 d755d689849a1641a44fe413c649ca0947013d3d \
sha256 3e7fe66494cf04c86477f7946167fd7de61b54459a68d6ff8c275594b01e0bc7 \
size 307282708
} elseif {${build_arch} eq {x86_64}} {
checksums ${ghc_distname}${extract.suffix} \
rmd160 dda45cafe54a3ba35dd78da4f5f94a1be03a3eba \
sha256 b6704410dd93ba3037655abfb5a4d5ce0dbff81ab787dbf862ee2fcf79df62dc \
size 195519244
rmd160 143483570ffaacb58006aa019375d1b6f444cc52 \
sha256 e6eb460ce2ddd87691c06a0a128adb45b70f339b999dcf845bc1b146f13879f1 \
size 311838916
}
set ghc_source_checksums [list \
${distname}-src${extract.suffix} \
rmd160 11fdbd657e6cdad704deae6221d42e8bb57dd2dd \
sha256 008f7a04d89ad10baae6486c96645d7d726aaac7e1476199f6dd86c6bd9977ad \
size 29443464 \
rmd160 29af67cc9be7054dcdf766adb304831d0ef8e3c3 \
sha256 4a7410bdeec70f75717087b8f94bf5a6598fd61b3a0e1f8501d8f10be1492754 \
size 33397696 \
]
set ghc_testsuite_checksums [list \
${distname}-testsuite${extract.suffix} \
rmd160 c94a4b77daf3a3a010606a36abf0291688674dee \
sha256 dd91c6b65bc4b424de273072fb6ae8782a6efa861cf36445cc88fc383455b209 \
size 7088964 \
rmd160 35e6d9ba2417bd70ff85b65845c5a0039d240807 \
sha256 c6f1503dd0dc392285f9da7371822ce4ec42d1af96c7802669e0c220462460c5 \
size 7784552 \
]
# Has issues if enabled
@@ -203,7 +203,7 @@ if {${name} eq ${subport}} {
# use these to specify python versions, python3 required
# use ${prefix}/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/python-1.0.tcl
set python3_version 312
set python3_version 313
set python3_branch [string index ${python3_version} 0].[string range ${python3_version} 1 end]
set python3_prefix ${frameworks_dir}/Python.framework/Versions/${python3_branch}
set python3_bin ${python3_prefix}/bin/python${python3_branch}
@@ -319,7 +319,7 @@ if {${name} eq ${subport}} {
xinstall -d ${destroot}${prefix}/share/man/man1
xinstall -m 0644 \
${worksrcpath}/_build/doc/users_guide/build-man/${name}.1 \
${worksrcpath}/_build/manpage/${name}.1 \
${destroot}${prefix}/share/man/man1
}
@@ -407,6 +407,7 @@ subport ghc-prebuilt {
# rename installed files to *-prebuilt
set exedir ${prefix}/lib/${distname}
set docdir ${prefix}/share/doc/${distname}
set mandir ${prefix}/share/man/man1
foreach f [glob ${destroot}${prefix}/bin/*] {
if {[file isfile ${f}] && [file type ${f}] eq {file}
&& [string match "text/*" [lindex [exec file --mime-type ${f}] end]]} {
@@ -426,6 +427,7 @@ subport ghc-prebuilt {
foreach d [list ${destroot}${exedir} ${destroot}${docdir}] {
move ${d} ${d}-prebuilt
}
move ${destroot}${mandir}/${name}.1 ${destroot}${mandir}/${name}-prebuilt.1
delete -force \
${destroot}${docdir}/archives
@@ -435,8 +437,8 @@ subport ghc-prebuilt {
subport hadrian {
# find ${worksrcpath} -type f -exec egrep -E -o '"pkg-name":"shake","pkg-version":"[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+"' {} ';'
# revbump if the version is unchanged
version 0.19.7
revision 3
version 0.19.8
revision 0
distname ${name}-${ghc_version}
distfiles [lindex ${ghc_source_checksums} 0]