forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-haskell/stack-bin: bump up to 1.7.1
Closes: gentoo-haskell/gentoo-haskell#878 Signed-off-by: Jack Todaro <[email protected]> Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Sergei Trofimovich <[email protected]>
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright 1999-2018 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
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 | ||
} |