sys-block/whdd: export CC to build system
authorAndrey Utkin <andrey_utkin@fastmail.com>
Sun, 29 Jan 2017 17:02:12 +0000 (17:02 +0000)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 29 Jan 2017 17:25:02 +0000 (04:25 +1100)
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
sys-block/whdd/whdd-9999.ebuild

index 6c4ff079329aae5f5b55d13b63558a05fc298a06..822e0f269d4cd30c23188374991761993ec61bc9 100644 (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
+}
index 6c4ff079329aae5f5b55d13b63558a05fc298a06..822e0f269d4cd30c23188374991761993ec61bc9 100644 (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
+}