diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-15 17:25:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-15 17:25:28 +0000 |
commit | 6b933047f46efec1aa747570f945344254227457 (patch) | |
tree | a12a4b87b38f954c4de435272cf4b90d721df5e8 /dev-haskell/stack-bin/stack-bin-1.6.1.ebuild | |
parent | f45955e60d4da9b7f4a1088c98042f9c06669039 (diff) |
gentoo resync : 15.12.2017
Diffstat (limited to 'dev-haskell/stack-bin/stack-bin-1.6.1.ebuild')
-rw-r--r-- | dev-haskell/stack-bin/stack-bin-1.6.1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-haskell/stack-bin/stack-bin-1.6.1.ebuild b/dev-haskell/stack-bin/stack-bin-1.6.1.ebuild new file mode 100644 index 000000000000..5638974f850a --- /dev/null +++ b/dev-haskell/stack-bin/stack-bin-1.6.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="The Haskell Tool Stack (Binary)" +HOMEPAGE="https://github.com/commercialhaskell/stack" + +uri() { + echo "https://github.com/commercialhaskell/stack/releases/download/v${PV}/stack-${PV}-linux-$1.tar.gz" +} + +SRC_URI=" + arm? ( $(uri arm) ) + x86? ( $(uri i386) ) + amd64? ( $(uri x86_64) ) +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~arm" +IUSE="symlink" + +DEPEND="" +RDEPEND="${DEPEND} + sys-libs/zlib + dev-libs/gmp:0 +" +RDEPEND+=" symlink? ( !dev-haskell/stack )" + +S=${WORKDIR} + +QA_PREBUILT="/usr/bin/stack-bin" +QA_PRESTRIPPED="/usr/bin/stack-bin" + +src_prepare() { + default + + mv stack-${PV}-*/doc doc || die + mv stack-${PV}-*/stack stack-bin || die +} + +src_install() { + dodoc doc/* + dobin stack-bin + use symlink && dosym stack-bin /usr/bin/stack +} |