summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-11-10 13:35:15 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2017-11-10 13:37:58 +0100
commit7156e567691d13c04da466f5f9392a124d1618e5 (patch)
tree86d97378a075169cb0764aa2a38b843abffa4252 /media-libs/musicbrainz
parentnet-analyzer/zabbix: Bump #637028 (diff)
downloadgentoo-7156e567691d13c04da466f5f9392a124d1618e5.tar.gz
gentoo-7156e567691d13c04da466f5f9392a124d1618e5.tar.bz2
gentoo-7156e567691d13c04da466f5f9392a124d1618e5.zip
media-libs/musicbrainz: Disable unittests if USE=!test
Closes: https://bugs.gentoo.org/603112 Package-Manager: Portage-2.3.8, Repoman-2.3.4
Diffstat (limited to 'media-libs/musicbrainz')
-rw-r--r--media-libs/musicbrainz/musicbrainz-3.0.3.ebuild10
-rw-r--r--media-libs/musicbrainz/musicbrainz-5.1.0.ebuild5
2 files changed, 14 insertions, 1 deletions
diff --git a/media-libs/musicbrainz/musicbrainz-3.0.3.ebuild b/media-libs/musicbrainz/musicbrainz-3.0.3.ebuild
index f30c547810f8..4bb2649b4644 100644
--- a/media-libs/musicbrainz/musicbrainz-3.0.3.ebuild
+++ b/media-libs/musicbrainz/musicbrainz-3.0.3.ebuild
@@ -1,5 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+
EAPI=5
inherit cmake-utils
@@ -26,3 +27,10 @@ CMAKE_IN_SOURCE_BUILD=true
DOCS="README.txt NEWS.txt AUTHORS.txt"
PATCHES=( "${FILESDIR}/${PN}-3.0.2-gcc44.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package test CppUnit)
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-libs/musicbrainz/musicbrainz-5.1.0.ebuild b/media-libs/musicbrainz/musicbrainz-5.1.0.ebuild
index f8f09eb468ed..420253156f0b 100644
--- a/media-libs/musicbrainz/musicbrainz-5.1.0.ebuild
+++ b/media-libs/musicbrainz/musicbrainz-5.1.0.ebuild
@@ -24,6 +24,11 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/lib${P}"
+src_prepare() {
+ use test || cmake_comment_add_subdirectory tests
+ cmake-utils_src_prepare
+}
+
src_install() {
cmake-utils_src_install