From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1673811-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 2D416158090
	for <garchives@archives.gentoo.org>; Wed, 25 Sep 2024 21:16:27 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 66DE6E2BC4;
	Wed, 25 Sep 2024 21:16:26 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 4A6B5E2BC4
	for <gentoo-commits@lists.gentoo.org>; Wed, 25 Sep 2024 21:16:26 +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 62A90343028
	for <gentoo-commits@lists.gentoo.org>; Wed, 25 Sep 2024 21:16:25 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A4CA927F2
	for <gentoo-commits@lists.gentoo.org>; Wed, 25 Sep 2024 21:16:22 +0000 (UTC)
From: "Maciej Barć" <xgqt@gentoo.org>
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ć" <xgqt@gentoo.org>
Message-ID: <1727298977.f647b476fbba0a71acd4f2f3babb66c9aeef269d.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.13.3.ebuild
X-VCS-Directories: dev-lang/crystal/
X-VCS-Committer: xgqt
X-VCS-Committer-Name: Maciej Barć
X-VCS-Revision: f647b476fbba0a71acd4f2f3babb66c9aeef269d
X-VCS-Branch: master
Date: Wed, 25 Sep 2024 21:16:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 6debd8a6-51d7-4f98-b9a9-5e042790416a
X-Archives-Hash: 6661503cf545ffa00fcce24c74d8768e

commit:     f647b476fbba0a71acd4f2f3babb66c9aeef269d
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 20:17:29 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 21:16:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f647b476

dev-lang/crystal: bump to 1.13.3

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/crystal/Manifest              |   2 +
 dev-lang/crystal/crystal-1.13.3.ebuild | 122 +++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest
index 4d8ee2ba9376..2f6ff4295b6c 100644
--- a/dev-lang/crystal/Manifest
+++ b/dev-lang/crystal/Manifest
@@ -2,3 +2,5 @@ DIST crystal-1.13.1-1-linux-x86_64.tar.gz 51651920 BLAKE2B 304203d7f46653c7c687e
 DIST crystal-1.13.1.tar.gz 3686680 BLAKE2B 8032895933d98bc8e3168a9ef1749e0b8c45e5f6501e70a4680a400d842999c2861e3d8064e457a81050f6c4dedc4ca5c968dca0ce593ff38e4091d5a45b7d40 SHA512 62e8d12d8b6fff4a8602e7b04a57b49dd17350585fa13fd015e649cae28affc134a38ec2852b07172c682affb50210df2bc26f707795a4c3483d9522272990db
 DIST crystal-1.13.2-1-linux-x86_64.tar.gz 51650862 BLAKE2B d8812a0a3e327c9aabfea982b36b7ece906ac8f5ceafccdfdebae0ea41c7e8b8989009d30f6535f069711ef0bbfb47430dbeb12fc246e1bf00663c43e54df85b SHA512 694aec1ad5b2bb89dc4adb9f6a78e73e4e2c7ff68c77fda61cc6d1efa2a309932f0634986d4da2db3e05f3f4f1991610c2f6961df0d657376b8343a0c4e2ea30
 DIST crystal-1.13.2.tar.gz 3687101 BLAKE2B 31375ea3648433e88a4813b39f25f72221c4a6d3d9346324467e79d84f43794ce3b0dfe49ec8478d6d96f9971dd8373abd4297b3310c072694be395a04042f91 SHA512 5f4add6066d22d38e59587c32c43c7a3c4bc4615f80f991af75277780efa95f359c40e6da5fe7e3f8ac7eda21f75982e3eb08cbff0702f58cc14c3b432ad7019
+DIST crystal-1.13.3-1-linux-x86_64.tar.gz 51653981 BLAKE2B cb74719a6d4fcd4555632c327e48a40b3d3ce0b1e4a33dbac996e5b99c134a88aef3266daaa615b152ca685a9baffc8659a0715e51258ebef80087ec9430ebd0 SHA512 3183857d718869246649f1213e72f5a538f8f25f18cd19ef27fae26b0dcd8c5028c9be5d1f829386fb4cb6073343b3e745e902928a82da2474fb27bb397e9506
+DIST crystal-1.13.3.tar.gz 3688053 BLAKE2B 94825b9120e711b085c11576320f9384f118d103bf34c69604d358a3e0dbc110f29f2c1a0a8299c9f8805e2fe428d62617e86c73af6c25986b7aafd7e45219d2 SHA512 5d3e6c1b9a17c99129c0d0d07602557dd758390efc481cc79ed0d8663c159a43782c5ca534e7bf5ab8c0bf4bc3af23e77b613893bff9861365b8c2550b70f367

diff --git a/dev-lang/crystal/crystal-1.13.3.ebuild b/dev-lang/crystal/crystal-1.13.3.ebuild
new file mode 100644
index 000000000000..7d2cade29207
--- /dev/null
+++ b/dev-lang/crystal/crystal-1.13.3.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2024 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=( {16..18} )
+
+inherit bash-completion-r1 llvm-r1 multiprocessing 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}.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"
+
+# Upstream test suite not reliable
+RESTRICT="test"
+
+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 '
+		sys-devel/llvm:${LLVM_SLOT}=
+	')
+	llvm-libunwind? (
+		sys-libs/llvm-libunwind:=
+	)
+	!llvm-libunwind? (
+		sys-libs/libunwind:=
+	)
+"
+RDEPEND="
+	${DEPEND}
+	dev-libs/libxml2
+	dev-libs/libyaml
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.7.2-extra-spec-flags.patch"
+	"${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch"
+	"${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix-2.patch"
+)
+
+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
+
+		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() {
+	# EXTRA_SPEC_FLAGS is useful to debug individual tests
+	# as part of full build:
+	#    USE=debug EXTRA_SPEC_FLAGS='-e parse_set_cookie' emerge -1 crystal
+	emake std_spec \
+		"${MY_EMAKE_COMMON_ARGS[@]}" "EXTRA_SPEC_FLAGS=${EXTRA_SPEC_FLAGS}"
+}
+
+src_install() {
+	insinto "/usr/$(get_libdir)/crystal"
+	doins -r src/.
+
+	exeinto /usr/bin
+	doexe .build/crystal
+
+	insinto /usr/share/zsh/site-functions
+	newins etc/completion.zsh _crystal
+
+	dodoc -r samples
+	doman "man/${PN}.1"
+	newbashcomp etc/completion.bash "${PN}"
+
+	if use doc ; then
+		docinto api
+		dodoc -r docs/.
+	fi
+}