summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-04-22 13:10:28 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-04-22 13:10:46 +0200
commit59532dc8f0358caf3b99b3d5a5461975eaabaafd (patch)
treeb78d592738c653c6587797030840ff3865c8c20e /media-libs/chromaprint
parentx11-misc/picom: drop libxdg-basedir dep (diff)
downloadgentoo-59532dc8f0358caf3b99b3d5a5461975eaabaafd.tar.gz
gentoo-59532dc8f0358caf3b99b3d5a5461975eaabaafd.tar.bz2
gentoo-59532dc8f0358caf3b99b3d5a5461975eaabaafd.zip
media-libs/chromaprint: fixed running tests in 1.5.0
Closes: https://bugs.gentoo.org/754255 Closes: https://bugs.gentoo.org/720852 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs/chromaprint')
-rw-r--r--media-libs/chromaprint/chromaprint-1.5.0.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/media-libs/chromaprint/chromaprint-1.5.0.ebuild b/media-libs/chromaprint/chromaprint-1.5.0.ebuild
index 443f5af521e7..c80eaf9bc0d9 100644
--- a/media-libs/chromaprint/chromaprint-1.5.0.ebuild
+++ b/media-libs/chromaprint/chromaprint-1.5.0.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CMAKE_ECLASS=cmake
GTEST_VERSION="1.10.0"
+GTEST_DIR_VERSION="1.10.x"
inherit cmake-multilib
DESCRIPTION="Library implementing a custom algorithm for extracting audio fingerprints"
@@ -30,7 +31,7 @@ DOCS=( NEWS.txt README.md )
S="${WORKDIR}/${PN}-v${PV}"
multilib_src_configure() {
- export GTEST_ROOT="${WORKDIR}/googletest-release-${GTEST_VERSION}/googletest/"
+ export GTEST_ROOT="${WORKDIR}/googletest-${GTEST_DIR_VERSION}/googletest/"
local mycmakeargs=(
-DBUILD_TOOLS=$(multilib_native_usex tools ON OFF)
-DBUILD_TESTS=$(usex test ON OFF)
@@ -41,5 +42,5 @@ multilib_src_configure() {
}
multilib_src_test() {
- emake check
+ cd tests && (./all_tests || die "Tests failed")
}