Subject: [PATCH 6/6] gnu: Add Clementine.

From: Pierre Langlois <[email-masked]>
Date: Sat, 18 Feb 2017 18:02:49 +0000

* gnu/packages/music.scm (clementine): New variable.
---
 gnu/packages/music.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 84c537d86..fe8cad325 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -51,7 +51,10 @@
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages crypto)
   #:use-module (gnu packages cyrus-sasl)
+  #:use-module (gnu packages databases)
+  #:use-module (gnu packages datastructures)
   #:use-module (gnu packages docbook)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages emacs)
@@ -69,6 +72,7 @@
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages image)
@@ -76,6 +80,7 @@
   #:use-module (gnu packages java)
   #:use-module (gnu packages linux) ; for alsa-utils
   #:use-module (gnu packages libffi)
+  #:use-module (gnu packages libusb)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages man)
   #:use-module (gnu packages mp3)
@@ -87,6 +92,7 @@
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pulseaudio) ;libsndfile
+  #:use-module (gnu packages protobuf)
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages rdf)
@@ -172,6 +178,55 @@ and play MIDI files with a few clicks in a user-friendly interface offering
 score, keyboard, guitar, drum and controller views.")
     (license license:gpl3+)))
 
+(define-public clementine
+  (package
+    (name "clementine")
+    (version "1.3.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                     "https://github.com/clementine-player/Clementine/archive/"
+                     version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+                (base32
+                  "0z7k73wyz54c3020lb6x2dgw0vz4ri7wcl3vs03qdj5pk8d971gq"))))
+    (build-system cmake-build-system)
+    (arguments
+      '(#:tests? #f
+        ;; TODO: Package projectm to enable visualisations.
+        #:configure-flags '("-DENABLE_VISUALISATIONS=OFF")))
+    (native-inputs
+      `(("gettext" ,gettext-minimal)
+        ("pkg-config" ,pkg-config)))
+    (inputs
+      `(("boost" ,boost)
+        ("chromaprint" ,chromaprint)
+        ("cryptopp" ,cryptopp)
+        ("fftw" ,fftw)
+        ("glib" ,glib)
+        ("glu" ,glu)
+        ("gstreamer" ,gstreamer)
+        ("gst-plugins-base" ,gst-plugins-base)
+        ("libcdio" ,libcdio)
+        ("libechonest" ,libechonest)
+        ;; TODO: Package libgpod.
+        ("libmtp" ,libmtp)
+        ("libxml2" ,libxml2)
+        ("protobuf" ,protobuf)
+        ("pulseaudio" ,pulseaudio)
+        ("qjson" ,qjson)
+        ("qt" ,qt-4)
+        ("sqlite" ,sqlite)
+        ("sparsehash" ,sparsehash)
+        ("taglib" ,taglib)))
+    (home-page "http://clementine-player.org")
+    (synopsis "Music player and library organizer")
+    (description "Clementine is a multiplatform music player.  It is inspired
+by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
+playing your music.")
+    (license license:gpl3)))
+
 (define-public cmus
   (package
     (name "cmus")
-- 
2.11.1