stack: update to 1.1.2.

This commit is contained in:
Christian Neukirchen 2016-05-31 12:23:50 +02:00
parent 7f6ee885db
commit 0df51232b3

View file

@ -1,8 +1,8 @@
# Template file for 'stack' # Template file for 'stack'
pkgname=stack pkgname=stack
version=1.0.2 version=1.1.2
revision=1 revision=1
_stackage="lts-5.0" _stackage="lts-6.1"
hostmakedepends="cabal-install" hostmakedepends="cabal-install"
makedepends="zlib-devel pcre-devel" makedepends="zlib-devel pcre-devel"
depends="git iana-etc" depends="git iana-etc"
@ -13,14 +13,15 @@ homepage="http://haskellstack.org"
distfiles="https://github.com/commercialhaskell/stack/archive/v${version}.tar.gz distfiles="https://github.com/commercialhaskell/stack/archive/v${version}.tar.gz
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}" https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
skip_extraction="cabal.config-${_stackage}" skip_extraction="cabal.config-${_stackage}"
checksum="611e96aab0df2a2ad717cfbfe6018e67a90ecb1fb478c9e3c6d90478125986f0 checksum="8f43d69a00a8861b156705a634e55179524cefbd98e6c29182e7bdcb57d8b3be
06dbb17fc55beeb432f4f16b43505c7a285b69b43f6bc732da2049250726a139" 71d1779fca85531a0729bc562bf89a1dbc82e7099548156388571b8bf6067a66"
nocross=yes nocross=yes
nopie=yes # network-2.6.2.1 build fails with a relocation nopie=yes # network-2.6.2.1 build fails with a relocation
do_build() { do_build() {
cabal sandbox init cabal sandbox init
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
sed -i 's/Cabal ==.*/Cabal ==1.24.0.0/' cabal.config # XXX hack for cabal-install
cabal update cabal update
cabal install ${makejobs} --only-dependencies cabal install ${makejobs} --only-dependencies
cabal install ${makejobs} cpphs cabal install ${makejobs} cpphs