[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
113/201: gnu: gusb-minimal: Introduce minimal variant.
From: |
guix-commits |
Subject: |
113/201: gnu: gusb-minimal: Introduce minimal variant. |
Date: |
Mon, 1 Nov 2021 23:18:52 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 1ab9e7fa45364b6ab2eb41c4c31670f1f109bafc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Oct 15 16:46:03 2021 -0400
gnu: gusb-minimal: Introduce minimal variant.
This is needed to prevent a dependency cycle between Inkscape and GTK+.
* gnu/packages/gnome.scm (gusb-minimal): New variable.
[configure-flags]: Disable docs.
[native-inputs]: Remove gtk-doc.
(gusb): Rewrite in terms of gusb-minimal.
[configure-flags]: Enable docs.
[native-inputs]: Add gtk-doc.
---
gnu/packages/gnome.scm | 42 +++++++++++++++++++++++++++---------------
1 file changed, 27 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index e414816..2affe81 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6586,38 +6586,38 @@ GVFS comes with a set of backends, including trash
support, SFTP, SMB, HTTP,
DAV, and others.")
(license license:lgpl2.0+)))
-(define-public gusb
+(define-public gusb-minimal
(package
- (name "gusb")
+ (name "gusb-minimal")
(version "0.3.5")
(source (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/hughsie/libgusb")
- (commit version)))
+ (url "https://github.com/hughsie/libgusb")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0ifhdqhpyxwsg0z9s1anj7cf5pya5qsqyp5ksh9n7mqwa4lrjkl8"))))
(build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ;libusb fails to initialize. Wonder what that is.
+ #:configure-flags
+ (cons "-Ddocs=false"
+ (if ,(%current-target-system)
+ ;; Introspection data cannot currently be cross-compiled.
+ '("-Dintrospection=false"
+ ;; Requires introspection data.
+ "-Dvapi=false")
+ '()))))
(native-inputs
`(("gobject-introspection" ,gobject-introspection)
("pkg-config" ,pkg-config)
- ("vala" ,vala)
- ("gtk-doc" ,gtk-doc/stable)))
+ ("vala" ,vala)))
(propagated-inputs
;; Both of these are required by gusb.pc.
`(("glib" ,glib)
("libusb" ,libusb)))
- (arguments
- `(#:tests? #f ;libusb fails to initialize. Wonder what that is.
- #:configure-flags
- ,(if (%current-target-system)
- ;; Introspection data cannot currently be cross-compiled.
- ''("-Dintrospection=false"
- ;; Requires introspection data.
- "-Dvapi=false")
- ''())))
(home-page "https://github.com/hughsie/libgusb")
(synopsis "GLib binding for libusb1")
(description
@@ -6627,6 +6627,18 @@ and integration into a mainloop. This makes it easy to
integrate low level
USB transfers with your high-level application or system daemon.")
(license license:lgpl2.1+)))
+(define-public gusb
+ (package/inherit gusb-minimal
+ (name "gusb")
+ (arguments
+ (substitute-keyword-arguments (package-arguments gusb-minimal)
+ ((#:configure-flags flags)
+ `(cons "-Ddocs=true"
+ (delete "-Ddocs=false" ,flags)))))
+ (native-inputs
+ (cons `("gtk-doc" ,gtk-doc/stable)
+ (package-native-inputs gusb-minimal)))))
+
(define-public simple-scan
(package
(name "simple-scan")
- 65/201: gnu: gst-libav: Update to 1.18.5., (continued)
- 65/201: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/11/01
- 68/201: gnu: gstreamer-docs: Update to 1.18.5., guix-commits, 2021/11/01
- 85/201: gnu: Add ld-gold-wrapper., guix-commits, 2021/11/01
- 86/201: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/11/01
- 95/201: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/11/01
- 100/201: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/11/01
- 104/201: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/11/01
- 98/201: gnu: Add python-tomli., guix-commits, 2021/11/01
- 101/201: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/11/01
- 109/201: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/01
- 113/201: gnu: gusb-minimal: Introduce minimal variant.,
guix-commits <=
- 127/201: gnu: vala: Update to 0.54.2., guix-commits, 2021/11/01
- 116/201: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/01
- 137/201: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/11/01
- 143/201: gnu: elogind: Update to 246.10., guix-commits, 2021/11/01
- 148/201: gnu: jsoncpp: Apply patch to regular package., guix-commits, 2021/11/01
- 154/201: gnu: python-dbusmock: Update to 0.24.0., guix-commits, 2021/11/01
- 161/201: gnu: mesa: Enable support for OpenGL ES 1.1 and 2.0., guix-commits, 2021/11/01
- 177/201: gnu: xorg-server, xorg-server-for-tests: Update to 21.1.0., guix-commits, 2021/11/01
- 188/201: gnu: gnome-online-accounts: Update to 3.43.1., guix-commits, 2021/11/01
- 194/201: gnu: docker-compose: Update to 1.29.2., guix-commits, 2021/11/01