1 |
commit: 3c91696090783e9a3003386665e68a63b337f23e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 16:26:05 2016 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 16:38:35 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c916960 |
7 |
|
8 |
dev-lang/crystal: bump up to 0.19.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-lang/crystal/Manifest | 1 + |
13 |
dev-lang/crystal/crystal-0.19.0.ebuild | 71 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest |
17 |
index 60b4722..60a45dd 100644 |
18 |
--- a/dev-lang/crystal/Manifest |
19 |
+++ b/dev-lang/crystal/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST crystal-0.15.0.tar.gz 1188583 SHA256 d79445ec92faa2a045af150fca4886d90ecd9f |
21 |
DIST crystal-0.18.7-1-linux-i686.tar.gz 14273325 SHA256 b84e9d4050b4667012bd7f59f4802f690a2933188370703558a57c51b7661eb2 SHA512 0733f7dc45c677465f24c5615a6a97739d0f9a7276a31f44d6bd297fa49914058451eb04d2805f1c9835a08006c22caef8a44c4eff273a57b438a48f6e6d8c54 WHIRLPOOL 99668a5fc398422447543aaab34a16ba5bc28035df06cfec6225ea622354e1cdfb765243a0f7c855dfbe907ff1a8130e8526c17b391e4532146cc8edc3832efd |
22 |
DIST crystal-0.18.7-1-linux-x86_64.tar.gz 13977303 SHA256 8be06d53e91d14ad05417c5504931b0ac8485a101a98711181b6a40f008f3fa8 SHA512 69366aa66f921534cb8c3f2e03555736d6e451658e0eec1038f26e74bd8ba31c61513d61d52259291431834e8bbd941d6364f329846e81bcdfb05c5d8382343c WHIRLPOOL 7cb68ab111dc5050bb92fffe7a9b243d1bd39d097c4af39d3bb43dd5ec72e1b8e393988550255605a04084afc6e0b19270003b49ff27dd948264cd8afce49291 |
23 |
DIST crystal-0.18.7.tar.gz 1359375 SHA256 72b33fd4bd903a9f0957c74c2f95429e8c0f94c04df86396711b5560f540805d SHA512 4d176036d0f003cc17be73e6a0a9c5c2c9df2764123051007156d86a7dc967c93821c3e087d8c1e27fe7f7b79efa43ea0503bc902813c5b322ca12cd2212da90 WHIRLPOOL 3f7b266be386459918c2e546faf1c3989e7c285400e1f68d0af15b3a639cf72c6a08e0f821703e0413661d8080da499da22035806e0c0a6169f0dbd43792f93f |
24 |
+DIST crystal-0.19.0.tar.gz 1389070 SHA256 4d7d9770891bd8bd835251e2654316412a3f44074db0adeca28357c0993eb2d8 SHA512 23c2f10f32ce1340639639f784703274a9f96799b7762289144ea0551aadd4685814ffcc781750e526ee06b5418c66ec48faeaf6d95a6e63a5e26a839918958b WHIRLPOOL d310a3a738273789856c57351e74ce99bc4eddc3e7398b3e791fdd967d46ca2edc3114f2bf34916708129184e4c1d8bc53434decdb40fb82b3d415b59a3b6fc9 |
25 |
|
26 |
diff --git a/dev-lang/crystal/crystal-0.19.0.ebuild b/dev-lang/crystal/crystal-0.19.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..c611ed4 |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/crystal/crystal-0.19.0.ebuild |
31 |
@@ -0,0 +1,71 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit multilib |
39 |
+ |
40 |
+BV=0.18.7-1 |
41 |
+BV_AMD64=${BV}-linux-x86_64 |
42 |
+BV_X86=${BV}-linux-i686 |
43 |
+ |
44 |
+DESCRIPTION="The Crystal Programming Language" |
45 |
+HOMEPAGE="http://crystal-lang.org" |
46 |
+SRC_URI="https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz -> ${P}.tar.gz |
47 |
+ amd64? ( https://github.com/crystal-lang/crystal/releases/download/${PV}/crystal-${BV_AMD64}.tar.gz ) |
48 |
+ x86? ( https://github.com/crystal-lang/crystal/releases/download/${PV}/crystal-${BV_X86}.tar.gz )" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="doc examples +xml +yaml" |
54 |
+ |
55 |
+# dev-libs/boehm-gc[static-libs] dependency problem, check the issue: https://github.com/manastech/crystal/issues/1382 |
56 |
+DEPEND=" |
57 |
+ >=sys-devel/llvm-3.8.0 |
58 |
+ dev-libs/boehm-gc[static-libs,threads] |
59 |
+ dev-libs/libatomic_ops |
60 |
+ dev-libs/libevent |
61 |
+ dev-libs/libpcre |
62 |
+ sys-libs/libunwind |
63 |
+ dev-libs/pcl |
64 |
+ dev-libs/gmp:0 |
65 |
+" |
66 |
+RDEPEND="${DEPEND} |
67 |
+ xml? ( dev-libs/libxml2 ) |
68 |
+ yaml? ( dev-libs/libyaml ) |
69 |
+" |
70 |
+ |
71 |
+src_compile() { |
72 |
+ emake \ |
73 |
+ release=1 \ |
74 |
+ threads=4 \ |
75 |
+ PATH="${WORKDIR}"/${PN}-${BV}/bin:"${PATH}" \ |
76 |
+ CRYSTAL_PATH=src \ |
77 |
+ CRYSTAL_CONFIG_VERSION=${PV} \ |
78 |
+ CRYSTAL_CONFIG_PATH="libs:${EPREFIX}/usr/$(get_libdir)/crystal" |
79 |
+ use doc && emake doc |
80 |
+} |
81 |
+ |
82 |
+src_test() { |
83 |
+ emake spec \ |
84 |
+ CRYSTAL_PATH=src \ |
85 |
+ CRYSTAL_CONFIG_VERSION=${PV} |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ insinto /usr/$(get_libdir)/crystal |
90 |
+ doins -r src/. |
91 |
+ dobin .build/crystal |
92 |
+ |
93 |
+ insinto /usr/share/zsh/site-functions |
94 |
+ newins etc/completion.zsh _crystal |
95 |
+ |
96 |
+ use examples && dodoc -r samples |
97 |
+ |
98 |
+ if use doc ; then |
99 |
+ docinto api |
100 |
+ dodoc -r doc/. |
101 |
+ fi |
102 |
+} |