dev-lang/ispc: version bump
authorChristoph Junghans <junghans@gentoo.org>
Wed, 4 Apr 2018 13:16:17 +0000 (07:16 -0600)
committerChristoph Junghans <junghans@gentoo.org>
Wed, 4 Apr 2018 13:16:38 +0000 (07:16 -0600)
Closes: https://bugs.gentoo.org/652070
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-lang/ispc/Manifest
dev-lang/ispc/ispc-1.9.2.ebuild [new file with mode: 0644]
dev-lang/ispc/ispc-9999.ebuild

index e9f1d067c9c46aa33d493ae08119d72b463dc2e3..48765f8a1e98b31b601978988308a0b495280132 100644 (file)
@@ -1 +1,2 @@
 DIST ispc-1.9.1.tar.gz 19276043 BLAKE2B a9cc96b138cc5424e3a09fa517c8554f79af3c947c05a75c179b35e509e399785da18f72b0a2e0d81be8ea8f04b3ca0f6a90003a76d5d9ac641f55cfdcd47dfc SHA512 4acd9e99dadba684829235a267e15ca8ff4cf33c4cadaa2983006bcb2c2f45fce49e8b11963f4bce78c256aaf8ece0583cf6cb729c6bc75af32b7fa4238ca743
+DIST ispc-1.9.2.tar.gz 19283765 BLAKE2B 500cca8a69a78ad9a21dc1e39dcb3ed01730e78deed61e4871ce5a9761829c80ac7b1b987d8e8a48c34b67ac96692b2c5026cfb5059a32c71e228c73550584eb SHA512 77a66086cbfd6c4dc855b3137a270cc40f24829255639aee5f562b0831c21938157667b20cfadc660cd67525c47e2e73b46692f7a11bf0c834dc60b69d40d76d
diff --git a/dev-lang/ispc/ispc-1.9.2.ebuild b/dev-lang/ispc/ispc-1.9.2.ebuild
new file mode 100644 (file)
index 0000000..d1c2c23
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit toolchain-funcs python-any-r1
+
+DESCRIPTION="Intel SPMD Program Compiler"
+HOMEPAGE="https://ispc.github.com/"
+
+if [[ ${PV} = *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/ispc/ispc.git"
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD BSD-2 UoI-NCSA"
+SLOT="0"
+IUSE="examples"
+
+RDEPEND="
+       >=sys-devel/clang-3.0:*
+       >=sys-devel/llvm-3.0:*
+       "
+DEPEND="
+       ${RDEPEND}
+       ${PYTHON_DEPS}
+       sys-devel/bison
+       sys-devel/flex
+       "
+
+src_compile() {
+       #make all slient commands ("@") verbose and remove -Werror (ispc/ispc#1295)
+       sed -e '/^\t@/s/@//' -e 's/-Werror//' -i Makefile || die
+       emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
+}
+
+src_install() {
+       dobin ispc
+       dodoc README.rst
+
+       if use examples; then
+               insinto "/usr/share/doc/${PF}/examples"
+               docompress -x "/usr/share/doc/${PF}/examples"
+               doins -r examples/*
+       fi
+}
index 9960e29ff26f42fb85f95f5018784ea21eb7016b..d1c2c23311278b7dffc6fcae717dcff19e8fbcb0 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -35,7 +35,8 @@ DEPEND="
        "
 
 src_compile() {
-       sed -i '/^\t@/s/@//' Makefile || die #make all slient commands ("@") verbose
+       #make all slient commands ("@") verbose and remove -Werror (ispc/ispc#1295)
+       sed -e '/^\t@/s/@//' -e 's/-Werror//' -i Makefile || die
        emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
 }