commit: 83b41f95c034da25f87946f1b490df7f03a0ba9c Author: Andrey Utkin <andrey_utkin <AT> fastmail <DOT> com> AuthorDate: Sun Jan 29 17:02:12 2017 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sun Jan 29 17:25:02 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83b41f95
sys-block/whdd: export CC to build system Use tc-export function from toolchain-funcs eclass to export CC as environment variable. This is needed because build system of whdd (>=3.0) has no configure script, but straight makefile and Portage doesn't automatically export CC and other build-related environment variables. sys-block/whdd/whdd-3.0.ebuild | 7 +++++++ sys-block/whdd/whdd-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/sys-block/whdd/whdd-3.0.ebuild b/sys-block/whdd/whdd-3.0.ebuild index 6c4ff07..822e0f2 100644 --- a/sys-block/whdd/whdd-3.0.ebuild +++ b/sys-block/whdd/whdd-3.0.ebuild @@ -7,6 +7,8 @@ EAPI=6 DESCRIPTION="Diagnostic and recovery tool for block devices" HOMEPAGE="https://whdd.github.io" +inherit toolchain-funcs + if [[ ${PV} == 9999 ]] then EGIT_REPO_URI="https://github.com/${PN}/${PN}" @@ -26,3 +28,8 @@ DEPEND=" sys-libs/ncurses:0=[unicode]" RDEPEND="${DEPEND} sys-apps/smartmontools" + +src_compile() { + tc-export CC + default +} diff --git a/sys-block/whdd/whdd-9999.ebuild b/sys-block/whdd/whdd-9999.ebuild index 6c4ff07..822e0f2 100644 --- a/sys-block/whdd/whdd-9999.ebuild +++ b/sys-block/whdd/whdd-9999.ebuild @@ -7,6 +7,8 @@ EAPI=6 DESCRIPTION="Diagnostic and recovery tool for block devices" HOMEPAGE="https://whdd.github.io" +inherit toolchain-funcs + if [[ ${PV} == 9999 ]] then EGIT_REPO_URI="https://github.com/${PN}/${PN}" @@ -26,3 +28,8 @@ DEPEND=" sys-libs/ncurses:0=[unicode]" RDEPEND="${DEPEND} sys-apps/smartmontools" + +src_compile() { + tc-export CC + default +}