# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 GTEST_VERSION="1.10.0" GTEST_DIR_VERSION="1.10.x" inherit cmake-multilib DESCRIPTION="Library implementing a custom algorithm for extracting audio fingerprints" HOMEPAGE="https://acoustid.org/chromaprint" SRC_URI="https://github.com/acoustid/${PN}/releases/download/v${PV}/${P}.tar.gz test? ( https://github.com/google/googletest/archive/v$(ver_cut 1-2 ${GTEST_VERSION}).x.tar.gz -> gtest-${GTEST_VERSION}.tar.gz ) " LICENSE="LGPL-2.1" SLOT="0/1" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" IUSE="test tools" RESTRICT="!test? ( test )" # - Default to fftw to avoid awkward circular dependency w/ ffmpeg # See bug #833821 for an example RDEPEND="tools? ( without fftw3, and with ffmpeg). -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=$(multilib_native_usex !tools) ) cmake_src_configure } multilib_src_test() { cd tests && (./all_tests || die "Tests failed") }