From b139186350acdf7c0bf030af1a24a8289adc2ca9 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 3 Jun 2020 17:13:28 -0400 Subject: [PATCH 13/16] gnu: gcab: Update to 1.4. * gnu/packages/package-management.scm (gcab): Update package definition. [version]: Update to 1.4. [source][sha256]: Modify base32 hash. [outputs]: New output 'doc'. [arguments]<#:glib-or-gtk?>: New argument. <#:configure-flags>[-Ddocs]: Remove flag. [-Dintrospection]: Remove flag. <#:phases>['move-doc]: New phase. [native-inputs]: Add gettext, gobject-introspection and gtk-doc. Remove inttool. [inputs]: Remove glib. [propagated-inputs]: Add glib. [license]: Remove gpl2+. --- gnu/packages/package-management.scm | 53 +++++++++++++++++------------ 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 3fc6fc404a..e117a0b6b2 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -997,36 +997,47 @@ in an isolated environment, in separate namespaces.") (define-public gcab (package (name "gcab") - (version "1.2") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnome/sources/gcab/" - version "/gcab-" version ".tar.xz")) - (sha256 - (base32 - "038h5kk41si2hc9d9169rrlvp8xgsxq27kri7hv2vr39gvz9cbas")))) + (version "1.4") + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://gnome/sources/gcab/" + version "/gcab-" version ".tar.xz")) + (sha256 + (base32 "13q43iqld4l50yra45lhvkd376pn6qpk7rkx374zn8y9wsdzm9b7")))) (build-system meson-build-system) + (outputs '("out" "doc")) + (arguments + `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas + #:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share")) + (rename-file + (string-append out "/share/gtk-doc") + (string-append doc "/share/gtk-doc")) + #t)))))) (native-inputs - `(("glib:bin" ,glib "bin") ; for glib-mkenums - ("intltool" ,intltool) + `(("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gtk-doc" ,gtk-doc) ("pkg-config" ,pkg-config) ("vala" ,vala))) (inputs - `(("glib" ,glib) - ("zlib" ,zlib))) - (arguments - `(#:configure-flags - ;; XXX This ‘documentation’ is for developers, and fails informatively: - ;; Error in gtkdoc helper script: 'gtkdoc-mkhtml' failed with status 5 - (list "-Ddocs=false" - "-Dintrospection=false"))) - (home-page "https://wiki.gnome.org/msitools") ; no dedicated home page + `(("zlib" ,zlib))) + (propagated-inputs + `(("glib" ,glib))) (synopsis "Microsoft Cabinet file manipulation library") (description "The libgcab library provides GObject functions to read, write, and modify Microsoft cabinet (.@dfn{CAB}) files.") - (license (list license:gpl2+ ; tests/testsuite.at - license:lgpl2.1+)))) ; the rest + (home-page "https://wiki.gnome.org/msitools") ; no dedicated home page + (license license:lgpl2.1+))) (define-public msitools (package -- 2.26.2