Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/conf2struct/
Date: Fri, 19 Jul 2019 15:47:23
Message-Id: 1563551230.e4ba8f5a8fa699b615f406bd7f4b4f5ef7a736a2.candrews@gentoo
1 commit: e4ba8f5a8fa699b615f406bd7f4b4f5ef7a736a2
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 19 15:46:08 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 19 15:47:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ba8f5a
7
8 dev-util/conf2struct: Respect CFLAGS and CC
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 ...2struct-9999.ebuild => conf2struct-0_pre0-r1.ebuild} | 17 ++++++++++++++++-
14 dev-util/conf2struct/conf2struct-9999.ebuild | 4 ++++
15 2 files changed, 20 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-util/conf2struct/conf2struct-9999.ebuild b/dev-util/conf2struct/conf2struct-0_pre0-r1.ebuild
18 similarity index 50%
19 copy from dev-util/conf2struct/conf2struct-9999.ebuild
20 copy to dev-util/conf2struct/conf2struct-0_pre0-r1.ebuild
21 index f20edc27e4d..b31468b61cc 100644
22 --- a/dev-util/conf2struct/conf2struct-9999.ebuild
23 +++ b/dev-util/conf2struct/conf2struct-0_pre0-r1.ebuild
24 @@ -12,9 +12,19 @@ if [[ ${PV} == "9999" ]] ; then
25 inherit git-r3
26 else
27 KEYWORDS="~amd64"
28 - SRC_URI="https://github.com/yrutschle/conf2struct/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29 + GIT_COMMIT="10ea3356b65e712fb000f4d37f00e1dc09c1e722"
30 + SRC_URI="https://github.com/yrutschle/conf2struct/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
31 + S="${WORKDIR}/${PN}-${GIT_COMMIT}"
32 fi
33
34 +PATCHES=(
35 + "${FILESDIR}/${P}-install-and-uninstall.patch"
36 + "${FILESDIR}/${P}-cc-and-cflags.patch"
37 + "${FILESDIR}/${P}-destdir.patch"
38 + "${FILESDIR}/${P}-install-not-run-all.patch"
39 + "${FILESDIR}/${P}-dest-exists.patch"
40 +)
41 +
42 LICENSE="BSD-2"
43 SLOT="0"
44 IUSE=""
45 @@ -23,6 +33,11 @@ RDEPEND="dev-libs/libconfig
46 dev-perl/Conf-Libconfig"
47 DEPEND="${RDEPEND}"
48
49 +src_compile(){
50 + # -j1 due to parallel make issue reported upstream at: https://github.com/yrutschle/conf2struct/issues/10
51 + emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
52 +}
53 +
54 src_install(){
55 emake DESTDIR="${D}" prefix="${EPREFIX%/}/usr" install
56 }
57
58 diff --git a/dev-util/conf2struct/conf2struct-9999.ebuild b/dev-util/conf2struct/conf2struct-9999.ebuild
59 index f20edc27e4d..b853d93f1b8 100644
60 --- a/dev-util/conf2struct/conf2struct-9999.ebuild
61 +++ b/dev-util/conf2struct/conf2struct-9999.ebuild
62 @@ -23,6 +23,10 @@ RDEPEND="dev-libs/libconfig
63 dev-perl/Conf-Libconfig"
64 DEPEND="${RDEPEND}"
65
66 +src_compile(){
67 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
68 +}
69 +
70 src_install(){
71 emake DESTDIR="${D}" prefix="${EPREFIX%/}/usr" install
72 }