commit:     f96357cd60b47e290acf6e0fa0cad0e98ee1d323
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Tue May  7 18:04:14 2019 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Tue May  7 18:05:02 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f96357cd

dev-libs/libutf8proc: use proper toolchain during tests

Bug: https://bugs.gentoo.org/685266
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild 
b/dev-libs/libutf8proc/libutf8proc-2.3.0-r1.ebuild
index 3d5231b82df..eae095d0a26 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
+}

Reply via email to