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.
This commit is contained in:
Andrey Utkin
2017-01-29 17:02:12 +00:00
committed by Michael Palimaka
parent 390386b252
commit 83b41f95c0
2 changed files with 14 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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
}