Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/
Date: Wed, 13 Jul 2016 15:26:49
Message-Id: 1468423545.4841f5b9cf06f18b5abd3d9b9edac2aa397a43ff.ottxor@gentoo
1 commit: 4841f5b9cf06f18b5abd3d9b9edac2aa397a43ff
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 13 15:25:45 2016 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 13 15:25:45 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4841f5b9
7
8 dev-lang/ispc: added live ebuild
9
10 Package-Manager: portage-2.2.28
11
12 dev-lang/ispc/ispc-9999.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 52 insertions(+)
14
15 diff --git a/dev-lang/ispc/ispc-9999.ebuild b/dev-lang/ispc/ispc-9999.ebuild
16 new file mode 100644
17 index 0000000..53edbc7
18 --- /dev/null
19 +++ b/dev-lang/ispc/ispc-9999.ebuild
20 @@ -0,0 +1,52 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit toolchain-funcs python-any-r1
30 +
31 +DESCRIPTION="Intel SPMD Program Compiler"
32 +HOMEPAGE="https://ispc.github.com/"
33 +
34 +if [[ ${PV} = *9999 ]]; then
35 + inherit git-r3
36 + EGIT_REPO_URI="git://github.com/ispc/ispc.git"
37 + KEYWORDS=""
38 +else
39 + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 + KEYWORDS="~amd64 ~x86"
41 +fi
42 +
43 +LICENSE="BSD BSD-2 UoI-NCSA"
44 +SLOT="0"
45 +IUSE="examples"
46 +
47 +RDEPEND="
48 + >=sys-devel/clang-3.0
49 + >=sys-devel/llvm-3.0
50 + "
51 +DEPEND="
52 + ${RDEPEND}
53 + ${PYTHON_DEPS}
54 + sys-devel/bison
55 + sys-devel/flex
56 + "
57 +
58 +src_compile() {
59 + sed -i '/^\t@/s/@//' Makefile || die #make all slient commands ("@") verbose
60 + emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
61 +}
62 +
63 +src_install() {
64 + dobin ispc
65 + dodoc README.rst
66 +
67 + if use examples; then
68 + insinto "/usr/share/doc/${PF}/examples"
69 + docompress -x "/usr/share/doc/${PF}/examples"
70 + doins -r examples/*
71 + fi
72 +}