[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/39: gnu: libcanberra: Update package definition.
From: |
guix-commits |
Subject: |
03/39: gnu: libcanberra: Update package definition. |
Date: |
Thu, 16 Jul 2020 21:40:40 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 7f0e48254b609885d0896006278c7d83de2c6bf6
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Jul 8 13:45:25 2020 -0400
gnu: libcanberra: Update package definition.
* gnu/packages/libcanberra.scm (libcanberra): Update package definition.
[source]<origin>[method]: Change from url-fetch to git-fetch.
[uri]: Change from fedora to debian.
[build-system]: Change from gnu to glib-or-gtk.
[outputs]: New output "doc".
[inputs]: Add glib and tdb. Remove gtk+.
[propagated-inputs]: Add gtk+-2 and gtk+.
[synopsis]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/libcanberra.scm | 99 ++++++++++++++++++++++++--------------------
1 file changed, 55 insertions(+), 44 deletions(-)
diff --git a/gnu/packages/libcanberra.scm b/gnu/packages/libcanberra.scm
index 32d1cd3..0820a66 100644
--- a/gnu/packages/libcanberra.scm
+++ b/gnu/packages/libcanberra.scm
@@ -26,10 +26,12 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix utils)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages databases)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
#:use-module (gnu packages glib)
@@ -46,44 +48,40 @@
(version "0.30")
(source
(origin
- (method url-fetch)
-
- ;; This used to be at 0pointer.de but it vanished.
- (uri (string-append
- "http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-"
- version ".tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/libcanberra-"
- version ".tar.xz"))
- (sha256
- (base32
- "0wps39h8rx2b00vyvkia5j40fkak3dpipp1kzilqla0cgvk73dn2"))
- ;; "sound-theme-freedesktop" is the default and fall-back sound theme for
- ;; XDG desktops and should always be present.
- ;; http://www.freedesktop.org/wiki/Specifications/sound-theme-spec/
- ;; We make sure libcanberra will find it.
- ;;
- ;; We add the default sounds store directory to the code dealing with
- ;; XDG_DATA_DIRS and not XDG_DATA_HOME. This is because XDG_DATA_HOME
- ;; can only be a single directory and is inspected first. XDG_DATA_DIRS
- ;; can list an arbitrary number of directories and is only inspected
- ;; later. This is designed to allows the user to modify any theme at
- ;; his pleasure.
- (patch-flags '("-p0"))
- (patches
- (search-patches "libcanberra-sound-theme-freedesktop.patch"))))
- (build-system gnu-build-system)
- (inputs
- `(("alsa-lib" ,alsa-lib)
- ("gstreamer" ,gstreamer)
- ("gtk+" ,gtk+)
- ("libltdl" ,libltdl)
- ("libvorbis" ,libvorbis)
- ("pulseaudio" ,pulseaudio)
- ("udev" ,eudev)
- ("sound-theme-freedesktop" ,sound-theme-freedesktop)))
- (native-inputs
- `(("pkg-config" ,pkg-config)))
+ (method git-fetch)
+ ;; The original source is no longer available.
+ (uri
+ (git-reference
+ (url "https://salsa.debian.org/gnome-team/libcanberra.git")
+ (commit
+ (string-append "upstream/" version))))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "14bsgi9pf9hbscsg4ad7pzv9k9iyb5nkns474syx9sw8kfgzx6cc"))
+ ;; "sound-theme-freedesktop" is the default and fall-back sound theme
for
+ ;; XDG desktops and should always be present.
+ ;; http://www.freedesktop.org/wiki/Specifications/sound-theme-spec/
+ ;; We make sure libcanberra will find it.
+ ;;
+ ;; We add the default sounds store directory to the code dealing with
+ ;; XDG_DATA_DIRS and not XDG_DATA_HOME. This is because XDG_DATA_HOME
+ ;; can only be a single directory and is inspected first. XDG_DATA_DIRS
+ ;; can list an arbitrary number of directories and is only inspected
+ ;; later. This is designed to allows the user to modify any theme at
+ ;; his pleasure.
+ (patch-flags '("-p0"))
+ (patches
+ (search-patches "libcanberra-sound-theme-freedesktop.patch"))))
+ (build-system glib-or-gtk-build-system)
+ (outputs '("out" "doc"))
(arguments
- `(#:phases
+ `(#:configure-flags
+ (list
+ (string-append "--with-html-dir="
+ (assoc-ref %outputs "doc")
+ "/share/gtk-doc/html"))
+ #:phases
(modify-phases %standard-phases
(add-before 'build 'patch-default-sounds-directory
(lambda* (#:key inputs #:allow-other-keys)
@@ -93,14 +91,27 @@
(assoc-ref inputs "sound-theme-freedesktop")
"/share")))
#t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("alsa-lib" ,alsa-lib)
+ ("glib" ,glib)
+ ("gstreamer" ,gstreamer)
+ ("libltdl" ,libltdl)
+ ("libvorbis" ,libvorbis)
+ ("pulseaudio" ,pulseaudio)
+ ("tdb" ,tdb)
+ ("udev" ,eudev)
+ ("sound-theme-freedesktop" ,sound-theme-freedesktop)))
+ (propagated-inputs
+ `(("gtk+2" ,gtk+-2)
+ ("gtk+3" ,gtk+)))
+ (synopsis "FreeDesktop.org Sound Theme and Name Specifications")
+ (description "Libcanberra is an implementation of the XDG Sound Theme and
+Name Specifications, for generating event sounds on free desktops, such as
+GNOME. It comes with several backends (ALSA, PulseAudio, OSS, GStreamer, null)
+and is designed to be portable.")
(home-page "http://0pointer.de/lennart/projects/libcanberra/")
- (synopsis
- "Implementation of the XDG Sound Theme and Name Specifications")
- (description
- "Libcanberra is an implementation of the XDG Sound Theme and Name
-Specifications, for generating event sounds on free desktops, such as
-GNOME. It comes with several backends (ALSA, PulseAudio, OSS, GStreamer,
-null) and is designed to be portable.")
(license lgpl2.1+)))
(define-public libcanberra/gtk+-2
- branch wip-desktop updated (7c1fcbb -> ab1b6cb), guix-commits, 2020/07/16
- 01/39: gnu: ibus: Update package definition., guix-commits, 2020/07/16
- 04/39: gnu: libgee: Update package definition., guix-commits, 2020/07/16
- 02/39: gnu: json-glib: Update package definition., guix-commits, 2020/07/16
- 03/39: gnu: libcanberra: Update package definition.,
guix-commits <=
- 05/39: gnu: libnotify: Update package definition., guix-commits, 2020/07/16
- 07/39: gnu: Add rust-cssparser-macros@0.6.0., guix-commits, 2020/07/16
- 08/39: gnu: Add rust-cssparser@0.27.2., guix-commits, 2020/07/16
- 10/39: gnu: Add rust-float-cmp@0.6.0., guix-commits, 2020/07/16
- 09/39: gnu: Add rust-downcast-rs@1.2.0., guix-commits, 2020/07/16
- 16/39: gnu: Add rust-gdk-pixbuf@0.8.0., guix-commits, 2020/07/16
- 06/39: gnu: librsvg@2.40.21: Update package definition., guix-commits, 2020/07/16
- 11/39: gnu: Add rust-serial-test-derive@0.4.0., guix-commits, 2020/07/16
- 12/39: gnu: Add rust-serial-test@0.4.0., guix-commits, 2020/07/16
- 13/39: gnu: Add rust-serial-test@0.1.0., guix-commits, 2020/07/16