public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/
Date: Sat,  2 Nov 2024 06:32:13 +0000 (UTC)	[thread overview]
Message-ID: <1730529115.51de08a3b2ba683312a337f0dba3d873f3a55213.mgorny@gentoo> (raw)

commit:     51de08a3b2ba683312a337f0dba3d873f3a55213
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  2 05:32:27 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  2 06:31:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51de08a3

dev-lang/ispc: Bump to 1.25.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/ispc/Manifest           |  1 +
 dev-lang/ispc/ispc-1.25.2.ebuild | 95 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/dev-lang/ispc/Manifest b/dev-lang/ispc/Manifest
index 6c3de0d0a918..3d54d3ad6d7a 100644
--- a/dev-lang/ispc/Manifest
+++ b/dev-lang/ispc/Manifest
@@ -1,3 +1,4 @@
 DIST ispc-1.24.0.gh.tar.gz 19674211 BLAKE2B 246a079f03fa17f1ab4d80c55b992e92f44d5395e3f1feadee90c773771496ead4de0671b3869c70d5a93038d7c0ccaf9ed3ad5b5e40eb156d605a73150b15d9 SHA512 ad9feab1b5986471a52c775c1220ae46904ae952b33a14299f525eb03e004c6e1395dd171ddedee833892d57ad195ffddb234b26a2df42138fb1b2364b62803e
 DIST ispc-1.25.0.gh.tar.gz 19805576 BLAKE2B 02daf70f7a7a0bbaf35799620f3475da117b42f2fb09ec2799c47617108b55e68cd241321d14bbbbf8968d48de38e98bd44565f967dfa97b7a66c87c32acedfb SHA512 0d5c23ce1e57f38a7563b1d2c4813cbb5aa082f19257d3831f8cef8f6bb51d0c8b9ecce142497c13015b64731c98afb0b13ebc80663c83ded9b005e1e1608fd5
 DIST ispc-1.25.1.gh.tar.gz 19804554 BLAKE2B 2f6fda1a3209307809780118ce917ec418f674ce2bc4d283af94166153de7a9627a833f7d4e9c0f3506f8ca3e54dae38fe0481d6eaf9e7fefd1cbaaa824c453c SHA512 467148ac7b5bcdc17cb580430e9a3c669f63b239802bc19e1e2d7dcb6762eeacfdc944f51cad6277ec52f5858e11d8f2a1d3e0b961eeb97a9081e6e2efd9e9b6
+DIST ispc-1.25.2.gh.tar.gz 19805407 BLAKE2B d4722725778f06a963a9bbc2fa691707e51b907fcc6cabac5987a7dcd65cc6855f27d4bd2559f6e79185067de7211ec9da48635c29d146c6525963db2f0fa11a SHA512 29c0adb0d28be280ef6223253f34eaeae6530d4ab63f67c94791837144eb20a2d596b0bd450188841b86f277d9f7d68a96b3c1e9e25297590e496d7f04ad55c3

