[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
113/227: gnu: gusb-minimal: Introduce minimal variant.
From: |
guix-commits |
Subject: |
113/227: gnu: gusb-minimal: Introduce minimal variant. |
Date: |
Thu, 11 Nov 2021 12:30:19 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit 37903729798cc9a3ea2b803cd7c4de4cc80572b5
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 bed975a..c04a8cb 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")
- 94/227: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., (continued)
- 94/227: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., guix-commits, 2021/11/11
- 95/227: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/11/11
- 96/227: gnu: python-pypa-build: Update to 0.7.0., guix-commits, 2021/11/11
- 100/227: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/11/11
- 97/227: gnu: Add python-flit-core., guix-commits, 2021/11/11
- 102/227: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/11/11
- 104/227: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/11/11
- 108/227: gnu: lsof: Fix indentation., guix-commits, 2021/11/11
- 110/227: gnu: Add docbook-xsl-ns., guix-commits, 2021/11/11
- 111/227: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/11
- 113/227: gnu: gusb-minimal: Introduce minimal variant.,
guix-commits <=
- 121/227: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/11/11
- 131/227: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/11/11
- 134/227: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/11/11
- 117/227: gnu: graphviz: Update to 2.49.0., guix-commits, 2021/11/11
- 119/227: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/11/11
- 125/227: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/11/11
- 132/227: gnu: webkitgtk: Add a debug output., guix-commits, 2021/11/11
- 157/227: gnu: python-dateutil: Update to 2.8.2., guix-commits, 2021/11/11
- 116/227: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/11
- 129/227: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/11/11