summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-12-23 18:22:36 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2016-12-23 18:43:32 +0000
commitbf7aed7ab757efb60061ba75aec34df01aafc8b4 (patch)
tree493c0272cb1b5a01465db8aca13c250b4d143011 /dev-lang
parentdev-php/composer: remove old version 1.2.2. (diff)
downloadgentoo-bf7aed7ab757efb60061ba75aec34df01aafc8b4.tar.gz
gentoo-bf7aed7ab757efb60061ba75aec34df01aafc8b4.tar.bz2
gentoo-bf7aed7ab757efb60061ba75aec34df01aafc8b4.zip
dev-lang/crystal: bump up to 0.20.3
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/crystal/Manifest1
-rw-r--r--dev-lang/crystal/crystal-0.20.3.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest
index ddcddd892a21..ca4e13e1382e 100644
--- a/dev-lang/crystal/Manifest
+++ b/dev-lang/crystal/Manifest
@@ -17,3 +17,4 @@ DIST crystal-0.20.0-1-linux-i686.tar.gz 18067976 SHA256 008cf927a4add816c038d2c0
DIST crystal-0.20.0-1-linux-x86_64.tar.gz 17612259 SHA256 55f309882b71f1722b00e63c5e91bcf8be54865b9bc9e7bb85f333b94990e298 SHA512 f8a4f6abbb2ba1e3b97a5686cb90ca73f16765d881a6762f0dbadb10217b3fe321e54d03511680450af8a55b79edd7586b1fe9f9d4170aeece3aae9f3cf399b4 WHIRLPOOL ba9d8494088fee9c9b7b02bb2804e18b669712af074e1a09cf3807441f7096024831c32274a754884d874d06f30a9c5b2e5a462006ec3f4000d1a227e2fbee4d
DIST crystal-0.20.0.tar.gz 1493935 SHA256 97118becc450cdfbafd881f8e98e93d9373d71b4994f49f41dec1eaf081e8894 SHA512 0b3c2dbdb9a6f76d1acffc59f637e05ae26eb652a3ec57956c7074848de3540a5c9b7e5c612908dfef59e9319c67827dc9847da563b688f63bddc4f122699cb1 WHIRLPOOL 4165b6b453eac930791776b2719643c6cdebd101dfc535c5bb9af6851cb3fde00a14036cde95e15a6b363d2ebb5886370a7da14043f5a412cbd8738276d177f4
DIST crystal-0.20.1.tar.gz 1506176 SHA256 3792856bfe768421f4f0488dd8717deb0db4c94fee7587d39174f4911ab2c01d SHA512 a1f2cafee0971a010a8c15a1a1299cec1b7b05613458230a6b8ff9f9c9c7db6ef3d709c8834da47dd2a37eb531e49690a8dbb2ef208573bfe8ec41f541ffeec9 WHIRLPOOL 9b150b18923e0aa1c20f4a29853ff66a16ef7ab82e63e8f8b4d26b9fee5354338e79598a327c8241ed9898c7122af1364717e5318fa823cde745c74d846b1586
+DIST crystal-0.20.3.tar.gz 1520457 SHA256 5372ba2a35d885345207047a51b9389f9190fd12389847e7f7298618bcf59ad6 SHA512 e0a30a43d1f1a92e50c03f3ef281e1e8feecef6506f77d83bc52c3d46d57da80f656e3092ab1866c6fcc9bcb6ed12d0a4eab6ddd49fc2312904b56fe9cab5aab WHIRLPOOL 9af9d99286083b070b05ac69e693a1e180f6a90dfbca4ba52de741c749ae7cb1d6fb19f71b1383420523f97bbb153e8a23cf326b610aa32197cbe05ec71265bf
diff --git a/dev-lang/crystal/crystal-0.20.3.ebuild b/dev-lang/crystal/crystal-0.20.3.ebuild
new file mode 100644
index 000000000000..ddd750173e92
--- /dev/null
+++ b/dev-lang/crystal/crystal-0.20.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+BV=0.20.0-1
+BV_AMD64=${BV}-linux-x86_64
+BV_X86=${BV}-linux-i686
+
+DESCRIPTION="The Crystal Programming Language"
+HOMEPAGE="http://crystal-lang.org"
+SRC_URI="https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz -> ${P}.tar.gz
+ amd64? ( https://github.com/crystal-lang/crystal/releases/download/${PV}/crystal-${BV_AMD64}.tar.gz )
+ x86? ( https://github.com/crystal-lang/crystal/releases/download/${PV}/crystal-${BV_X86}.tar.gz )"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples +xml +yaml"
+
+# dev-libs/boehm-gc[static-libs] dependency problem, check the issue: https://github.com/manastech/crystal/issues/1382
+DEPEND="
+ >=sys-devel/llvm-3.9.0
+ dev-libs/boehm-gc[static-libs,threads]
+ dev-libs/libatomic_ops
+ dev-libs/libevent
+ dev-libs/libpcre
+ sys-libs/libunwind
+ dev-libs/pcl
+ dev-libs/gmp:0
+"
+RDEPEND="${DEPEND}
+ xml? ( dev-libs/libxml2 )
+ yaml? ( dev-libs/libyaml )
+"
+
+src_compile() {
+ emake \
+ release=1 \
+ threads=4 \
+ PATH="${WORKDIR}"/${PN}-${BV}/bin:"${PATH}" \
+ CRYSTAL_PATH=src \
+ CRYSTAL_CONFIG_VERSION=${PV} \
+ CRYSTAL_CONFIG_PATH="libs:${EPREFIX}/usr/$(get_libdir)/crystal"
+ use doc && emake doc
+}
+
+src_test() {
+ emake spec \
+ CRYSTAL_PATH=src \
+ CRYSTAL_CONFIG_VERSION=${PV}
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/crystal
+ doins -r src/.
+ dobin .build/crystal
+
+ insinto /usr/share/zsh/site-functions
+ newins etc/completion.zsh _crystal
+
+ use examples && dodoc -r samples
+
+ if use doc ; then
+ docinto api
+ dodoc -r doc/.
+ fi
+}