[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
156/265: gnu: malcontent: Update package definition.
From: |
guix-commits |
Subject: |
156/265: gnu: malcontent: Update package definition. |
Date: |
Wed, 19 Aug 2020 13:09:16 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit fbde8db20411c3696ace1f961638b6db11e08412
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
- 134/265: gnu: texlive-bin: Recompile with -fPIC., (continued)
- 134/265: gnu: texlive-bin: Recompile with -fPIC., guix-commits, 2020/08/19
- 135/265: gnu: evince: Update package definition., guix-commits, 2020/08/19
- 136/265: gnu: file-roller: Update package definition., guix-commits, 2020/08/19
- 137/265: gnu: gedit: Update package definition., guix-commits, 2020/08/19
- 138/265: gnu: gnome-backgrounds: Update package definition., guix-commits, 2020/08/19
- 139/265: gnu: gnome-bluetooth: Update package definition., guix-commits, 2020/08/19
- 140/265: gnu: gnome-boxes: Update package definition., guix-commits, 2020/08/19
- 143/265: gnu: gnome-characters: Update package definition., guix-commits, 2020/08/19
- 144/265: gnu: gnome-clocks: Update package definition., guix-commits, 2020/08/19
- 145/265: gnu: gnome-color-manager: Update package definition., guix-commits, 2020/08/19
- 156/265: gnu: malcontent: Update package definition.,
guix-commits <=
- 149/265: gnu: gnome-boxes: Fix home-page., guix-commits, 2020/08/19
- 153/265: gnu: gnome-getting-started-docs: Update package definition., guix-commits, 2020/08/19
- 141/265: gnu: gnome-calculator: Update package definition., guix-commits, 2020/08/19
- 146/265: gnu: gnome-contacts: Update package definition., guix-commits, 2020/08/19
- 150/265: gnu: gnome-desktop: Update package definition., guix-commits, 2020/08/19
- 151/265: gnu: gnome-disk-utility: Update package definition., guix-commits, 2020/08/19
- 154/265: gnu: Add fuse@2.9.9., guix-commits, 2020/08/19
- 160/265: gnu: gnome-menus: Update package definition., guix-commits, 2020/08/19
- 161/265: gnu: gnome-music: Update package definition., guix-commits, 2020/08/19
- 162/265: gnu: gnome-photos: Update package definition., guix-commits, 2020/08/19