diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-09 03:03:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-09 03:03:12 +0000 |
commit | 2be329ae14bbf99f0fc4de7567e2386bbb529fdc (patch) | |
tree | 99e1d21f40429392d5eb255ec008fdd96e4fa284 /dev-lang/ispc | |
parent | 2cd9ff612e84f0c1ef63c9e9e13be53fe576cc2b (diff) |
gentoo auto-resync : 09:11:2024 - 03:03:12
Diffstat (limited to 'dev-lang/ispc')
-rw-r--r-- | dev-lang/ispc/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/ispc/ispc-1.25.3.ebuild | 95 |
2 files changed, 97 insertions, 0 deletions
diff --git a/dev-lang/ispc/Manifest b/dev-lang/ispc/Manifest index d9ff623bdb5b..96a239614f16 100644 --- a/dev-lang/ispc/Manifest +++ b/dev-lang/ispc/Manifest @@ -1,5 +1,7 @@ DIST ispc-1.24.0.gh.tar.gz 19674211 BLAKE2B 246a079f03fa17f1ab4d80c55b992e92f44d5395e3f1feadee90c773771496ead4de0671b3869c70d5a93038d7c0ccaf9ed3ad5b5e40eb156d605a73150b15d9 SHA512 ad9feab1b5986471a52c775c1220ae46904ae952b33a14299f525eb03e004c6e1395dd171ddedee833892d57ad195ffddb234b26a2df42138fb1b2364b62803e DIST ispc-1.25.2.gh.tar.gz 19805407 BLAKE2B d4722725778f06a963a9bbc2fa691707e51b907fcc6cabac5987a7dcd65cc6855f27d4bd2559f6e79185067de7211ec9da48635c29d146c6525963db2f0fa11a SHA512 29c0adb0d28be280ef6223253f34eaeae6530d4ab63f67c94791837144eb20a2d596b0bd450188841b86f277d9f7d68a96b3c1e9e25297590e496d7f04ad55c3 +DIST ispc-1.25.3.gh.tar.gz 19805596 BLAKE2B 6e98d2297b2b9b7da32c74328c0b3883a7bd7dc997624ed5c5eff1193779b28a29b6e505ec09f6ba471f0b3ba4b3c603561717311a370bad5350d7e898b9d5f1 SHA512 12bbf7b15d6ec97658d46d65d1c02103bdada4101dcaa2ebb5c8477c39934a588d1035371ae09636c0fa73267f4d714579b8fffcd8690d4f3d95eb12436908ab EBUILD ispc-1.24.0.ebuild 2311 BLAKE2B 210ae5d45f251430ff3309178ab00fd408c01a008dd35f189c0a8b81ce92479525d5f5a3c66031e824216d579c7a1a99c637fd9e78e2933f956c692fe66351f8 SHA512 9030944ba7d885493600e6986e30beb07141a4ff34e6e0c8157de5995684f6eadb9a8ab81fb607aae45a80a8a224ce06df7d490169bddf9cf22997adc71b8ce3 EBUILD ispc-1.25.2.ebuild 2086 BLAKE2B 783eb3a0488fd722d318b63d60f52165e112312df442a63cb7aceee06f93d617f2f6f5e3a8dd681f48c08060879cc96f5ed0aae4d2725c1c69c5389b5c66834e SHA512 8774a89eb63d46633ac36eeb03b991e7d99572b138a57ce597ee4ebf610e3d341a1179402c4a7f3be3d1a6e3f44846f615c9a5e15d436ca919730e2a4b6e3dd2 +EBUILD ispc-1.25.3.ebuild 2086 BLAKE2B 783eb3a0488fd722d318b63d60f52165e112312df442a63cb7aceee06f93d617f2f6f5e3a8dd681f48c08060879cc96f5ed0aae4d2725c1c69c5389b5c66834e SHA512 8774a89eb63d46633ac36eeb03b991e7d99572b138a57ce597ee4ebf610e3d341a1179402c4a7f3be3d1a6e3f44846f615c9a5e15d436ca919730e2a4b6e3dd2 MISC metadata.xml 509 BLAKE2B b605dfbff352fab4fcc58ad46f89f97d5db8522de237a0623021c521231798ad00b2b8cd82ce6840d86cfebbe185e6e767e8d0ec276b03a68554ecad20e6b96d SHA512 eae5fcfb0d56190f969ac83012624965b00bd757d8be0bbafce74ab1ea119dc4ee0c33076dd447fabf0a6a6d5f1e2783b54f6c59ebd7aa0a35a4a27df7db01f9 diff --git a/dev-lang/ispc/ispc-1.25.3.ebuild b/dev-lang/ispc/ispc-1.25.3.ebuild new file mode 100644 index 000000000000..d19ed81775c4 --- /dev/null +++ b/dev-lang/ispc/ispc-1.25.3.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..13} ) + +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 +} |