# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2

SUMMARY="The Haskell Tool Stack"
DESCRIPTION="
Stack is a cross-platform program for developing Haskell projects.
It is intended for Haskellers both new and experienced.
"
HOMEPAGE="http://haskellstack.org/"
DOWNLOADS="https://github.com/commercialhaskell/stack/releases/download/v${PV}/stack-${PV}-linux-x86_64.tar.gz"

LICENCES="BSD-3"
SLOT="0"
PLATFORMS="-* ~amd64"
MYOPTIONS=""

DEPENDENCIES="
    run:
        dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
        virtual/GHC
"

BUGS_TO="hasufell@posteo.de"

WORK=${WORKBASE}/stack-${PV}-linux-x86_64

src_install() {
    default
    dobin stack
}