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

SUMMARY="cabal-install is the command line interface to Cabal and hackage"
HOMEPAGE="https://www.haskell.org/cabal/"
DOWNLOADS="https://downloads.haskell.org/~cabal/cabal-install-${PV}/cabal-install-${PV}-x86_64-unknown-linux.tar.xz"

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

DEPENDENCIES="
    run:
        dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
        !dev-haskell/cabal-install [[
            description = [ Both install the same binary ]
            resolution = uninstall-blocked-after
        ]]
    recommendation:
        virtual/GHC
"

BUGS_TO="hasufell@posteo.de"

WORK=${WORKBASE}

src_install() {
    dobin cabal
}