summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/stack-bin')
-rw-r--r--dev-haskell/stack-bin/stack-bin-1.5.1.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild b/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild
index 624ecf2f7aa6..5638974f850a 100644
--- a/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild
+++ b/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild
@@ -19,13 +19,14 @@ SRC_URI="
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
-IUSE=""
+IUSE="symlink"
DEPEND=""
RDEPEND="${DEPEND}
sys-libs/zlib
dev-libs/gmp:0
"
+RDEPEND+=" symlink? ( !dev-haskell/stack )"
S=${WORKDIR}
@@ -42,4 +43,5 @@ src_prepare() {
src_install() {
dodoc doc/*
dobin stack-bin
+ use symlink && dosym stack-bin /usr/bin/stack
}