[gnome-system-monitor] Drop polkit dependency, bundle its and loc files (#108)



commit ec790661c6a2bef56a4ce21cfd48c709c8c3234c
Author: Robert Roth <robert roth off gmail com>
Date:   Sun Feb 2 17:39:02 2020 +0200

    Drop polkit dependency, bundle its and loc files (#108)

 meson.build       | 2 --
 po/its/polkit.its | 8 ++++++++
 po/its/polkit.loc | 6 ++++++
 3 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index f957bfb9..1d48e3a6 100644
--- a/meson.build
+++ b/meson.build
@@ -50,8 +50,6 @@ libgtop = dependency('libgtop-2.0', version: '>=2.37.0')
 librsvg = dependency('librsvg-2.0', version: '>=2.35')
 libxml  = dependency('libxml-2.0',  version: '>=2.0')
 
-polkit = dependency('polkit-gobject-1', version: '>=0.114')
-
 if get_option('wnck')
   libwnck = dependency('libwnck-3.0', version: '>=2.91.0')
 else
diff --git a/po/its/polkit.its b/po/its/polkit.its
new file mode 100644
index 00000000..1c37e6be
--- /dev/null
+++ b/po/its/polkit.its
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<its:rules xmlns:its="http://www.w3.org/2005/11/its";
+           version="2.0">
+  <its:translateRule selector="//*" translate="no"/>
+  <its:translateRule selector="//action/description |
+                               //action/message"
+                     translate="yes"/>
+</its:rules>
diff --git a/po/its/polkit.loc b/po/its/polkit.loc
new file mode 100644
index 00000000..c7427ec6
--- /dev/null
+++ b/po/its/polkit.loc
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<locatingRules>
+  <locatingRule name="polkit policy" pattern="*.policy">
+    <documentRule localName="policyconfig" target="polkit.its"/>
+  </locatingRule>
+</locatingRules>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]