1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit toolchain-funcs python-any-r1
10 DESCRIPTION="Intel SPMD Program Compiler"
11 HOMEPAGE="https://ispc.github.com/"
13 if [[ ${PV} = *9999 ]]; then
15 EGIT_REPO_URI="https://github.com/ispc/ispc.git"
18 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
22 LICENSE="BSD BSD-2 UoI-NCSA"
27 >=sys-devel/clang-3.0:*
28 >=sys-devel/llvm-3.0:*
38 #make all slient commands ("@") verbose and remove -Werror (ispc/ispc#1295)
39 sed -e '/^\t@/s/@//' -e 's/-Werror//' -i Makefile || die
40 emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
48 insinto "/usr/share/doc/${PF}/examples"
49 docompress -x "/usr/share/doc/${PF}/examples"