[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
286/401: gnu: malcontent: Update package definition.
From: |
guix-commits |
Subject: |
286/401: gnu: malcontent: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:21:58 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit afbc71e59610c37886d0c09563fdddb6bc2f65fe
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Aug 5 15:55:06 2020 -0400
gnu: malcontent: Update package definition.
* gnu/packages/freedesktop.scm (malcontent): Update package definition.
[outputs]: New output "help".
[arguments]<#:phases>['skip-gtk-update-icon-cache]: New phase.
['move-help]: New phase.
[native-inputs]: Remove gtk+:bin.
[inputs]: Remove libostree. Move accountsservice, flatpack, glib and
gtk+ to ...
[propagated-inputs]: ... here.
[license]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/freedesktop.scm | 41 ++++++++++++++++++++++++++++++-----------
1 file changed, 30 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 900be49..56cb26d 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -154,6 +154,7 @@ tests.")
(sha256
(base32 "0vnf0pk516fwwh41v96c29l2i7h1pnwhivlkbf53kkx1q35g7lb3"))))
(build-system meson-build-system)
+ (outputs '("out" "help"))
(arguments
`(#:glib-or-gtk? #t
#:phases
@@ -163,28 +164,42 @@ tests.")
(lambda _
(substitute* "libmalcontent/tests/app-filter.c"
(("g_test_add_func \\(\"/app-filter/appinfo\",
test_app_filter_appinfo\\);")
- ""))
- #t)))))
+ ""))
+ #t))
+ (add-before 'configure 'skip-gtk-update-icon-cache
+ (lambda _
+ (substitute* "build-aux/meson_post_install.py"
+ (("gtk-update-icon-cache")
+ "true"))
+ #t))
+ (add-after 'install 'move-help
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (help (assoc-ref outputs "help")))
+ (mkdir-p (string-append help "/share"))
+ (rename-file
+ (string-append out "/share/help")
+ (string-append help "/share/help"))
+ #t))))))
(native-inputs
`(("desktop-file-utils" ,desktop-file-utils)
("gettext" ,gettext-minimal)
("glib:bin" ,glib "bin")
("gobject-introspection" ,gobject-introspection)
- ("gtk+:bin" ,gtk+ "bin")
("itstool" ,itstool)
("libglib-testing" ,libglib-testing)
- ("libxml2" ,libxml2)
- ("pkg-config" ,pkg-config)))
+ ("pkg-config" ,pkg-config)
+ ("xmllint" ,libxml2)))
(inputs
- `(("accountsservice" ,accountsservice)
- ("appstream-glib" ,appstream-glib)
+ `(("appstream-util" ,appstream-glib)
("dbus" ,dbus)
- ("flatpak" ,flatpak)
- ("glib" ,glib)
- ("gtk+" ,gtk+)
- ("libostree" ,libostree)
("linux-pam" ,linux-pam)
("polkit" ,polkit)))
+ (propagated-inputs
+ `(("accountsservice" ,accountsservice)
+ ("flatpak" ,flatpak)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)))
(synopsis "Parental controls support")
(description "MalContent implements parental controls support which can
be used by applications to filter or limit the access of child accounts to
@@ -192,7 +207,11 @@ inappropriate content.")
(home-page "https://gitlab.freedesktop.org/pwithnall/malcontent")
(license
(list
+ ;; Documentation
+ license:cc-by-sa3.0
+ ;; Application
license:gpl2+
+ ;; Library
license:lgpl2.1+))))
(define-public xdg-utils
- 243/401: gnu: gedit: Update package definition., (continued)
- 243/401: gnu: gedit: Update package definition., guix-commits, 2020/08/18
- 246/401: gnu: gnome-boxes: Update package definition., guix-commits, 2020/08/18
- 252/401: gnu: gnome-contacts: Update package definition., guix-commits, 2020/08/18
- 257/401: gnu: rust-cssparser-macros@0.6.0: Fix reference to rust-proc-macro2., guix-commits, 2020/08/18
- 264/401: gnu: rust-cssparser: Remove duplicate definition., guix-commits, 2020/08/18
- 267/401: gnu: rust-serial-test-derive@0.4.0: Fix reference to rust-quote., guix-commits, 2020/08/18
- 272/401: gnu: rust-string-cache: Remove duplicate definition., guix-commits, 2020/08/18
- 275/401: gnu: rust-pin-project-internal@0.4.22: Fix reference to rust-syn., guix-commits, 2020/08/18
- 280/401: gnu: gnome-disk-utility: Update package definition., guix-commits, 2020/08/18
- 287/401: gnu: gnome-initial-setup: Update package definition., guix-commits, 2020/08/18
- 286/401: gnu: malcontent: Update package definition.,
guix-commits <=
- 288/401: gnu: gnome-keyring: Update package definition., guix-commits, 2020/08/18
- 290/401: gnu: gnome-menus: Update package definition., guix-commits, 2020/08/18
- 294/401: gnu: gnome-session: Update package definition., guix-commits, 2020/08/18
- 295/401: gnu: gnome-settings-daemon: Update package definition., guix-commits, 2020/08/18
- 300/401: gnu: gnome-user-docs: Update package definition., guix-commits, 2020/08/18
- 302/401: gnu: gnome-weather: Update package definition., guix-commits, 2020/08/18
- 306/401: gnu: Add latex2html., guix-commits, 2020/08/18
- 305/401: gnu: Add liblouisutdml., guix-commits, 2020/08/18
- 314/401: gnu: sushi: Update package definition., guix-commits, 2020/08/18
- 315/401: gnu: totem: Update package definition., guix-commits, 2020/08/18