stack: update to 1.4.0.
This commit is contained in:
parent
85ef85c926
commit
8475a07947
3 changed files with 12 additions and 12 deletions
|
@ -17,11 +17,12 @@ do_build() {
|
||||||
stack init --force --resolver ${stackage}
|
stack init --force --resolver ${stackage}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
STACK_ROOT=$wrksrc/.stack stack ${makejobs} build ${make_build_args}
|
STACK_ROOT=$wrksrc/.stack stack --system-ghc ${makejobs} build \
|
||||||
|
${make_build_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
STACK_ROOT=$wrksrc/.stack stack install ${make_build_args} \
|
STACK_ROOT=$wrksrc/.stack stack --system-ghc install \
|
||||||
--local-bin-path=${DESTDIR}/usr/bin
|
${make_build_args} --local-bin-path=${DESTDIR}/usr/bin
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,27 +1,28 @@
|
||||||
# Template file for 'stack'
|
# Template file for 'stack'
|
||||||
pkgname=stack
|
pkgname=stack
|
||||||
version=1.1.2
|
version=1.4.0
|
||||||
revision=2
|
revision=1
|
||||||
_stackage="lts-6.17"
|
_stackage="lts-8.9"
|
||||||
hostmakedepends="cabal-install pkg-config"
|
hostmakedepends="cabal-install pkg-config"
|
||||||
makedepends="zlib-devel pcre-devel"
|
makedepends="zlib-devel pcre-devel"
|
||||||
depends="git iana-etc"
|
depends="git iana-etc"
|
||||||
short_desc="Cross-platform program for developing Haskell projects"
|
short_desc="Cross-platform program for developing Haskell projects"
|
||||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="BSD-3"
|
license="BSD-3"
|
||||||
homepage="http://haskellstack.org"
|
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="8f43d69a00a8861b156705a634e55179524cefbd98e6c29182e7bdcb57d8b3be
|
checksum="595d311ad117e41ad908b7065743917542b40f343d1334673e98171ee74d36e6
|
||||||
2fe4734c6033257966c0f8beba7420e003286498c97326d313ded0ae9f5cc9eb"
|
05c840d29192fc45d71b1b6d3be852f07903648f9f4993fc6c91759a0f97e204"
|
||||||
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
|
sed -i 's/ store ==.*/ store ==0.3.1,/' cabal.config
|
||||||
|
sed -i 's/ store-core ==.*/ store-core ==0.3,/' cabal.config
|
||||||
cabal update
|
cabal update
|
||||||
cabal install ${makejobs} --only-dependencies
|
cabal install ${makejobs} --only-dependencies
|
||||||
cabal install ${makejobs} cpphs
|
cabal install ${makejobs} cpphs
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
site='http://www.stackage.org/lts'
|
|
||||||
pattern='package/stack-\K[\d.]+'
|
|
Loading…
Add table
Reference in a new issue