1 |
commit: ac2afc0709118651239c6f105670320420c7afac |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 7 21:37:36 2017 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 7 21:38:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac2afc07 |
7 |
|
8 |
dev-haskell/stack-bin: added binary version of stack, bug #627282 |
9 |
|
10 |
Initial version of ebuild is written by Jeff Parent. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/627282 |
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
14 |
|
15 |
dev-haskell/stack-bin/Manifest | 3 ++ |
16 |
dev-haskell/stack-bin/metadata.xml | 15 ++++++++++ |
17 |
dev-haskell/stack-bin/stack-bin-1.5.1.ebuild | 45 ++++++++++++++++++++++++++++ |
18 |
3 files changed, 63 insertions(+) |
19 |
|
20 |
diff --git a/dev-haskell/stack-bin/Manifest b/dev-haskell/stack-bin/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..02aff3fe690 |
23 |
--- /dev/null |
24 |
+++ b/dev-haskell/stack-bin/Manifest |
25 |
@@ -0,0 +1,3 @@ |
26 |
+DIST stack-1.5.1-linux-arm.tar.gz 16542317 SHA256 91a6539494504f670223b8de5af2b87e67267d7c80b4372e6eb3a8577771dbb4 SHA512 efb3d8eff4b4f8381364ab397298c6879e4ef3f6cdba799306696f961031f31e301b68f140624f0b6e7a0cb5d2bba02eb953203c1b7ab4a6a42d6368c8b39a29 WHIRLPOOL 48e7ecd314d672ef4dfcae603081d54b76fec98dac520a4449a6aa549793619cb2626fe68599c46458d078b6bbabf22d043be2de9899a42b564170dcab95af0a |
27 |
+DIST stack-1.5.1-linux-i386.tar.gz 11546331 SHA256 2973f7baab2f557c113a92a560ad79b887bd57102e8f4a5caf67551a42ea4250 SHA512 f8b640d74ab013426a60d3bc6a8a190acad48439e7e80c33517c5904cf818e9d988e7b84dcd0fba15e24013887849c3d56ab7655a4bb549ee292058a00f14e12 WHIRLPOOL c86aa67680005e5949eab71c3402304ed678d32fe40b488de9b64dbb0c0b2fcf58bb704e9e18bc7594b32a4ec2ad94b3b29bd5b1918bac6fef3b097a485413be |
28 |
+DIST stack-1.5.1-linux-x86_64.tar.gz 11788896 SHA256 b7df551c2f67464bebc5859fc0ecb2dc59cdbeb525af09e05ea4f2752828e542 SHA512 837190e769e33d95a7f7d105884b82fb1ace47d84534c017ba44019d8a5335728d13f1e6c5a3591ee542172734ae2ed49d2f9ab3f19b25963a01d001fc24f1b3 WHIRLPOOL a44d9999d4b620bbc6085ee8ad97bf33103136fc18599ac6094758c4ca33d7038304346d390888ac36617265e698e16c1710b9268a39ca264fe5f57c2151e3b8 |
29 |
|
30 |
diff --git a/dev-haskell/stack-bin/metadata.xml b/dev-haskell/stack-bin/metadata.xml |
31 |
new file mode 100644 |
32 |
index 00000000000..d702142876f |
33 |
--- /dev/null |
34 |
+++ b/dev-haskell/stack-bin/metadata.xml |
35 |
@@ -0,0 +1,15 @@ |
36 |
+<?xml version="1.0" encoding="UTF-8"?> |
37 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
38 |
+<pkgmetadata> |
39 |
+ <maintainer type="project"> |
40 |
+ <email>haskell@g.o</email> |
41 |
+ <name>Gentoo Haskell</name> |
42 |
+ </maintainer> |
43 |
+ <longdescription> |
44 |
+ Please see the README.md for usage information, and |
45 |
+ the wiki on Github for more details. Also, note that |
46 |
+ the API for the library is not currently stable, and may |
47 |
+ change significantly, even between minor releases. It is |
48 |
+ currently only intended for use by the executable. |
49 |
+ </longdescription> |
50 |
+</pkgmetadata> |
51 |
|
52 |
diff --git a/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild b/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild |
53 |
new file mode 100644 |
54 |
index 00000000000..624ecf2f7aa |
55 |
--- /dev/null |
56 |
+++ b/dev-haskell/stack-bin/stack-bin-1.5.1.ebuild |
57 |
@@ -0,0 +1,45 @@ |
58 |
+# Copyright 1999-2017 Gentoo Foundation |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=6 |
62 |
+ |
63 |
+DESCRIPTION="The Haskell Tool Stack (Binary)" |
64 |
+HOMEPAGE="https://github.com/commercialhaskell/stack" |
65 |
+ |
66 |
+uri() { |
67 |
+ echo "https://github.com/commercialhaskell/stack/releases/download/v${PV}/stack-${PV}-linux-$1.tar.gz" |
68 |
+} |
69 |
+ |
70 |
+SRC_URI=" |
71 |
+ arm? ( $(uri arm) ) |
72 |
+ x86? ( $(uri i386) ) |
73 |
+ amd64? ( $(uri x86_64) ) |
74 |
+" |
75 |
+ |
76 |
+LICENSE="BSD" |
77 |
+SLOT="0" |
78 |
+KEYWORDS="~amd64 ~x86 ~arm" |
79 |
+IUSE="" |
80 |
+ |
81 |
+DEPEND="" |
82 |
+RDEPEND="${DEPEND} |
83 |
+ sys-libs/zlib |
84 |
+ dev-libs/gmp:0 |
85 |
+" |
86 |
+ |
87 |
+S=${WORKDIR} |
88 |
+ |
89 |
+QA_PREBUILT="/usr/bin/stack-bin" |
90 |
+QA_PRESTRIPPED="/usr/bin/stack-bin" |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ default |
94 |
+ |
95 |
+ mv stack-${PV}-*/doc doc || die |
96 |
+ mv stack-${PV}-*/stack stack-bin || die |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ dodoc doc/* |
101 |
+ dobin stack-bin |
102 |
+} |