[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
113/203: gnu: gusb-minimal: Introduce minimal variant.
From: |
guix-commits |
Subject: |
113/203: gnu: gusb-minimal: Introduce minimal variant. |
Date: |
Wed, 3 Nov 2021 21:10:15 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit e60ee3ebfa5199d2388f6184b4a6540ab1f9f997
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")
- 84/203: gnu: make-ld-wrapper: Add a LINKER argument., (continued)
- 84/203: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/11/03
- 86/203: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/11/03
- 87/203: gnu: gdb: Normalize indentation., guix-commits, 2021/11/03
- 81/203: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/11/03
- 91/203: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/11/03
- 103/203: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/11/03
- 111/203: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 97/203: gnu: Add python-flit-core., guix-commits, 2021/11/03
- 110/203: gnu: Add docbook-xsl-ns., guix-commits, 2021/11/03
- 105/203: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/03
- 113/203: gnu: gusb-minimal: Introduce minimal variant.,
guix-commits <=
- 109/203: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 98/203: gnu: Add python-tomli., guix-commits, 2021/11/03
- 106/203: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/11/03
- 92/203: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/11/03
- 115/203: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/11/03
- 123/203: gnu: pango: Update to 1.48.10., guix-commits, 2021/11/03
- 116/203: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/03
- 114/203: gnu: rest: Use libsoup-minimal., guix-commits, 2021/11/03
- 118/203: gnu: cmake-bootstrap: Update to 3.21.3., guix-commits, 2021/11/03
- 120/203: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/11/03