From: Guilherme Amadio Date: Tue, 6 Mar 2018 10:37:07 +0000 (+0100) Subject: dev-libs/libclc: prefix support X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c1f589dc4dba52948b85b762a5c09a8e8d64ad3;p=gentoo.git dev-libs/libclc: prefix support Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- diff --git a/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild index 800e35118e41..58c4b2f64c1e 100644 --- a/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild +++ b/dev-libs/libclc/libclc-0.2.0_pre20170929.ebuild @@ -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 @@ -15,7 +15,7 @@ else GIT_ECLASS="vcs-snapshot" fi -inherit llvm python-any-r1 toolchain-funcs ${GIT_ECLASS} +inherit llvm prefix python-any-r1 toolchain-funcs ${GIT_ECLASS} DESCRIPTION="OpenCL C library" HOMEPAGE="http://libclc.llvm.org/" @@ -47,6 +47,13 @@ llvm_check_deps() { has_version "sys-devel/clang:${LLVM_SLOT}" } +src_prepare() { + default + if use prefix; then + hprefixify configure.py + fi +} + pkg_setup() { # we do not need llvm_pkg_setup python-any-r1_pkg_setup