Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/crystal/
Date: Tue, 13 Aug 2019 22:45:55
Message-Id: 1565736345.d79eff47f623aebc56f8ba670f58a965ab945cc0.slyfox@gentoo
1 commit: d79eff47f623aebc56f8ba670f58a965ab945cc0
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 13 22:45:25 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 13 22:45:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d79eff47
7
8 dev-lang/crystal: bump up to 0.30.1
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-lang/crystal/Manifest | 3 +
14 dev-lang/crystal/crystal-0.30.1.ebuild | 123 +++++++++++++++++++++++++++++++++
15 2 files changed, 126 insertions(+)
16
17 diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest
18 index 3f331e5e01b..1a98a93bcc5 100644
19 --- a/dev-lang/crystal/Manifest
20 +++ b/dev-lang/crystal/Manifest
21 @@ -7,3 +7,6 @@ DIST crystal-0.29.0.tar.gz 2122890 BLAKE2B 17ef4c3c07d326b73bb015a1cd9207c716630
22 DIST crystal-0.30.0-1-linux-i686.tar.gz 31962470 BLAKE2B e913122b8e6fa472b7766c865916a8d6d588fccf1ad85f2c5a7b31334cb5631773e7672eb8fdd1c9bfbefa720b7bef6ea8884e225a29be2a8d8203fa1e2e3455 SHA512 84fd9d66355d069e02805d2f8cc3544ecc90bf6bbbf27b0e5df133264507396cef378f4238e28aff8fc9c8c21cd938d687d11b1924d2530cf5c95b1078eb772b
23 DIST crystal-0.30.0-1-linux-x86_64.tar.gz 30157495 BLAKE2B b7e684242f90b7dc0bc93bb2c90e255c65554bfc514616cff645578f1d0956cb9f61262294d3399618bf50c4828e6e83fabd09515d3b7268cbcd96952cba58a4 SHA512 34e5a70ce2305b492bad57cdbcf77603e46052d89cb3b92012cb546ec22af9dbc80c91963b1725e6e1095548e43da766d39fefc2bee827e194d889ccd20c044f
24 DIST crystal-0.30.0.tar.gz 2151397 BLAKE2B 8b32d12e6f45d18c5ef23dce0520d7669076295324bcb100e0120779c986ecf9081a23207eaa3696b661dd566c37aada1644d2b5acf2e5ddf447be11b8dabe8a SHA512 9c3da09b8ed57d1fd6942350cefe3be7cf6f1ab32a86329c0eda24138e30f44b822161b8eb3bca057bd8e7b0a47fefbe566af1284f486643080a967c1cb79483
25 +DIST crystal-0.30.1-1-linux-i686.tar.gz 31972575 BLAKE2B 75350799d836110448f56a7b0f49ad27fdeef0f1da169cc15b411482649538e48c3895b169a1deb4c5691f97329ad70a126396425fd096f0dbd83db7e989e4b2 SHA512 9ede9ed7522a82270d91c316b9b98d8ab2d497def2432b99e2d2f21175e978b5b984df92c9637b4600ef27b6e84bd7bc7a5a1b227b17538804a1bc52dabdf84a
26 +DIST crystal-0.30.1-1-linux-x86_64.tar.gz 30166159 BLAKE2B b58e69f9f00e15c3b6e7e259179903f6f210f463c89b8d50a99b1a7d413092585afddf94cac3a461c041c3d91301aac8e61dbab37282a29f781a34367a1d9ddb SHA512 31f06163951fb6ede70eb41f6047c96a74293754bba360b428bf162b1661eed47f8b426327f074f3523ae16b073e8ae5f5e0e6b36ebf83031fa5a0b414b41648
27 +DIST crystal-0.30.1.tar.gz 2153037 BLAKE2B e5cb2d49688aba75f684ea9fea7e6b0e85eb124f55bf00472595ba83bedd50a8042c5b3c40358254c3fdec3bce2f351ca5e6d385a7841d33f44b934844fd89b1 SHA512 62ddb0dc45385d52d7fdd593f85ec4bef2451aa9a48aabe0115ffe8cfe820e6665b2d51d097339fe931d8599bb6c62c7ddfcaae36a199db0726df4e246af6eab
28
29 diff --git a/dev-lang/crystal/crystal-0.30.1.ebuild b/dev-lang/crystal/crystal-0.30.1.ebuild
30 new file mode 100644
31 index 00000000000..cebd1d37ade
32 --- /dev/null
33 +++ b/dev-lang/crystal/crystal-0.30.1.ebuild
34 @@ -0,0 +1,123 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit bash-completion-r1 llvm multiprocessing toolchain-funcs
41 +
42 +BV=${PV}-1
43 +BV_AMD64=${BV}-linux-x86_64
44 +BV_X86=${BV}-linux-i686
45 +
46 +DESCRIPTION="The Crystal Programming Language"
47 +HOMEPAGE="https://crystal-lang.org"
48 +SRC_URI="https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz -> ${P}.tar.gz
49 + amd64? ( https://github.com/crystal-lang/crystal/releases/download/${BV/-*}/crystal-${BV_AMD64}.tar.gz )
50 + x86? ( https://github.com/crystal-lang/crystal/releases/download/${BV/-*}/crystal-${BV_X86}.tar.gz )"
51 +
52 +LICENSE="Apache-2.0"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE="doc debug examples blocking-stdio-hack +xml +yaml"
56 +
57 +RESTRICT=test # not stable for day-to-day runs
58 +
59 +LLVM_MAX_SLOT=8
60 +
61 +# dev-libs/boehm-gc[static-libs] dependency problem, check the issue: https://github.com/manastech/crystal/issues/1382
62 +DEPEND="
63 + sys-devel/llvm:${LLVM_MAX_SLOT}
64 + dev-libs/boehm-gc[static-libs,threads]
65 + dev-libs/libatomic_ops
66 + dev-libs/libevent
67 + dev-libs/libpcre
68 + sys-libs/libunwind
69 + dev-libs/pcl
70 + dev-libs/gmp:0
71 +"
72 +RDEPEND="${DEPEND}
73 + xml? ( dev-libs/libxml2 )
74 + yaml? ( dev-libs/libyaml )
75 +"
76 +
77 +PATCHES=(
78 + "${FILESDIR}"/${PN}-0.27.1-verbose.patch
79 + "${FILESDIR}"/${PN}-0.26.1-gentoo-tests-sandbox.patch
80 + "${FILESDIR}"/${PN}-0.26.1-gentoo-tests-network-sandbox-3.patch
81 + "${FILESDIR}"/${PN}-0.27.0-extra-spec-flags.patch
82 + #"${FILESDIR}"/${PN}-0.27.0-max-age-0-test.patch
83 + "${FILESDIR}"/${PN}-0.27.0-gentoo-tests-long-unix.patch
84 + "${FILESDIR}"/${PN}-0.27.0-gentoo-tests-long-unix-2.patch
85 + "${FILESDIR}"/${PN}-0.27.0-tcp-server-test.patch
86 + "${FILESDIR}"/${PN}-0.29.0-no-usr-lib.patch
87 +)
88 +
89 +src_prepare() {
90 + default
91 +
92 + use blocking-stdio-hack && eapply "${FILESDIR}"/"${PN}"-0.22.0-blocking-stdio-hack.patch
93 +}
94 +
95 +src_compile() {
96 + local bootstrap_path=${WORKDIR}/${PN}-${BV}/bin
97 + if [[ ! -d ${bootstrap_path} ]]; then
98 + eerror "Binary tarball does not contain expected directory:"
99 + die "'${bootstrap_path}' path does not exist."
100 + fi
101 +
102 + emake \
103 + $(usex debug "" release=1) \
104 + progress=true \
105 + stats=1 \
106 + threads=$(makeopts_jobs) \
107 + verbose=1 \
108 + \
109 + CC=$(tc-getCC) \
110 + CXX=$(tc-getCXX) \
111 + AR=$(tc-getAR) \
112 + \
113 + PATH="${bootstrap_path}:${PATH}" \
114 + CRYSTAL_PATH=src \
115 + CRYSTAL_CONFIG_VERSION=${PV} \
116 + CRYSTAL_CONFIG_PATH="lib:${EPREFIX}/usr/$(get_libdir)/crystal"
117 + use doc && emake docs
118 +}
119 +
120 +src_test() {
121 + # EXTRA_SPEC_FLAGS is useful to debug individual tests
122 + # as part of full build:
123 + # USE=debug EXTRA_SPEC_FLAGS='-e parse_set_cookie' emerge -1 crystal
124 + emake spec \
125 + $(usex debug "" release=1) \
126 + progress=true \
127 + stats=1 \
128 + threads=$(makeopts_jobs) \
129 + verbose=1 \
130 + \
131 + CC=$(tc-getCC) \
132 + CXX=$(tc-getCXX) \
133 + AR=$(tc-getAR) \
134 + \
135 + CRYSTAL_PATH=src \
136 + CRYSTAL_CONFIG_VERSION=${PV} \
137 + \
138 + "EXTRA_SPEC_FLAGS=${EXTRA_SPEC_FLAGS}"
139 +}
140 +
141 +src_install() {
142 + insinto /usr/$(get_libdir)/crystal
143 + doins -r src/.
144 + dobin .build/crystal
145 +
146 + insinto /usr/share/zsh/site-functions
147 + newins etc/completion.zsh _crystal
148 +
149 + use examples && dodoc -r samples
150 +
151 + if use doc ; then
152 + docinto api
153 + dodoc -r docs/.
154 + fi
155 +
156 + newbashcomp etc/completion.bash ${PN}
157 +}