cabal-install: update to 3.6.3.0

Technically, this is only upgrading Cabal (the library) to 3.6.3.0, as
the installed version of cabal-install is still 3.6.2.0.  This is,
however, necessary for GHC 9.x support.
This commit is contained in:
slotThe 2022-03-19 10:48:13 +01:00 committed by q66
parent 9836c283a4
commit 12161ae4ff
2 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
# Template file for 'cabal-install'
pkgname=cabal-install
version=3.6.2.0
version=3.6.3.0
revision=1
wrksrc=cabal-Cabal-v${version}
hostmakedepends="ghc curl tar which"
@ -11,7 +11,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://hackage.haskell.org/package/cabal-install"
distfiles="https://github.com/haskell/cabal/archive/Cabal-v${version}.tar.gz"
checksum=dcf31e82cd85ea3236be18cc36c68058948994579ea7de18f99175821dbbcb64
checksum=dea086acad6d9fe5fe22d838b95b4e988022e8519f38d41609119ea32bfb7466
nopie_files="/usr/bin/cabal"
nocross=yes
@ -19,12 +19,13 @@ post_patch() {
case "${XBPS_TARGET_MACHINE}" in
i686*)
# https://github.com/haskell/cabal/issues/7313
vsed -i -e 's/+ofd-locking/-ofd-locking/' bootstrap/linux-8.10.7.json ;;
vsed -i -e 's/+ofd-locking/-ofd-locking/' bootstrap/linux-9.0.2.json ;;
esac
}
do_build() {
PREFIX=$PWD bootstrap/bootstrap.py -d bootstrap/linux-8.10.7.json
cp "${FILESDIR}/linux-9.0.2.json" bootstrap/
PREFIX=$PWD bootstrap/bootstrap.py -d bootstrap/linux-9.0.2.json
}
do_install() {
vbin _build/bin/cabal