commit:     da2644fb2f7a8346360ed2e770549f29f97d0d0d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 31 09:52:59 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 09:56:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da2644fb

dev-lang/ispc: Bump to 1.22.0

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

 dev-lang/ispc/Manifest           |  1 +
 dev-lang/ispc/ispc-1.22.0.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-lang/ispc/Manifest b/dev-lang/ispc/Manifest
index 5dc60d213eaa..e712d186483d 100644
--- a/dev-lang/ispc/Manifest
+++ b/dev-lang/ispc/Manifest
@@ -1 +1,2 @@
 DIST ispc-1.19.0.tar.gz 19577782 BLAKE2B 
5ad6eeeeb0bb27f2a27267a26a729693bd16250ae5e8740728290fe6ad85c7ecd4da40f316f2ca6b1447ff3a13f6949db4ed2af6ebf2c6ce6ba43620dfb1943d
 SHA512 
140f16bc0f9e0a94853b50a5433be9196ee09b6c70a1840d400d0d201143da8cb2b1b92a857acf5856ed3410bfffd17678eb1029996f9007fe947f5ac78bf1bb
+DIST ispc-1.22.0.gh.tar.gz 19618494 BLAKE2B 
0dae95d792e4d629b38a9775c2c600131374c69dfa086d6a67100e40e5005ef054b9a651f418e0452a19ee4e64ffd830bfaa787b14e706473e8fab1d2380f0fd
 SHA512 
4436ea37003b4cbfefcbf4c18212d0e98536243ae8f01053817d579e04205a4dcd4ab7b2b282fec99fc617009fdbea340b348cf4a2134240d2fcfc6bcaf6b60c

diff --git a/dev-lang/ispc/ispc-1.22.0.ebuild b/dev-lang/ispc/ispc-1.22.0.ebuild
new file mode 100644
index 000000000000..60ee837fac5f
--- /dev/null
+++ b/dev-lang/ispc/ispc-1.22.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+LLVM_MAX_SLOT=17
+
+inherit cmake multiprocessing python-any-r1 llvm
+
+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 test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       sys-devel/bison
+       sys-devel/flex
+       ${PYTHON_DEPS}
+"
+
+pkg_setup() {
+       llvm_pkg_setup
+       python-any-r1_pkg_setup
+}
+
+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
+       )
+       cmake_src_configure
+}
+
+src_test() {
+       # Inject path to prevent using system ispc
+       local -x PATH="${BUILD_DIR}/bin:${PATH}"
+       "${EPYTHON}" ./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 via email to