From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93CBC1584AD for ; Fri, 18 Apr 2025 15:24:49 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7FB203430D8 for ; Fri, 18 Apr 2025 15:24:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id D40191104C2; Fri, 18 Apr 2025 15:24:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C83D11104C3 for ; Fri, 18 Apr 2025 15:24:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7B87D343024 for ; Fri, 18 Apr 2025 15:24:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DDBBD24A7 for ; Fri, 18 Apr 2025 15:24:24 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1744989859.31ca4c923a41761b9a660d9b3684d2ddd949ba90.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/crystal/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/crystal/Manifest dev-lang/crystal/crystal-1.16.1.ebuild X-VCS-Directories: dev-lang/crystal/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 31ca4c923a41761b9a660d9b3684d2ddd949ba90 X-VCS-Branch: master Date: Fri, 18 Apr 2025 15:24:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c22b441a-0093-4b7e-9423-06a0a35ce52a X-Archives-Hash: c9adbb5601447d9f16aa11e3f8f6c13d commit: 31ca4c923a41761b9a660d9b3684d2ddd949ba90 Author: Maciej Barć gentoo org> AuthorDate: Fri Apr 18 14:13:12 2025 +0000 Commit: Maciej Barć gentoo org> CommitDate: Fri Apr 18 15:24:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31ca4c92 dev-lang/crystal: bump to 1.16.1 Signed-off-by: Maciej Barć gentoo.org> dev-lang/crystal/Manifest | 2 + dev-lang/crystal/crystal-1.16.1.ebuild | 126 +++++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+) diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest index 978d61ae2abd..bba25750b1b1 100644 --- a/dev-lang/crystal/Manifest +++ b/dev-lang/crystal/Manifest @@ -2,3 +2,5 @@ DIST crystal-1.15.1-1-linux-x86_64.tar.gz 51499223 BLAKE2B 11f94a67c97215f410c4a DIST crystal-1.15.1.gh.tar.gz 3814922 BLAKE2B 0667e93e3c2b7b80d44347377303195161bfee1709fa64e78fd978cc3409813836542642ac04054d94bf280828a29e592af6db8fdbd4a7bf8f04e8ef62ca209e SHA512 3c552bf4acb06a5e0e3adae2a22cc42c8a003b91a3c9f2ce4cc80d790f5981e94178ad0667504f4d709dfa3f1bc9505ef8ae42b8eb79489f4d1396bd9fc456ff DIST crystal-1.16.0-1-linux-x86_64.tar.gz 51689322 BLAKE2B 853a5152d0b6addbbcafc65b7a608fa2502b3aaef47aa0c1f5f36a57e2abc93885dc6d8fffb15510d6f489b628c1118e25b8481f4e5dbd3f0e0a3b96ea2a72f5 SHA512 6d6372d47331a950c11fc02386223f16bf06b647cfe3ea7ed9a3e82d80732d93baca6786b95f2f1f26670e447000c4ee912781f8edb8c3bd639f4c08ceefd938 DIST crystal-1.16.0.gh.tar.gz 3717850 BLAKE2B da8a4502efbfa784fc02549fb1022c00b51a00701c307fb256caa26df920667718f8f9da1a3705b682c2fe5c1e2670f9ac35fcb7877298300ba46593b66390d9 SHA512 8f1bda2bb077c989d4760f88cc065dd13bdd424547d4733bcc650315c6086fbfd1fb3fde72597f396f75675966c177df538223502ab743af0c531e0d06dc5676 +DIST crystal-1.16.1-1-linux-x86_64.tar.gz 51688372 BLAKE2B d4d1decd73b9ef4290ccaf1bde38aa5faa5e93786f6376312171a354f15b60a1952c6a1fd545108d7616bc090949b0e442a273f6b9b31e5f9549a26f56697890 SHA512 766f7e31ea348037c89bf19156fdb34e1072092759f4c5e0210bba802e1f4da02a021a4dc531c09c0b5c2bcc0b159f885155da9da19625f0c07352b140d81c88 +DIST crystal-1.16.1.gh.tar.gz 3719816 BLAKE2B 512d5d5907420a6fa4f1ed5449afe7d9f6e19f479f5817ea03dbb399103b6debe4b50443bb2fc3a21d38e6021b2293809e32db2bf5fa69be01f6825ae7123284 SHA512 e498645a3c653283c00534b813ebbbfc3a6688fc1895b266570ccd2581a286492dc92299af53509e37cf81344a527b23ac2b932e65390fab150969895e24ea4a diff --git a/dev-lang/crystal/crystal-1.16.1.ebuild b/dev-lang/crystal/crystal-1.16.1.ebuild new file mode 100644 index 000000000000..573dc999fa39 --- /dev/null +++ b/dev-lang/crystal/crystal-1.16.1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +BV="${PV}-1" +BV_AMD64="${BV}-linux-x86_64" + +LLVM_COMPAT=( {18..19} ) + +inherit llvm-r1 multiprocessing shell-completion toolchain-funcs + +DESCRIPTION="The Crystal Programming Language" +HOMEPAGE="https://crystal-lang.org/ + https://github.com/crystal-lang/crystal/" +SRC_URI=" + https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + amd64? ( + https://github.com/crystal-lang/crystal/releases/download/${BV/-*}/crystal-${BV_AMD64}.tar.gz + ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc debug llvm-libunwind" +RESTRICT="test" # Upstream test suite not reliable. + +DEPEND=" + dev-libs/boehm-gc:=[threads] + dev-libs/gmp:= + dev-libs/libatomic_ops:= + dev-libs/libevent:= + dev-libs/libpcre2:=[unicode] + dev-libs/pcl:= + $(llvm_gen_dep ' + llvm-core/llvm:${LLVM_SLOT}= + ') + llvm-libunwind? ( + llvm-runtimes/libunwind:= + ) + !llvm-libunwind? ( + sys-libs/libunwind:= + ) +" +RDEPEND=" + ${DEPEND} + dev-libs/libxml2 + dev-libs/libyaml +" + +PATCHES=( + "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch" + "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix-2.patch" + "${FILESDIR}/${PN}-1.15.0-remove-enviroment-clearing-tests.patch" +) + +src_prepare() { + default + + # Link against system boehm-gc instead of upstream prebuilt static library + # bug #929123, #929989 and #931100 + # https://github.com/crystal-lang/crystal/issues/12035#issuecomment-2522606612 + rm "${WORKDIR}/crystal-${BV}"/lib/crystal/libgc.a || die +} + +src_configure() { + local bootstrap_path="${WORKDIR}/${PN}-${BV}/bin" + if [[ ! -d "${bootstrap_path}" ]] ; then + eerror "Binary tarball does not contain expected directory:" + die "'${bootstrap_path}' path does not exist." + fi + + # crystal uses 'LLVM_TARGETS' to override default list of targets + unset LLVM_TARGETS + + MY_EMAKE_COMMON_ARGS=( + PATH="${bootstrap_path}:${PATH}" + + CRYSTAL_CONFIG_VERSION="${PV}" + CRYSTAL_CONFIG_PATH="lib:${EPREFIX}/usr/$(get_libdir)/crystal" + + $(usex debug "" release=1) + progress=true + stats=1 + threads="$(makeopts_jobs)" + verbose=1 + check_lld= # disable opportunistic lld + + AR="$(tc-getAR)" + CC="$(tc-getCC)" + CXX="$(tc-getCXX)" + LLVM_CONFIG="$(get_llvm_prefix -d)/bin/llvm-config" + ) +} + +src_compile() { + emake "${MY_EMAKE_COMMON_ARGS[@]}" + + use doc && emake docs "${MY_EMAKE_COMMON_ARGS[@]}" +} + +src_test() { + emake std_spec "${MY_EMAKE_COMMON_ARGS[@]}" +} + +src_install() { + insinto "/usr/$(get_libdir)/crystal" + doins -r src/. + + exeinto /usr/bin + doexe .build/crystal + + newzshcomp etc/completion.zsh _crystal + newfishcomp etc/completion.fish crystal.fish + + dodoc -r samples + doman "man/${PN}.1" + newbashcomp etc/completion.bash "${PN}" + + if use doc ; then + docinto api + dodoc -r docs/. + fi +}