From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWAt7-0007Aa-Vo for guix-patches@gnu.org; Mon, 01 Jan 2018 19:57:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWAt4-0003OE-2U for guix-patches@gnu.org; Mon, 01 Jan 2018 19:57:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51647) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWAt3-0003O3-Uh for guix-patches@gnu.org; Mon, 01 Jan 2018 19:57:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWAt3-0002xq-Mx for guix-patches@gnu.org; Mon, 01 Jan 2018 19:57:01 -0500 Subject: [bug#29938] [PATCH 2/3] gnu: Add libmusicbrainz. Resent-Message-ID: From: nee@cock.li Date: Tue, 2 Jan 2018 01:56:28 +0100 Message-Id: <1514854589-21747-2-git-send-email-nee@cock.li> In-Reply-To: <1514854589-21747-1-git-send-email-nee@cock.li> References: <1514854589-21747-1-git-send-email-nee@cock.li> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29938@debbugs.gnu.org Cc: nee From: nee * gnu/packages/music.scm (libmusicbrainz): New variable. --- gnu/packages/music.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 5ab9978f7..69641f578 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -114,6 +114,7 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages tex) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages web) #:use-module (gnu packages wxwidgets) @@ -3777,3 +3778,35 @@ an identifier which can be used to lookup the CD at MusicBrainz. Additionally, it provides a submission URL for adding the disc ID to the database and gathers ISRCs and the MCN (=UPC/EAN) from disc.") (license license:lgpl2.1+))) + +(define-public libmusicbrainz + (package + (name "libmusicbrainz") + (version "5.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/metabrainz/libmusicbrainz/releases/download/release-" + version "/libmusicbrainz-" version ".tar.gz")) + (sha256 + (base32 + "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7")) )) + (build-system cmake-build-system) + (arguments `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (and + ;; requires network connections + ;; (zero? (system* "tests/mbtest")) + (zero? (system* "tests/ctest")))))))) + (inputs `(("neon" ,neon) + ("libxml2" ,libxml2))) + (native-inputs `(("pkg-config" ,pkg-config))) + (home-page "https://musicbrainz.org/doc/libmusicbrainz") + (synopsis "MusicBrainz client library") + (description "The MusicBrainz Client Library (libmusicbrainz), also known as +mb_client, is a development library geared towards developers who wish to add +MusicBrainz lookup capabilities to their applications.") + (license license:lgpl2.1+))) -- 2.15.1