[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
113/142: gnu: gusb-minimal: Introduce minimal variant.
From: |
guix-commits |
Subject: |
113/142: gnu: gusb-minimal: Introduce minimal variant. |
Date: |
Wed, 20 Oct 2021 14:56:55 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit f1ec2e2b7c3b425fa49747ee305e166d4ae3c084
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 1c4f6a4..b79cf48 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6587,38 +6587,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
@@ -6628,6 +6628,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")
- 69/142: gnu: tensorflow: Enable parallel build (at least partially)., (continued)
- 69/142: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/10/20
- 68/142: gnu: gstreamer-docs: Update to 1.18.5., guix-commits, 2021/10/20
- 70/142: gnu: python-keras: Enable parallel tests., guix-commits, 2021/10/20
- 66/142: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/10/20
- 76/142: gnu: glibc: Look for the current timezone in /etc/localtime., guix-commits, 2021/10/20
- 78/142: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/20
- 95/142: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/10/20
- 100/142: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/10/20
- 101/142: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/10/20
- 112/142: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/10/20
- 113/142: gnu: gusb-minimal: Introduce minimal variant.,
guix-commits <=
- 126/142: gnu: glib-networking: Update to 2.70.rc., guix-commits, 2021/10/20
- 04/142: gnu: pulseaudio: Update to 14.2., guix-commits, 2021/10/20
- 18/142: gnu: cheese: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/10/20
- 49/142: gnu: e2fsprogs: Update to 1.46.4., guix-commits, 2021/10/20
- 55/142: gnu: abseil-cpp: Update to 20210324.2., guix-commits, 2021/10/20
- 61/142: gnu: gst-plugins-base: Update to 1.18.5., guix-commits, 2021/10/20
- 96/142: gnu: python-pypa-build: Update to 0.7.0., guix-commits, 2021/10/20
- 106/142: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/10/20
- 117/142: gnu: graphviz: Update to 2.49.0., guix-commits, 2021/10/20
- 24/142: gnu: gst-libav: Update to 1.18.4., guix-commits, 2021/10/20