diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-31 11:45:37 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-31 11:45:37 +0000 |
commit | 0f7bcc64cee796c21b0ea6af6e171e89fd33966e (patch) | |
tree | 9807c45157c7191f4a297fe4d6f93e94f74d3106 /dev-lang/ispc | |
parent | 8507777b4ede346b47aafc436295a51890b9cea3 (diff) |
gentoo auto-resync : 31:12:2023 - 11:45:37
Diffstat (limited to 'dev-lang/ispc')
-rw-r--r-- | dev-lang/ispc/Manifest | 4 | ||||
-rw-r--r-- | dev-lang/ispc/ispc-1.22.0.ebuild | 81 | ||||
-rw-r--r-- | dev-lang/ispc/metadata.xml | 5 |
3 files changed, 88 insertions, 2 deletions
diff --git a/dev-lang/ispc/Manifest b/dev-lang/ispc/Manifest index 86422cd45700..5feabb4c81bb 100644 --- a/dev-lang/ispc/Manifest +++ b/dev-lang/ispc/Manifest @@ -1,5 +1,7 @@ AUX ispc-1.19.0-curses-cmake.patch 597 BLAKE2B 6c6595ba7148e78f54fb414af654c4c10b0418908889e6d840d1518431e7e0597b31e08760eb54ac7243e9cbcbafaa6780014e929c12a5b02c8363535387a2ae SHA512 d54a3f8578f866b6259ab0cd2677f4cba49e68368ec3b79e907af085cafb69e2f1fcc048f3a7273584d4f278b29455dc1912b54139ba3b5762e00319d8439bf0 AUX ispc-1.19.0-gcc13.patch 777 BLAKE2B fa65718e6f15575fc2f0339e5e4c47c225a8423d720a1ec90b37bdeea96e53d3534868c9f1c05346cb1235ac63837dba2748a7f8c43805d8b437c306cc04dc9a SHA512 e323e544f41dc0cc1cb1065d9ed0383a9cd075d9915a2ba5d6f6ce49da413d8f09f0b1eca710bd3046dc5442f376ada25db32590f11b902a1c4b2c197a32fb83 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 EBUILD ispc-1.19.0.ebuild 1731 BLAKE2B 202bba276fa2de28294cbe6532470361b948c4262b854762493b76cad1545adc92fe562d1461047126e9aeac707bb3d716b55aad20ed5b8dbec3b29756ad2d79 SHA512 a09bb34829b50b9f6561f74c27bf7761ff35bcb4a383df021c7441041d60ac021f934eb5130050e7792836c7510eb822492d60ceaf15bab36f80b69cdfdffde2 -MISC metadata.xml 242 BLAKE2B ec655bbb26e5d545a7b25a9906e315b54a18cca56613207ce76c9e002fb8968e269627e75639053d7da3c46d8ba34296129458adcad9a561414628e8957d2d9e SHA512 7702a5b2bfe0d81904e069fa097af3c739a21ffad9b03cf9931e398dc904d10501854cc2605fb34415f3f13e58a990b7ff8c3aa803f981889c53b25cc23c6115 +EBUILD ispc-1.22.0.ebuild 1636 BLAKE2B f858b30e71a06855a4e8516eae360ae83544ef8a0ec9b1bd4e2f23fbf41960339317f728389730a2db7a4c3dea357ecf2bc340caf70cb138e19096c7485f6e1b SHA512 43b3459fbe028e47ffaa8d4756f46e44f847e6b2724d75ef9b3e9e0790bcd8761df1dd89f3da42051f475f94dd74df79a683c01103bc0d1157933e37e564c1f1 +MISC metadata.xml 322 BLAKE2B 92aba14715791dec4d88632df313089320116a7ad85d70e311ccb025c7a07ce19e26a46d94fdf772a252d7077f5f70971ac65f7aeff30e6056423dde0d9fb0a5 SHA512 0afd1c427ba9e0065a284acabbde6cc8e8ecd50fe8ae78f6bae194b4a441797a908d2ae69539d5b6d5dc609b9240c632f0f433a3c496b00d8fcad15d6affc922 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..fb2b1f2ba1d3 --- /dev/null +++ b/dev-lang/ispc/ispc-1.22.0.ebuild @@ -0,0 +1,81 @@ +# 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_prepare() { + if use amd64; then + # On amd64 systems, build system enables x86/i686 build too. + # This ebuild doesn't even have multilib support, nor need it. + # https://bugs.gentoo.org/730062 + ewarn "Removing auto-x86 build on amd64" + sed -i -e 's:set(target_arch "i686"):return():' cmake/GenerateBuiltins.cmake || die + fi + + 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 + ) + 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 +} diff --git a/dev-lang/ispc/metadata.xml b/dev-lang/ispc/metadata.xml index bf38be79e847..d25a0ca74f67 100644 --- a/dev-lang/ispc/metadata.xml +++ b/dev-lang/ispc/metadata.xml @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> <upstream> <remote-id type="github">ispc/ispc</remote-id> </upstream> |