Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/whdd/
Date: Sun, 29 Jan 2017 17:26:23
Message-Id: 1485710702.83b41f95c034da25f87946f1b490df7f03a0ba9c.kensington@gentoo
1 commit: 83b41f95c034da25f87946f1b490df7f03a0ba9c
2 Author: Andrey Utkin <andrey_utkin <AT> fastmail <DOT> com>
3 AuthorDate: Sun Jan 29 17:02:12 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 17:25:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83b41f95
7
8 sys-block/whdd: export CC to build system
9
10 Use tc-export function from toolchain-funcs eclass to export CC as
11 environment variable.
12
13 This is needed because build system of whdd (>=3.0) has no configure
14 script, but straight makefile and Portage doesn't automatically export
15 CC and other build-related environment variables.
16
17 sys-block/whdd/whdd-3.0.ebuild | 7 +++++++
18 sys-block/whdd/whdd-9999.ebuild | 7 +++++++
19 2 files changed, 14 insertions(+)
20
21 diff --git a/sys-block/whdd/whdd-3.0.ebuild b/sys-block/whdd/whdd-3.0.ebuild
22 index 6c4ff07..822e0f2 100644
23 --- a/sys-block/whdd/whdd-3.0.ebuild
24 +++ b/sys-block/whdd/whdd-3.0.ebuild
25 @@ -7,6 +7,8 @@ EAPI=6
26 DESCRIPTION="Diagnostic and recovery tool for block devices"
27 HOMEPAGE="https://whdd.github.io"
28
29 +inherit toolchain-funcs
30 +
31 if [[ ${PV} == 9999 ]]
32 then
33 EGIT_REPO_URI="https://github.com/${PN}/${PN}"
34 @@ -26,3 +28,8 @@ DEPEND="
35 sys-libs/ncurses:0=[unicode]"
36 RDEPEND="${DEPEND}
37 sys-apps/smartmontools"
38 +
39 +src_compile() {
40 + tc-export CC
41 + default
42 +}
43
44 diff --git a/sys-block/whdd/whdd-9999.ebuild b/sys-block/whdd/whdd-9999.ebuild
45 index 6c4ff07..822e0f2 100644
46 --- a/sys-block/whdd/whdd-9999.ebuild
47 +++ b/sys-block/whdd/whdd-9999.ebuild
48 @@ -7,6 +7,8 @@ EAPI=6
49 DESCRIPTION="Diagnostic and recovery tool for block devices"
50 HOMEPAGE="https://whdd.github.io"
51
52 +inherit toolchain-funcs
53 +
54 if [[ ${PV} == 9999 ]]
55 then
56 EGIT_REPO_URI="https://github.com/${PN}/${PN}"
57 @@ -26,3 +28,8 @@ DEPEND="
58 sys-libs/ncurses:0=[unicode]"
59 RDEPEND="${DEPEND}
60 sys-apps/smartmontools"
61 +
62 +src_compile() {
63 + tc-export CC
64 + default
65 +}