unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46579] [PATCH] gnu: Add strawberry.
@ 2021-02-16 23:53 Leo Prikler
  2021-02-17  1:08 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Prikler @ 2021-02-16 23:53 UTC (permalink / raw)
  To: 46579

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

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 8b09a1588a..c21435bf6c 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -443,6 +443,98 @@ playing your music.")
                ;; qocoa is under MIT and CC by-sa for the icons.
                license:cc-by-sa3.0))))
 
+(define-public strawberry
+  (package
+    (name "strawberry")
+    (version "0.8.5")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/strawberrymusicplayer/strawberry")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0lfbbmhfzwlhnjhzfk5zn8h71cabx47pzfkcw2nylkbqkz83r57r"))
+              (modules '((guix build utils)
+                         (ice-9 regex)))
+              (snippet
+               '(begin
+                  (use-modules ((ice-9 regex)))
+                  (for-each
+                   (lambda (dir)
+                     ;; TODO: The following dependencies are still bundled:
+                     ;; - "singleapplication"
+                     (let ((bundled '("singleapplication")))
+                       (if (not
+                            (string-match
+                              (string-append ".?*(" (string-join bundled "|") ")")
+                              dir))
+                           (delete-file-recursively dir))))
+                   (find-files "3rdparty"
+                               (lambda (file stat)
+                                 (string-match "^3rdparty/[^/]*$" file))
+                               #:directories? #t))
+                  #t))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:test-target "run_strawberry_tests"
+       #:configure-flags
+       (list "-DUSE_SYSTEM_TAGLIB=TRUE"
+             "-DBUILD_TESTS=TRUE")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-program
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out             (assoc-ref outputs "out"))
+                   (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
+               (wrap-program (string-append out "/bin/strawberry")
+                 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
+               #t)))
+         (add-before 'check 'pre-check
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((xorg-server (assoc-ref inputs "xorg-server")))
+               (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
+               (setenv "DISPLAY" ":1")
+               (setenv "HOME" (getcwd))
+               #t))))))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)
+       ("googletest" ,googletest)
+       ("pkg-config" ,pkg-config)
+       ("qtlinguist" ,qttools)
+       ("xorg-server" ,xorg-server-for-tests)))
+    (inputs
+     `(("alsa-lib" ,alsa-lib)
+       ("boost" ,boost)
+       ("chromaprint" ,chromaprint)
+       ("dbus" ,dbus)
+       ("fftw" ,fftw)
+       ("glib" ,glib)
+       ("gnutls" ,gnutls)
+       ("gstreamer" ,gstreamer)
+       ("gst-plugins-base" ,gst-plugins-base)
+       ("gst-plugins-good" ,gst-plugins-good)
+       ("libcdio" ,libcdio)
+       ("libmtp" ,libmtp)
+       ("protobuf" ,protobuf)
+       ("pulseaudio" ,pulseaudio)
+       ("qtbase" ,qtbase)
+       ("qtx11extras" ,qtx11extras)
+       ("sqlite" ,sqlite)
+       ("taglib" ,taglib)))
+    (home-page "https://www.strawberrymusicplayer.org/")
+    (synopsis "Music player and library organizer")
+    (description "Strawberry is a music player and music collection organizer.
+It is a fork of Clementine aimed at music collectors and audiophiles.")
+    (license (list
+              ;; strawberry.
+              license:gpl3+
+              ;; singleapplication
+              license:expat
+              ;; icons.
+              license:cc-by-sa3.0))))
+
 (define-public cmus
   (package
     (name "cmus")
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#46579] [PATCH] gnu: Add strawberry.
  2021-02-16 23:53 [bug#46579] [PATCH] gnu: Add strawberry Leo Prikler
@ 2021-02-17  1:08 ` Leo Famulari
  2021-02-17  9:18   ` bug#46579: " Leo Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2021-02-17  1:08 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 46579

On Wed, Feb 17, 2021 at 12:53:58AM +0100, Leo Prikler wrote:
> * gnu/packages/music.scm (strawberry): New variable.

Great work, thanks! I'm happy to see that people are working upstream on
music players.

Please push. But first...

> diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm

Remember to add your name to the list of authors of this file.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#46579: [PATCH] gnu: Add strawberry.
  2021-02-17  1:08 ` Leo Famulari
@ 2021-02-17  9:18   ` Leo Prikler
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Prikler @ 2021-02-17  9:18 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 46579-done

Am Dienstag, den 16.02.2021, 20:08 -0500 schrieb Leo Famulari:
> On Wed, Feb 17, 2021 at 12:53:58AM +0100, Leo Prikler wrote:
> > * gnu/packages/music.scm (strawberry): New variable.
> 
> Great work, thanks! I'm happy to see that people are working upstream
> on
> music players.
You make me blush.

> Please push. But first...
> 
> > diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
> 
> Remember to add your name to the list of authors of this file.
Done.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-17  9:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 23:53 [bug#46579] [PATCH] gnu: Add strawberry Leo Prikler
2021-02-17  1:08 ` Leo Famulari
2021-02-17  9:18   ` bug#46579: " Leo Prikler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).