From 5fa9ed61e4209ff4e93c311ac68bb9fa8cf9b002 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 9 Jan 2019 16:22:20 +0100 Subject: [PATCH] stack: update to 1.9.3. --- srcpkgs/stack/template | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/srcpkgs/stack/template b/srcpkgs/stack/template index a3e695e1d1..058863c498 100644 --- a/srcpkgs/stack/template +++ b/srcpkgs/stack/template @@ -1,8 +1,8 @@ # Template file for 'stack' pkgname=stack -version=1.7.1 +version=1.9.3 revision=1 -_stackage="lts-12.0" +_stackage="lts-13.2" hostmakedepends="cabal-install pkg-config unzip" makedepends="zlib-devel pcre-devel" depends="git iana-etc" @@ -12,25 +12,19 @@ license="3-clause-BSD" homepage="http://haskellstack.org" distfiles="https://github.com/commercialhaskell/${pkgname}/releases/download/v${version}/${pkgname}-${version}-sdist-1.tar.gz https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}" +checksum="14e06a71bf6fafbb2d468f83c70fd4e9490395207d6530ab7b9fc056f8972a46 + 82b066829f560b5860cafd2ba5d5ccb48098ea5d34a7dc2cb6ec20e3780dea29" skip_extraction="cabal.config-${_stackage}" -checksum="a548fb549b2b1e539e257732596508e4c3d43e3a9d62bd22ecc19dda67c30ce6 - 5cc57cdd4fe15dc8cbb02ef9e57838e224db7bcb5383c22d6bca5c027f3bee7b" nocross=yes nopie_files="/usr/bin/stack" do_build() { - cabal sandbox init cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config - sed -i 's/\(hpack\|temporary\|store\|fsnotify\|exceptions\|aeson\) .*/\1/' stack.cabal - cabal update - cabal install ${makejobs} cpphs happy - cabal install ${makejobs} --only-dependencies - cabal configure -v --prefix=/usr --libsubdir='$pkg' \ - --datasubdir='$pkg' --docdir='$datadir/doc/$pkg' - cabal build ${makejobs} + HOME=$PWD cabal v2-update + HOME=$PWD cabal v2-build ${makejobs} --flag disable-git-info } do_install() { - vbin dist/build/stack/stack + eval vbin dist-newstyle/build/*/*/*/build/stack/stack vlicense LICENSE }