diff options
Diffstat (limited to 'dev-libs/libclc/libclc-0.0.1_pre20140101-r1.ebuild')
-rw-r--r-- | dev-libs/libclc/libclc-0.0.1_pre20140101-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-libs/libclc/libclc-0.0.1_pre20140101-r1.ebuild b/dev-libs/libclc/libclc-0.0.1_pre20140101-r1.ebuild new file mode 100644 index 000000000000..595ceeae8ae4 --- /dev/null +++ b/dev-libs/libclc/libclc-0.0.1_pre20140101-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +EGIT_REPO_URI="http://llvm.org/git/${PN}.git" + +if [[ ${PV} = 9999* ]]; then + GIT_ECLASS="git-2" + EXPERIMENTAL="true" +fi + +inherit base python-any-r1 $GIT_ECLASS + +DESCRIPTION="OpenCL C library" +HOMEPAGE="http://libclc.llvm.org/" + +if [[ $PV = 9999* ]]; then + SRC_URI="${SRC_PATCHES}" +else + SRC_URI="mirror://gentoo/${P}.tar.xz ${SRC_PATCHES}" +fi + +LICENSE="|| ( MIT BSD )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=sys-devel/clang-3.4 + >=sys-devel/llvm-3.4 + <sys-devel/clang-3.6 + <sys-devel/llvm-3.6" +DEPEND="${RDEPEND} + ${PYTHON_DEPS}" + +src_unpack() { + if [[ $PV = 9999* ]]; then + git-2_src_unpack + else + default + mv ${PN}-*/ ${P} || die + fi +} + +src_prepare() { + epatch "${FILESDIR}/libclc-llvm-3.5-compat.patch" +} + +src_configure() { + ./configure.py \ + --with-llvm-config="${EPREFIX}/usr/bin/llvm-config" \ + --prefix="${EPREFIX}/usr" || die +} + +src_compile() { + emake VERBOSE=1 +} |