[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
223/402: gnu: phodav: Update package definition.
From: |
guix-commits |
Subject: |
223/402: gnu: phodav: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:47:44 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 1fd449890404f486bf063c00bad3da52827c46f6
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 30 08:00:14 2020 -0400
gnu: phodav: Update package definition.
* gnu/packages/gnome.scm (phodav): Update package definition.
[outputs]: New outputs "tools", "spice" and "doc".
[arguments]<#:glib-or-gtk?>: New argument.
<#:configure-flags>[-Dsystemd]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['patch-udevdir]: New phase.
['move-doc]: New phase.
['move-tools]: New phase.
['move-spice]: New phase.
[native-inputs]: Add asciidoc, docbook-xml, docbook-xsl and xmlto.
[inputs]: Add eudev. Remove libgudev and libsoup.
[propagated-inputs]: Add glib, glib-networking, libsoup and libxml2.
[synopsis]: Modify.
[description]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 111 +++++++++++++++++++++++++++++++++++++------------
1 file changed, 85 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 156ed61..ffae765 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1038,32 +1038,91 @@ documentation.")
(define-public phodav
(package
- (name "phodav")
- (version "2.4")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1hxq8c5qfah3w7mxcyy3yhzdgswplll31a69p5mqdl04bsvw5pbx"))))
- (build-system meson-build-system)
- (native-inputs
- `(("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin")
- ("gtk-doc" ,gtk-doc)
- ("pkg-config" ,pkg-config)))
- (inputs
- `(("avahi" ,avahi)
- ("libgudev" ,libgudev)
- ("libsoup" ,libsoup)))
- (synopsis "WebDav server implementation using libsoup")
- (description "PhoDav was initially developed as a file-sharing mechanism
for Spice,
-but it is generic enough to be reused in other projects,
-in particular in the GNOME desktop.")
- (home-page "https://wiki.gnome.org/phodav")
- (license license:lgpl2.1+)))
+ (name "phodav")
+ (version "2.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "1hxq8c5qfah3w7mxcyy3yhzdgswplll31a69p5mqdl04bsvw5pbx"))))
+ (build-system meson-build-system)
+ (outputs '("out" "tools" "spice" "doc"))
+ (arguments
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ (list
+ "-Dsystemd=disabled")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc/reference"
+ (substitute* '("phodav-2.0-docs.sgml" "phodav-docs.sgml.in")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
+ (add-before 'configure 'patch-udevdir
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("udev\\.get_pkgconfig_variable\\('udevdir'\\)")
+ (string-append "'"
+ (assoc-ref outputs "out")
+ "/lib/udev" "'")))
+ #t))
+ (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)))
+ (add-after 'move-doc 'move-tools
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (tools (assoc-ref outputs "tools")))
+ (mkdir-p (string-append tools "/bin"))
+ (rename-file
+ (string-append out "/bin")
+ (string-append tools "/bin"))
+ #t)))
+ (add-after 'move-tools 'move-spice
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (spice (assoc-ref outputs "spice")))
+ (mkdir-p (string-append spice "/sbin"))
+ (rename-file
+ (string-append out "/sbin")
+ (string-append spice "/sbin"))
+ #t))))))
+ (native-inputs
+ `(("asciidoc" ,asciidoc)
+ ("docbook-xml" ,docbook-xml-4.3)
+ ("docbook-xsl" ,docbook-xsl)
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("gtk-doc" ,gtk-doc)
+ ("pkg-config" ,pkg-config)
+ ("xmlto" ,xmlto)))
+ (inputs
+ `(("avahi" ,avahi)
+ ("udev" ,eudev)))
+ (propagated-inputs
+ `(("glib" ,glib)
+ ("glib-networking" ,glib-networking)
+ ("libsoup" ,libsoup)
+ ("libxml2" ,libxml2)))
+ (synopsis "WebDAV Support for GNOME")
+ (description "PhoDav is a WebDav server implementation using libsoup
+(RFC 4918).")
+ (home-page "https://wiki.gnome.org/phodav")
+ (license license:lgpl2.1+)))
(define-public gnome-color-manager
(package
- 162/402: gnu: amtk: Update package definition., (continued)
- 162/402: gnu: amtk: Update package definition., guix-commits, 2020/08/18
- 180/402: gnu: gnome-video-effects: Update package definition., guix-commits, 2020/08/18
- 181/402: gnu: gobject-introspection: Add patches back., guix-commits, 2020/08/18
- 196/402: gnu: Add seed., guix-commits, 2020/08/18
- 194/402: gnu: gtk-vnc: Update package definition., guix-commits, 2020/08/18
- 202/402: gnu: libgtop: Update package definition., guix-commits, 2020/08/18
- 207/402: gnu: libhandy: Update package definition., guix-commits, 2020/08/18
- 209/402: gnu: libnma: Update package definition., guix-commits, 2020/08/18
- 219/402: gnu: Add dnssec-trigger., guix-commits, 2020/08/18
- 221/402: gnu: appstream-glib: Fix tests., guix-commits, 2020/08/18
- 223/402: gnu: phodav: Update package definition.,
guix-commits <=
- 220/402: gnu: network-manager: Update package definition., guix-commits, 2020/08/18
- 227/402: gnu: vte: Update package definition., guix-commits, 2020/08/18
- 230/402: gnu: libquvi: Update package definition., guix-commits, 2020/08/18
- 234/402: gnu: tracker-miners: Update package definition., guix-commits, 2020/08/18
- 237/402: gnu: cheese: Update package definition., guix-commits, 2020/08/18
- 242/402: gnu: file-roller: Update package definition., guix-commits, 2020/08/18
- 246/402: gnu: gnome-boxes: Update package definition., guix-commits, 2020/08/18
- 255/402: gnu: gnome-boxes: Fix home-page., guix-commits, 2020/08/18
- 264/402: gnu: rust-cssparser: Remove duplicate definition., guix-commits, 2020/08/18
- 265/402: gnu: rust-cssparser-macros@0.6.0: Fix reference to rust-quote., guix-commits, 2020/08/18