From: Christopher Baines <mail@cbaines.net>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add sonata
Date: Sat, 10 Sep 2016 12:31:33 +0100 [thread overview]
Message-ID: <20160910113133.29711-2-mail@cbaines.net> (raw)
In-Reply-To: <20160910113133.29711-1-mail@cbaines.net>
* gnu/packages/mpd.scm (sonata): New variable.
---
gnu/packages/mpd.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 279ec68..cc9d583 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -27,10 +27,14 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix utils)
+ #:use-module ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (gnu packages avahi)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages gettext)
+ #:use-module (gnu packages gnome)
+ #:use-module (gnu packages gtk)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages readline)
#:use-module (gnu packages compression)
@@ -263,3 +267,51 @@ interface for the Music Player Daemon.")
(package (inherit mpd2)
(native-inputs `(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs mpd2))))))
+
+(define-public sonata
+ (package
+ (name "sonata")
+ (version "1.7b1")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://github.com/multani/sonata/archive/v"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "07gq2nxqwxs0qyxjbay7k5j25zd386bn7wdr2dl1gk53diwnn7s0"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:modules ((guix build gnu-build-system)
+ (guix build python-build-system)
+ ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
+ (guix build utils))
+ #:imported-modules (,@%gnu-build-system-modules
+ (guix build python-build-system)
+ (guix build glib-or-gtk-build-system))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'glib-or-gtk-wrap
+ (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
+ (add-after 'install 'wrap-sonata
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
+ (wrap-program (string-append out "/bin/sonata")
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
+ #t)))))
+ (inputs
+ `(("gettext" ,gnu-gettext)
+ ("python-mpd2" ,python-mpd2)
+ ("gtk+" ,gtk+)
+ ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+ ("gobject-introspection" ,gobject-introspection)
+ ("adwaita-icon-theme" ,adwaita-icon-theme)
+ ("python-pygobject" ,python-pygobject)))
+ (synopsis "Elegant client for the Music Player Daemon")
+ (description "Sonata is an elegant graphical client for the Music Player
+Daemon (MPD). It supports playlists, multiple profiles (connecting to different
+MPD servers, search and multimedia key support.")
+ (home-page "http://www.nongnu.org/sonata/")
+ (license license:gpl3+)))
--
2.9.3
next prev parent reply other threads:[~2016-09-10 11:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-18 21:26 [PATCH] Add sonata and python-mpd2 Christopher Baines
2016-02-18 21:26 ` [PATCH 1/2] gnu: Add python-mpd2 Christopher Baines
2016-02-18 22:00 ` Leo Famulari
2016-02-18 22:08 ` Christopher Baines
2016-02-18 22:51 ` Leo Famulari
2016-02-18 21:26 ` [PATCH 2/2] gnu: Add sonata Christopher Baines
2016-02-18 23:57 ` Leo Famulari
2016-02-20 11:18 ` Andreas Enge
2016-02-20 12:37 ` Leo Famulari
2016-02-20 18:49 ` Thompson, David
2016-02-29 7:18 ` Ricardo Wurmus
2016-09-10 11:31 ` [PATCH] " Christopher Baines
2016-09-10 11:31 ` Christopher Baines [this message]
2016-09-10 18:08 ` Leo Famulari
2016-09-11 10:00 ` Christopher Baines
2016-09-11 10:00 ` Christopher Baines
2016-09-11 15:08 ` Leo Famulari
2016-09-12 16:04 ` Thompson, David
2016-09-11 17:01 ` Alex Kost
2016-09-11 18:11 ` Leo Famulari
2016-09-11 18:34 ` Christopher Baines
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160910113133.29711-2-mail@cbaines.net \
--to=mail@cbaines.net \
--cc=guix-devel@gnu.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.
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).