From: Virgil Dupras Date: Tue, 7 May 2019 18:04:14 +0000 (-0400) Subject: dev-libs/libutf8proc: use proper toolchain during tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f96357cd60b47e290acf6e0fa0cad0e98ee1d323;p=gentoo.git dev-libs/libutf8proc: use proper toolchain during tests Bug: https://bugs.gentoo.org/685266 Signed-off-by: Virgil Dupras Package-Manager: Portage-2.3.62, Repoman-2.3.11 --- diff --git a/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild b/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild index 3d5231b82df9..eae095d0a26d 100644 --- a/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild +++ b/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild @@ -26,12 +26,16 @@ PATCHES=( "${FILESDIR}/${PN}-2.3.0-tests-nofetch.patch" ) +_emake() { + emake CC=$(tc-getCC) AR=$(tc-getAR) $@ +} + src_compile() { - emake CC=$(tc-getCC) AR=$(tc-getAR) + _emake } src_install() { - emake DESTDIR="${D}" \ + _emake DESTDIR="${D}" \ prefix="${EPREFIX}/usr" \ libdir="${EPREFIX}/usr/$(get_libdir)" \ install @@ -43,3 +47,7 @@ src_install() { dodir /usr/include/libutf8proc dosym ../utf8proc.h /usr/include/libutf8proc/utf8proc.h } + +src_test() { + _emake check +}