From f67add12fa1234975d761ad96fb04c29aaeda241 Mon Sep 17 00:00:00 2001 From: Tom Wijsman Date: Sun, 9 Mar 2014 15:41:03 +0000 Subject: New ebuild for mate-extra/mate-power-manager, a session daemon for MATE that makes it easy to manage your laptop or desktop system; imported from the mate-overlay, reviewed and adjusted. Package-Manager: portage-HEAD/cvs/Linux x86_64 Manifest-Sign-Key: 0x6D34E57D --- mate-extra/mate-power-manager/ChangeLog | 12 ++ mate-extra/mate-power-manager/Manifest | 19 +++ .../files/mate-power-manager-1.6-libsecret.patch | 144 +++++++++++++++++++++ .../mate-power-manager-1.6.3.ebuild | 94 ++++++++++++++ mate-extra/mate-power-manager/metadata.xml | 14 ++ 5 files changed, 283 insertions(+) create mode 100644 mate-extra/mate-power-manager/ChangeLog create mode 100644 mate-extra/mate-power-manager/Manifest create mode 100644 mate-extra/mate-power-manager/files/mate-power-manager-1.6-libsecret.patch create mode 100644 mate-extra/mate-power-manager/mate-power-manager-1.6.3.ebuild create mode 100644 mate-extra/mate-power-manager/metadata.xml (limited to 'mate-extra') diff --git a/mate-extra/mate-power-manager/ChangeLog b/mate-extra/mate-power-manager/ChangeLog new file mode 100644 index 000000000000..51db08033ae3 --- /dev/null +++ b/mate-extra/mate-power-manager/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for mate-extra/mate-power-manager +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mate-extra/mate-power-manager/ChangeLog,v 1.1 2014/03/09 15:40:57 tomwij Exp $ + +*mate-power-manager-1.6.3 (09 Mar 2014) + + 09 Mar 2014; Tom Wijsman + +files/mate-power-manager-1.6-libsecret.patch, + +mate-power-manager-1.6.3.ebuild, +metadata.xml: + New ebuild for mate-extra/mate-power-manager, a session daemon for MATE that + makes it easy to manage your laptop or desktop system; imported from the mate- + overlay, reviewed and adjusted. diff --git a/mate-extra/mate-power-manager/Manifest b/mate-extra/mate-power-manager/Manifest new file mode 100644 index 000000000000..d75e1c620d71 --- /dev/null +++ b/mate-extra/mate-power-manager/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX mate-power-manager-1.6-libsecret.patch 5563 SHA256 58b16367b2c9accb51a582a506a062615bc3f4acce5b0975537c2934d78df5b1 SHA512 96bca058d5b1cf1dba3453096bc0899bfd5459bbe141e15cff769ee352d629cceeaf9a0467022601e4127f753412eda0feed36e1f6302f9b166077b239307e28 WHIRLPOOL 4e3314f02e88f961feb029a4d1663257deaca88cee098f9174c91c531e60a38edab0302d996fee6ac7d0c430835656c299fe5289d2b1df14190743a1f428e1e2 +DIST mate-power-manager-1.6.3.tar.xz 3362188 SHA256 465b8d88d25333c9a5f0dd9a34720cac6024e21e574378d1d49326e1ff1d253b SHA512 dfc17688a60aa19109af39f1436ed3f8a5acbfa1a89b128c4619356574a5df73e058366ca53626be04bed6ff37d2ebefa8a04b4efca7d3ce96e5753594e14769 WHIRLPOOL 8993f97df88ebd1d71da7480d1c09529c8df924f0d33f268b3f84f1d81914eca278a2eebb1e5465fb59937e875ec970cbd7ee5c307aa92120c8441b270ac1640 +EBUILD mate-power-manager-1.6.3.ebuild 2406 SHA256 e89d2fd09a252cceeefb5f1fc35d7a78af860d124fadec563ee782c38a0a715b SHA512 044e69b6d0b23a09ced07f057c0b4110123f466baa90becf959065750366e90a2e0217dec633db024d8c581910476150d90d9938f7d5b0bd27d423546870569b WHIRLPOOL 9afe0195504be0ad5c2b977f7d77c27862057be11822b49d97dc0322289b800114221984829480e6bfac7754ea19e99ffa301849145bab6bf3f0ce1dff4b799a +MISC ChangeLog 613 SHA256 759b06ad197beafab08ed146884e5dde52fe42d78d1c28ceb84173417ba1816d SHA512 6c70ec868231ec3292817c240a41c1d892ab730d10c1a025ada99f46a232a894204a6335b2d19416269232751cd1509f745b0686f7ab42e59a54dd9c9fe88291 WHIRLPOOL 90bf744132e569d3c37e6c2ed2a345a50f2b8ad944e272de42bb91ae2b853a8e077a8e8be320a5760ee28041fbe69a9949c592206ba51dfd2ff0a752987683b9 +MISC metadata.xml 468 SHA256 138877fb0154af1e9e2ed98f927a16daa6f49d3a8312b8e469fc92fa54232ae8 SHA512 318497639aa45f81e65e89d59820977fe89a618dff7844c13bf3a1d875ac9407f8b190c6ea6d4e9aed6f97b1bc96b7f821d1222fc605729af8c783f620c1358b WHIRLPOOL 2112944a997e20ed2609f0e9d1f99ae80c2dca2f57631d953fdc38f68a19905dd137584a756f07dcf79b26dc16b8780dced00f2f87e394a46cc641ac0d9c377f +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQEcBAEBCAAGBQJTHItpAAoJEJWyH81tNOV9alcH/3fyDyZpa7fpyYI/b+HEYky4 +0KxCgWVc73DxMqpPTYRLkFbT44EHR3ZxNIk9Qc3pT5csTYHhLnBJk7eu5LBVJRBc +RPWBuT29Z8/yV89GRq+tQ5lQ8GnimYERNiSEkhHvTxa85zyt0l1uAboJYoErTthl +hBQrjii14lQipNQazbq5Yo0DHVUqviIiP0Dw1YRK3N6hvSYoa4IsbvSB8xoGxEhj +82D6/h9I9Am4vqfkzfy3VdmZocFxDFc5GoplmMGf65GzlyMWQiYNwQCiBfoovjqf +boFjCATy/PF6hEwL1bAo1nyiPKLF2bQTt7wbbzn9ZLJkCZdwH0KY+Qfn5YC0vhI= +=5eqL +-----END PGP SIGNATURE----- diff --git a/mate-extra/mate-power-manager/files/mate-power-manager-1.6-libsecret.patch b/mate-extra/mate-power-manager/files/mate-power-manager-1.6-libsecret.patch new file mode 100644 index 000000000000..b36ce4e61b71 --- /dev/null +++ b/mate-extra/mate-power-manager/files/mate-power-manager-1.6-libsecret.patch @@ -0,0 +1,144 @@ +diff --git a/README b/README +index 77e1213..3f6a122 100644 +--- a/README ++++ b/README +@@ -15,7 +15,7 @@ To build, MATE Power Manager requires + + - Glib (2.13.0 or later) + - Gtk2+ (2.11.0 or later) +- - MATE Keyring (1.1.0 or later) ++ - GNOME Keyring (3.0.0 or later) + - DBus (0.70 or later) + - libnotify (0.7.0 or later) + - Cairo (1.0.0 or later) +diff --git a/configure.ac b/configure.ac +index 89309ff..912c362 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -102,7 +102,7 @@ GLIB_REQUIRED=2.13.0 + GIO_REQUIRED=2.25.0 + GTK_REQUIRED=2.17.7 + GDK_REQUIRED=2.11.0 +-MATE_KEYRING_REQUIRED=1.1.0 ++GNOME_KEYRING_REQUIRED=3.0.0 + DBUS_REQUIRED=1.0 + DBUS_GLIB_REQUIRED=0.70 + LIBNOTIFY_REQUIRED=0.7.0 +@@ -249,18 +249,18 @@ fi + AM_CONDITIONAL([HAVE_TESTS], [test $have_tests = yes]) + + dnl --------------------------------------------------------------------------- +-dnl - Build mate-keyring support ++dnl - Build gnome-keyring support + dnl --------------------------------------------------------------------------- + AC_ARG_WITH(keyring, + [AS_HELP_STRING([--without-keyring], +- [Disable the use of mate-keyring])], ++ [Disable the use of gnome-keyring])], + [], + [with_keyring=yes]) + + AM_CONDITIONAL([WITH_KEYRING],[test "$with_keyring" = "yes"]) + + if test "$with_keyring" = "yes"; then +- PKG_CHECK_MODULES(KEYRING, mate-keyring-1 >= $MATE_KEYRING_REQUIRED) ++ PKG_CHECK_MODULES(KEYRING, gnome-keyring-1 >= $GNOME_KEYRING_REQUIRED) + AC_DEFINE([WITH_KEYRING],[1],[Define if KEYRING support is enabled]) + fi + +@@ -393,7 +393,7 @@ echo " + datadir: ${datadir} + compiler: ${CC} + cflags: ${CFLAGS} +- mate-keyring support: ${with_keyring} ++ gnome-keyring support: ${with_keyring} + Building extra applets: ${enable_applets} + Self test support: ${have_tests} + Use libunique: ${enable_libunique} +diff --git a/data/org.mate.power-manager.gschema.xml.in b/data/org.mate.power-manager.gschema.xml.in +index dcd2cd4..adecce0 100644 +--- a/data/org.mate.power-manager.gschema.xml.in ++++ b/data/org.mate.power-manager.gschema.xml.in +@@ -183,13 +183,13 @@ + + + false +- <_summary>Lock MATE keyring on sleep +- <_description>Whether the MATE keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume. ++ <_summary>Lock GNOME keyring on sleep ++ <_description>Whether the GNOME keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume. + + + true +- <_summary>Lock MATE keyring on sleep +- <_description>Whether the MATE keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume. ++ <_summary>Lock GNOME keyring on sleep ++ <_description>Whether the GNOME keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume. + + + false +diff --git a/src/gpm-control.c b/src/gpm-control.c +index cb84814..8253336 100644 +--- a/src/gpm-control.c ++++ b/src/gpm-control.c +@@ -42,7 +42,7 @@ + #include + + #ifdef WITH_KEYRING +-#include ++#include + #endif /* WITH_KEYRING */ + + #include "egg-debug.h" +@@ -212,8 +212,8 @@ enum { + GpmScreensaver *screensaver; + guint32 throttle_cookie = 0; + #ifdef WITH_KEYRING +- gboolean lock_mate_keyring; +- MateKeyringResult keyres; ++ gboolean lock_gnome_keyring; ++ GnomeKeyringResult keyres; + #endif /* WITH_KEYRING */ + + GError *dbus_error = NULL; +@@ -234,10 +234,10 @@ enum { + + #ifdef WITH_KEYRING + /* we should perhaps lock keyrings when sleeping #375681 */ +- lock_mate_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_SUSPEND); +- if (lock_mate_keyring) { +- keyres = mate_keyring_lock_all_sync (); +- if (keyres != MATE_KEYRING_RESULT_OK) ++ lock_gnome_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_SUSPEND); ++ if (lock_gnome_keyring) { ++ keyres = gnome_keyring_lock_all_sync (); ++ if (keyres != GNOME_KEYRING_RESULT_OK) + egg_warning ("could not lock keyring"); + } + #endif /* WITH_KEYRING */ +@@ -323,8 +323,8 @@ enum { + GpmScreensaver *screensaver; + guint32 throttle_cookie = 0; + #ifdef WITH_KEYRING +- gboolean lock_mate_keyring; +- MateKeyringResult keyres; ++ gboolean lock_gnome_keyring; ++ GnomeKeyringResult keyres; + #endif /* WITH_KEYRING */ + + GError *dbus_error = NULL; +@@ -345,10 +345,10 @@ enum { + + #ifdef WITH_KEYRING + /* we should perhaps lock keyrings when sleeping #375681 */ +- lock_mate_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_HIBERNATE); +- if (lock_mate_keyring) { +- keyres = mate_keyring_lock_all_sync (); +- if (keyres != MATE_KEYRING_RESULT_OK) { ++ lock_gnome_keyring = g_settings_get_boolean (control->priv->settings, GPM_SETTINGS_LOCK_KEYRING_HIBERNATE); ++ if (lock_gnome_keyring) { ++ keyres = gnome_keyring_lock_all_sync (); ++ if (keyres != GNOME_KEYRING_RESULT_OK) { + egg_warning ("could not lock keyring"); + } + } diff --git a/mate-extra/mate-power-manager/mate-power-manager-1.6.3.ebuild b/mate-extra/mate-power-manager/mate-power-manager-1.6.3.ebuild new file mode 100644 index 000000000000..4414966258c6 --- /dev/null +++ b/mate-extra/mate-power-manager/mate-power-manager-1.6.3.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mate-extra/mate-power-manager/mate-power-manager-1.6.3.ebuild,v 1.1 2014/03/09 15:40:57 tomwij Exp $ + +EAPI="5" + +GCONF_DEBUG="no" + +inherit autotools gnome2 versionator + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="A session daemon for MATE that makes it easy to manage your laptop or desktop system" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+applet gnome-keyring man policykit test unique" + +# Interactive testsuite. +RESTRICT="test" + +COMMON_DEPEND=" + >=dev-libs/dbus-glib-0.70:0 + >=dev-libs/glib-2.13:2 + >=media-libs/libcanberra-0.10:0[gtk] + >=sys-apps/dbus-1:0 + sys-libs/glibc:2.2 + >=sys-power/upower-0.9.1:0 + >=x11-apps/xrandr-1.2:0 + >=x11-libs/cairo-1:0 + >=x11-libs/gdk-pixbuf-2.11:2 + >=x11-libs/gtk+-2.17.7:2 + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXrandr:0 + >=x11-libs/libnotify-0.7:0 + x11-libs/pango:0 + >=x11-proto/xproto-7.0.15:0 + applet? ( >=mate-base/mate-panel-1.6:0 ) + gnome-keyring? ( >=gnome-base/gnome-keyring-3:0 ) + unique? ( >=dev-libs/libunique-0.9.4:1 )" + +RDEPEND="${COMMON_DEPEND} + policykit? ( >=mate-extra/mate-polkit-1.6:0 )" + +DEPEND="${COMMON_DEPEND} + app-text/docbook-xml-dtd:4.3 + >=app-text/mate-doc-utils-1.6:0 + app-text/scrollkeeper:0 + >=dev-util/intltool-0.35:0 + x11-proto/randrproto:0 + sys-devel/gettext:0 + virtual/pkgconfig:0 + man? ( app-text/docbook-sgml-utils:0 + >=app-text/docbook-sgml-dtd-4.3 )" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.6-libsecret.patch" + + eautoreconf + + gnome2_src_prepare + + # This needs to be after eautoreconf to prevent problems like bug #356277 + # Remove the docbook2man rules here since it's not handled by a proper + # parameter in configure.in. + if ! use man; then + sed -e 's:@HAVE_DOCBOOK2MAN_TRUE@.*::' -i man/Makefile.in \ + || die "docbook sed failed" + fi +} + +src_configure() { + gnome2_src_configure \ + $(use_enable applet applets) \ + $(use_enable test tests) \ + $(use_enable unique) \ + $(use_with gnome-keyring keyring) \ + --enable-compile-warnings=minimum \ + --enable-unique \ + --with-gtk=2.0 +} + +DOCS="AUTHORS HACKING NEWS README TODO" + +src_test() { + unset DBUS_SESSION_BUS_ADDRESS + + dbus-launch Xemake check || die "Test phase failed" +} diff --git a/mate-extra/mate-power-manager/metadata.xml b/mate-extra/mate-power-manager/metadata.xml new file mode 100644 index 000000000000..2b10e885f171 --- /dev/null +++ b/mate-extra/mate-power-manager/metadata.xml @@ -0,0 +1,14 @@ + + + + + TomWij@gentoo.org + Tom Wijsman + + + Enable building of the MATE applet. + Build power manager's man page. + Enable single instance support using + dev-libs/libunique. + + -- cgit v1.2.3-65-gdbad