Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libutf8proc/
Date: Tue, 07 May 2019 18:05:21
Message-Id: 1557252302.f96357cd60b47e290acf6e0fa0cad0e98ee1d323.vdupras@gentoo
1 commit: f96357cd60b47e290acf6e0fa0cad0e98ee1d323
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 7 18:04:14 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue May 7 18:05:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f96357cd
7
8 dev-libs/libutf8proc: use proper toolchain during tests
9
10 Bug: https://bugs.gentoo.org/685266
11 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
12 Package-Manager: Portage-2.3.62, Repoman-2.3.11
13
14 dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild | 12 ++++++++++--
15 1 file changed, 10 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild b/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild
18 index 3d5231b82df..eae095d0a26 100644
19 --- a/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild
20 +++ b/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild
21 @@ -26,12 +26,16 @@ PATCHES=(
22 "${FILESDIR}/${PN}-2.3.0-tests-nofetch.patch"
23 )
24
25 +_emake() {
26 + emake CC=$(tc-getCC) AR=$(tc-getAR) $@
27 +}
28 +
29 src_compile() {
30 - emake CC=$(tc-getCC) AR=$(tc-getAR)
31 + _emake
32 }
33
34 src_install() {
35 - emake DESTDIR="${D}" \
36 + _emake DESTDIR="${D}" \
37 prefix="${EPREFIX}/usr" \
38 libdir="${EPREFIX}/usr/$(get_libdir)" \
39 install
40 @@ -43,3 +47,7 @@ src_install() {
41 dodir /usr/include/libutf8proc
42 dosym ../utf8proc.h /usr/include/libutf8proc/utf8proc.h
43 }
44 +
45 +src_test() {
46 + _emake check
47 +}