public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/musicbrainz/
Date: Fri, 10 Nov 2017 12:38:10 +0000 (UTC)	[thread overview]
Message-ID: <1510317478.7156e567691d13c04da466f5f9392a124d1618e5.asturm@gentoo> (raw)

commit:     7156e567691d13c04da466f5f9392a124d1618e5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 10 12:35:15 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 10 12:37:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7156e567

media-libs/musicbrainz: Disable unittests if USE=!test

Closes: https://bugs.gentoo.org/603112
Package-Manager: Portage-2.3.8, Repoman-2.3.4

 media-libs/musicbrainz/musicbrainz-3.0.3.ebuild | 10 +++++++++-
 media-libs/musicbrainz/musicbrainz-5.1.0.ebuild |  5 +++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/media-libs/musicbrainz/musicbrainz-3.0.3.ebuild b/media-libs/musicbrainz/musicbrainz-3.0.3.ebuild
index f30c547810f..4bb2649b464 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 f8f09eb468e..420253156f0 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
 


             reply	other threads:[~2017-11-10 12:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-10 12:38 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-07 23:24 [gentoo-commits] repo/gentoo:master commit in: media-libs/musicbrainz/ Andreas Sturmlechner
2024-01-28 21:21 Sam James
2024-01-28 20:02 Sam James
2024-01-28 18:57 Sam James
2024-01-28 18:57 Sam James
2024-01-28 18:57 Sam James
2024-01-28 18:57 Sam James
2024-01-28 18:57 Sam James
2020-06-04 20:07 Andreas Sturmlechner
2018-09-16  8:03 Andreas Sturmlechner
2018-02-19 19:42 David Seifert
2017-11-10 12:38 Andreas Sturmlechner
2017-07-01 15:24 Alexis Ballier
2017-02-25 20:59 Johannes Huber
2017-02-23 22:58 Michael Weber
2017-01-31 15:51 Tobias Klausmann
2017-01-31  9:13 Agostino Sarubbo
2017-01-30 18:16 Johannes Huber
2017-01-30 18:16 Johannes Huber
2016-12-14 21:13 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1510317478.7156e567691d13c04da466f5f9392a124d1618e5.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox