2015-08-15 15:48:40 +00:00
|
|
|
# Template file for 'stack'
|
|
|
|
pkgname=stack
|
2015-12-08 16:35:29 +00:00
|
|
|
version=0.1.10.0
|
2015-10-19 13:24:37 +00:00
|
|
|
revision=1
|
2015-12-08 16:35:29 +00:00
|
|
|
_stackage="lts-3.17"
|
2015-08-15 15:48:40 +00:00
|
|
|
hostmakedepends="cabal-install"
|
2015-09-14 12:36:38 +00:00
|
|
|
makedepends="zlib-devel pcre-devel"
|
2015-08-15 15:48:40 +00:00
|
|
|
depends="git iana-etc"
|
|
|
|
short_desc="Cross-platform program for developing Haskell projects"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="BSD-3"
|
2015-12-08 16:35:29 +00:00
|
|
|
homepage="http://haskellstack.org"
|
2015-08-15 15:48:40 +00:00
|
|
|
distfiles="https://github.com/commercialhaskell/stack/archive/v${version}.tar.gz
|
|
|
|
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
|
|
|
|
skip_extraction="cabal.config-${_stackage}"
|
2015-12-08 16:35:29 +00:00
|
|
|
checksum="caa05fe0b5da10b34989ce2c3b86a72e540de10530792e49caf3055fd57b33fd
|
|
|
|
9e5b3aa042710cd0d6988d8db7a677af0ffaff346633e6d6500b4015031c22ff"
|
2015-09-28 11:34:00 +00:00
|
|
|
nocross=yes
|
2015-11-22 15:37:30 +00:00
|
|
|
nopie=yes # network-2.6.2.1 build fails with a relocation
|
2015-08-15 15:48:40 +00:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
cabal sandbox init
|
|
|
|
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
|
|
|
|
cabal update
|
|
|
|
cabal install ${makejobs} --only-dependencies
|
|
|
|
cabal install ${makejobs} cpphs
|
|
|
|
cabal configure -v --prefix=/usr --libsubdir='$pkg' \
|
|
|
|
--datasubdir='$pkg' --docdir='$datadir/doc/$pkg'
|
|
|
|
cabal build ${makejobs}
|
2015-08-31 11:40:27 +00:00
|
|
|
}
|
2015-08-15 15:48:40 +00:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin dist/build/stack/stack
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|