[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
113/180: gnu: gusb-minimal: Introduce minimal variant.
From: |
guix-commits |
Subject: |
113/180: gnu: gusb-minimal: Introduce minimal variant. |
Date: |
Fri, 29 Oct 2021 15:56:59 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit af0b53dbcd213949d6523b5dc1cd379cef534cc6
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 093a1ce..85d3c45 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")
- 90/180: gnu: glade3: Remove sitecustomize.py workaround., (continued)
- 90/180: gnu: glade3: Remove sitecustomize.py workaround., guix-commits, 2021/10/29
- 49/180: gnu: e2fsprogs: Update to 1.46.4., guix-commits, 2021/10/29
- 58/180: gnu: polkit: Update to 0.120 and ungraft., guix-commits, 2021/10/29
- 63/180: gnu: gst-plugins-bad: Update to 1.18.5., guix-commits, 2021/10/29
- 80/180: gnu: diffutils: Update to 3.8., guix-commits, 2021/10/29
- 85/180: gnu: Add ld-gold-wrapper., guix-commits, 2021/10/29
- 79/180: gnu: diffutils: Fix signal processing., guix-commits, 2021/10/29
- 93/180: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/10/29
- 94/180: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., guix-commits, 2021/10/29
- 112/180: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/10/29
- 113/180: gnu: gusb-minimal: Introduce minimal variant.,
guix-commits <=
- 115/180: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/10/29
- 117/180: gnu: graphviz: Update to 2.49.0., guix-commits, 2021/10/29
- 120/180: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/10/29
- 129/180: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/10/29
- 87/180: gnu: gdb: Normalize indentation., guix-commits, 2021/10/29
- 109/180: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/10/29
- 114/180: gnu: rest: Use libsoup-minimal., guix-commits, 2021/10/29
- 121/180: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/10/29
- 135/180: gnu: ungoogled-chromium: Use the new lld-as-ld-wrapper., guix-commits, 2021/10/29
- 137/180: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/10/29