Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/
Date: Thu, 10 Sep 2020 01:18:06
Message-Id: 1599700589.07a7fba54ea64b3b6c185d17898c68a6ca3e319d.sam@gentoo
1 commit: 07a7fba54ea64b3b6c185d17898c68a6ca3e319d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 10 01:16:29 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 10 01:16:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07a7fba5
7
8 dev-lang/ispc: bump to 1.14.1
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-lang/ispc/Manifest | 1 +
14 dev-lang/ispc/ispc-1.14.1.ebuild | 67 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/dev-lang/ispc/Manifest b/dev-lang/ispc/Manifest
18 index 4572d984a64..ff3dab92e0f 100644
19 --- a/dev-lang/ispc/Manifest
20 +++ b/dev-lang/ispc/Manifest
21 @@ -1 +1,2 @@
22 DIST ispc-1.14.0.tar.gz 19454030 BLAKE2B 3bd494f4357c7c756c6bc63c76ced37feb83e8f6f73b0adc9e432f37e905efe0f7fe5f8b153d3ccff3ac9f826d0c76f7c33f2a151887ab900088bab95e626856 SHA512 a1325a26804f08a357c84cb1d7266bd56d6d135314985337e057e39ddf556a7332922926e9d10db817048a8d5b491467de7261029a0a46726f330a00791ee8f8
23 +DIST ispc-1.14.1.tar.gz 19454189 BLAKE2B 615698e64ffbd2c82808d6ddd0b5b90f7c52bb8c202a04364d63af26f0e062631f4a8ad01895c1a4f1a8f11e7f91aec381354ddd873d0a4f2908431dcaabe383 SHA512 468e8a44408047ba7b43dc4baf05c2659093b986e131ebe973954ff3b9cf707a4ed22c705b6e01a9abc9a3911669ab31cd191449442c4ac73112a1297da32c5e
24
25 diff --git a/dev-lang/ispc/ispc-1.14.1.ebuild b/dev-lang/ispc/ispc-1.14.1.ebuild
26 new file mode 100644
27 index 00000000000..0bd27f696f5
28 --- /dev/null
29 +++ b/dev-lang/ispc/ispc-1.14.1.ebuild
30 @@ -0,0 +1,67 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{6,7,8,9} )
37 +
38 +inherit cmake toolchain-funcs python-any-r1
39 +
40 +DESCRIPTION="Intel SPMD Program Compiler"
41 +HOMEPAGE="https://ispc.github.com/"
42 +
43 +if [[ ${PV} = *9999 ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/ispc/ispc.git"
46 + KEYWORDS=""
47 +else
48 + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 + KEYWORDS="~amd64 ~x86"
50 +fi
51 +
52 +LICENSE="BSD BSD-2 UoI-NCSA"
53 +SLOT="0"
54 +IUSE="examples"
55 +
56 +RDEPEND="
57 + >=sys-devel/clang-3.0:*
58 + >=sys-devel/llvm-3.0:*
59 + "
60 +DEPEND="
61 + ${RDEPEND}
62 + ${PYTHON_DEPS}
63 + "
64 +BDEPEND="
65 + sys-devel/bison
66 + sys-devel/flex
67 + "
68 +
69 +PATCHES=(
70 + "${FILESDIR}/${PN}-1.13.0-cmake-gentoo-release.patch"
71 + "${FILESDIR}/${PN}-1.14.0-llvm-10.patch"
72 + "${FILESDIR}/${PN}-1.13.0-werror.patch"
73 +)
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + "-DARM_ENABLED=$(usex arm)"
78 + "-DCMAKE_SKIP_RPATH=ON"
79 + )
80 + cmake_src_configure
81 +}
82 +
83 +src_install() {
84 + dobin "${BUILD_DIR}"/bin/ispc
85 + dodoc README.md
86 +
87 + if use examples; then
88 + insinto "/usr/share/doc/${PF}/examples"
89 + docompress -x "/usr/share/doc/${PF}/examples"
90 + doins -r "${BUILD_DIR}"/examples/*
91 + fi
92 +}
93 +
94 +src_test() {
95 + # Inject path to prevent using system ispc
96 + PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed under ${EPYTHON}"
97 +}