diff --git a/dev-lang/ispc/ispc-1.25.2.ebuild b/dev-lang/ispc/ispc-1.25.2.ebuild
new file mode 100644
index 000000000000..d6b6ef1352c9
--- /dev/null
+++ b/dev-lang/ispc/ispc-1.25.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( {17..19} )
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit cmake llvm-r1 multiprocessing python-any-r1 toolchain-funcs
+
+DESCRIPTION="Intel SPMD Program Compiler"
+HOMEPAGE="
+	https://ispc.github.io/
+	https://github.com/ispc/ispc/
+"
+SRC_URI="
+	https://github.com/ispc/ispc/archive/v${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD BSD-2 UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="examples gpu openmp test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	$(llvm_gen_dep '
+		sys-devel/clang:${LLVM_SLOT}
+	')
+	sys-libs/ncurses:=
+	gpu? ( dev-libs/level-zero:= )
+	!openmp? ( dev-cpp/tbb:= )
+"
+RDEPEND="
+	${DEPEND}
+"
+BDEPEND="
+	app-alternatives/yacc
+	app-alternatives/lex
+	${PYTHON_DEPS}
+"
+
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+	llvm-r1_pkg_setup
+	python-any-r1_pkg_setup
+}
+
+src_prepare() {
+	# do not require bundled gtest
+	mkdir -p ispcrt/tests/vendor/google/googletest || die
+	cat > ispcrt/tests/vendor/google/googletest/CMakeLists.txt <<-EOF || die
+		find_package(GTest)
+	EOF
+	# remove hacks that break unbundling
+	sed -i -e '/gmock/d' -e '/install/,$d' ispcrt/tests/CMakeLists.txt || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DARM_ENABLED=$(usex arm)
+		-DCMAKE_SKIP_RPATH=ON
+		-DISPC_INCLUDE_EXAMPLES=OFF
+		-DISPC_INCLUDE_TESTS=$(usex test)
+		-DISPC_INCLUDE_UTILS=OFF
+		-DISPCRT_BUILD_GPU=$(usex gpu)
+		-DISPCRT_BUILD_TASK_MODEL=$(usex openmp OpenMP TBB)
+		# prevent it from trying to find the git repo
+		-DGIT_BINARY=GIT_BINARY-NOTFOUND
+	)
+	cmake_src_configure
+}
+
+src_test() {
+	# Inject path to prevent using system ispc
+	local -x PATH="${BUILD_DIR}/bin:${PATH}"
+	"${EPYTHON}" ./scripts/run_tests.py "-j$(makeopts_jobs)" -v ||
+		die "Testing failed under ${EPYTHON}"
+}
+
+src_install() {
+	cmake_src_install
+
+	if use examples; then
+		docompress -x /usr/share/doc/${PF}/examples
+		dodoc -r examples
+	fi
+}


             reply	other threads:[~2024-11-02  6:32 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-02  6:32 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-22  9:20 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/ Michał Górny
2025-02-22  8:47 Arthur Zamarin
2025-02-06  4:10 Michał Górny
2024-11-23 17:23 Michał Górny
2024-11-23 17:21 Michał Górny
2024-11-08  4:52 Michał Górny
2024-11-02  7:14 Michał Górny
2024-11-02  6:32 Michał Górny
2024-10-17  2:51 Michał Górny
2024-10-15  7:00 Michał Górny
2024-06-15 13:08 Michał Górny
2024-06-15 10:54 Arthur Zamarin
2024-05-23  2:11 Michał Górny
2024-03-10  3:35 Michał Górny
2024-03-09 21:10 Sam James
2024-02-16  5:40 Michał Górny
2024-01-25  3:14 Sam James
2023-12-31 15:30 Michał Górny
2023-12-31 14:56 Michał Górny
2023-12-31 10:07 Michał Górny
2023-12-31  9:57 Michał Górny
2023-12-31  9:57 Michał Górny
2023-10-19 15:13 Michał Górny
2023-06-12 15:44 Sam James
2023-02-26  8:27 罗百科
2023-01-26 20:51 Andreas Sturmlechner
2023-01-08 16:04 Joonas Niilola
2022-12-24 14:03 Andreas Sturmlechner
2022-12-24 14:01 Andreas Sturmlechner
2022-12-19 14:47 Andreas Sturmlechner
2022-10-13 10:31 Ionen Wolkens
2022-07-19  7:47 Michał Górny
2022-05-20 13:21 Joonas Niilola
2022-05-20 11:25 Joonas Niilola
2022-04-25  2:40 Sam James
2022-01-20  7:41 罗百科
2022-01-19  7:32 罗百科
2021-11-07 11:38 Jakov Smolić
2021-10-31  5:53 Sam James
2021-10-20  4:11 Sam James
2021-09-19  3:30 Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:09 Sam James
2021-06-19 23:23 Ionen Wolkens
2021-06-19 23:23 Ionen Wolkens
2020-12-09  9:42 Joonas Niilola
2020-09-10  3:18 Sam James
2020-09-10  2:16 Sam James
2020-09-10  1:18 Sam James
2020-09-10  1:18 Sam James
2020-09-10  1:18 Sam James
2020-09-10  1:18 Sam James
2020-09-10  0:42 Sam James
2020-09-10  0:42 Sam James
2020-07-29 16:52 Andreas Sturmlechner
2018-04-11 16:19 Michał Górny
2018-04-04 13:17 Christoph Junghans
2017-09-29 22:40 Christoph Junghans
2017-07-30  8:47 Michał Górny
2017-03-19 14:06 Christoph Junghans
2016-07-13 15:26 Christoph Junghans
2016-07-13 15:26 Christoph Junghans
2016-07-12 19:31 Christoph Junghans
2016-05-30 20:11 Christoph Junghans
2016-05-30 20:11 Christoph Junghans
2015-10-20 23:27 Christoph Junghans
2015-10-20 16:01 Christoph Junghans
2015-10-07 15:59 Christoph Junghans
2015-10-07 15:59 Christoph Junghans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1730529115.51de08a3b2ba683312a337f0dba3d873f3a55213.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox