1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 20:22:38 +01:00

- x11-misc/cairo-dock: remove unused version.

This commit is contained in:
2015-07-26 18:44:50 +02:00
parent 25853ee998
commit f6f4357dbb
6 changed files with 0 additions and 449 deletions

View File

@@ -1,6 +1,2 @@
AUX cairo-dock-plugins-3.3.2-upower-099-r3083-modified.patch 4080 SHA256 064a74d95e8b4015702049b4b4304938a745ebc65286ecb1c954344b5b23a8a8 SHA512 13d92fb83acc5cd9b729448c9f9141f130b159daf0eb5a20ce9419a639e6c1912915e7955dec4de6280b1bb5c6db6cbe9b9e2a8551018451ae4431e273e631d0 WHIRLPOOL 997e22c65a8b583cacf1ba233cf7ec9ade0bfdafc5eabba7d3b8912ef2091338d9a4cc1fdc9e925df2e78fc8309b246d9492bdbee208afc0c68d5192a610c763
AUX cairo-dock-plugins-3.3.2-upower-099-r3084-modified.patch 6777 SHA256 8475e0a5e3e961d657df9b9a33ad0e5571eacdc88895f926928b96bb03973a78 SHA512 dd10052cace8e1d7aae65e65c12815490c97a2cca86e609fd269632f0a2a4e0a07d3d91a7a70a46cb9616b06e7322960da6ebd030a826b9a4a60f65eee2814ad WHIRLPOOL 3ad8db32c93493d5998d13d47ca9cae4bc88a6ba4ddff2de999aa15359bbd5f7b88812c7ceb0e4e6dc54f9a2763d1b06e9ffac34febe02009db3c26964628e2b
DIST cairo-dock-plugins-3.3.2.tar.gz 6838900 SHA256 48f0caddb0a563d8a64176f66610ca35df5c952071e5574486d39bb574994643 SHA512 ccf38032261668cd5012d5a521c42ed7279b7f0f33c1b52cfbb90d66927f9c3487eada29057349206b051f979fdbd9b3c83319647ce721712333ca1c3284bf9f WHIRLPOOL 2a7f7f1040766d2953740459c8ddbbf2173470c4fa5b77ba350605d448bc999e9268f695b9657e4608f7152eb9de829920253e4645338e9a3966948b395be9d5
DIST cairo-dock-plugins-3.4.0.tar.gz 6819610 SHA256 7ffcf40f07cd05bef826ad47f1f11940b9813d279c9e5117384f14f1f32d8dbd SHA512 4e0de372719385e559735238ce944adbb7d6c0c734fde18a5d19e95c3ddef59131848a6d0b1b535faadd3629a48ae47ce032124b348af99106d238f5add2e3eb WHIRLPOOL d0b44be61a2e412ddb7e24f547e29115bf46fb1ab9c10cccf2bf76f9699f322cb5272a588edbb83449e5effd7833c0d2117ab241df4457ebca51d3b51e8b12b0
EBUILD cairo-dock-plugins-3.3.2.ebuild 1769 SHA256 c56e94e35fe4e6fe8dfef0af36df6c363d1b2c6b6a32fe6b245cbfe92fb06dea SHA512 864ac7740d69e9eb42188f4af5c8f758ca677b89a7e21b4b0a9c55cadf6c435b7f63ad9be6825a48379e8c3d3e30f590143fb09e0e74ec6d3d5f670dcb83fe7e WHIRLPOOL 56eaedf4bcd4dfd36ee842e11389348208b28458fc04a4bc1c2a23d08ec7f3ed608c242b19c4ac79890ba9f8880fb23e2fa84e657275c0a27cd6b4da6b3d737e
EBUILD cairo-dock-plugins-3.4.0.ebuild 1556 SHA256 b4ccfe2f0f8351ca691fc0c7e0ffebae1f65bdcd501ab7bc19b83e01f1cb37d8 SHA512 86ca9cd2353593f3e9b792bc04633e0fa5a66fd011bfd0ac763d3e7bfe2f9852d8377031b8b288206c82122887c7c64f7af9bacb594ecfe625bc41f630de52f7 WHIRLPOOL 8278e1fd3284637cc20b1f6abf569a350283bd623d6f91ed7fdbf82f464295ccdaf011d41e28b46de2c488a7d1f29fad94357023a6d74b68d5c62d9caa27d27b

View File

@@ -1,68 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit cmake-utils eutils versionator
MY_PN="${PN/plugins/plug-ins}"
MM_PV=$(get_version_component_range '1-2')
DESCRIPTION="Official plugins for cairo-dock"
HOMEPAGE="http://www.glx-dock.org"
SRC_URI="http://launchpad.net/${MY_PN}/${MM_PV}/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa exif gmenu gtk3 kde terminal gnote vala webkit xfce xgamma xklavier twitter indicator3 zeitgeist mail upower"
RDEPEND="
dev-libs/dbus-glib
dev-libs/glib:2
dev-libs/libxml2
gnome-base/librsvg:2
sys-apps/dbus
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/gtkglext
~x11-misc/cairo-dock-${PV}
gtk3? ( x11-libs/gtk+:3 )
alsa? ( media-libs/alsa-lib )
exif? ( media-libs/libexif )
gmenu? ( gnome-base/gnome-menus )
kde? ( kde-base/kdelibs )
terminal? ( x11-libs/vte )
vala? ( dev-lang/vala:0.12 )
webkit? ( >=net-libs/webkit-gtk-1.0 )
xfce? ( xfce-base/thunar )
xgamma? ( x11-libs/libXxf86vm )
xklavier? ( x11-libs/libxklavier )
gnote? ( app-misc/gnote )
twitter? ( dev-python/oauth dev-python/simplejson )
indicator3? ( dev-libs/libindicator )
zeitgeist? ( dev-libs/libzeitgeist )
mail? ( net-libs/libetpan )
upower? ( sys-power/upower )
"
DEPEND="${RDEPEND}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig
dev-libs/libdbusmenu:3[gtk]
"
src_prepare() {
# Patch to disable features with upower > 0.99
epatch "${FILESDIR}/${P}-upower-099-r3083-modified.patch"
epatch "${FILESDIR}/${P}-upower-099-r3084-modified.patch"
}
src_configure() {
mycmakeargs=(
$(use upower && echo "-Denable-upower-support=ON" || echo "-Denable-upower-support=OFF")
)
cmake-utils_src_configure
}

View File

@@ -1,112 +0,0 @@
--- cairo-dock-plugins-3.3.2/CMakeLists.txt.upower0 2013-10-29 19:27:30.000000000 +0900
+++ cairo-dock-plugins-3.3.2/CMakeLists.txt 2014-06-16 14:00:42.543802818 +0900
@@ -152,6 +152,14 @@
set (shared_filesdatadir "${pluginsdatadir}/shared-files")
add_subdirectory (shared-files)
+
+
+################################################################################
+# STATIC LIBS AND DEPENDENCES USED BY MORE THAN ONE PLUG-IN #
+################################################################################
+
+
+
############# STATIC LIBRARIES ################
message (STATUS "> Static Libraries:")
@@ -337,6 +345,29 @@
endif()
endif()
+############# UPOWER #####################
+message (STATUS "> UPower:")
+enable_if_not_defined (enable-upower-support)
+if (enable-upower-support)
+ pkg_check_modules (UPOWER upower-glib) # useful for Powermanager too.
+endif()
+if (UPOWER_FOUND)
+ set (with_upower_support yes)
+ STRING (REGEX REPLACE "\\..*" "" UPOWER_MAJOR "${UPOWER_VERSION}") # 2.28.3 => 2
+ STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" UPOWER_MINOR "${UPOWER_VERSION}") # 2.28.3 => 2.28
+ STRING (REGEX REPLACE "\\.[0-9]*" "" UPOWER_MINOR "${UPOWER_MINOR}") # 2.28 => 28
+ if (${UPOWER_MAJOR} GREATER 0 OR ${UPOWER_MINOR} GREATER 89)
+ message (STATUS " Your version of UPower no longer supports logout features")
+ else()
+ set (UPOWER_SUPPORTS_LOGOUT 1)
+ endif()
+else()
+ set (with_upower_support no)
+ message (STATUS "Could not find upower-glib; Logout and PowerManager plugin won't be built with UPower support.")
+ message (WARNING "This module is required to compile LogOut and PowerManager applet with UPower support: upower-glib")
+ set (MODULES_MISSING "${MODULES_MISSING} upower-glib")
+endif()
+
############# DISTRIBUTION #################
message (STATUS "> Distribution:")
# We try to detect if the user is on Ubuntu to know which bus we have to use...
@@ -965,18 +996,6 @@
############# LOGOUT #################
message (STATUS "> Logout:")
-enable_if_not_defined (enable-upower-support)
-if (enable-upower-support)
- pkg_check_modules (UPOWER upower-glib) # useful for Powermanager too.
-endif()
-if (UPOWER_FOUND)
- set (with_upower_support yes)
-else()
- set (with_upower_support no)
- message (STATUS "Could not find upower-glib; Logout and PowerManager plugin won't be built with UPower support.")
- message (WARNING "This module is required to compile LogOut and PowerManager applet with UPower support: upower-glib")
- set (MODULES_MISSING "${MODULES_MISSING} upower-glib")
-endif()
set (GETTEXT_LOGOUT ${GETTEXT_PLUGINS})
set (VERSION_LOGOUT "2.0.3")
set (PACKAGE_LOGOUT "cd-logout")
--- cairo-dock-plugins-3.3.2/logout/src/CMakeLists.txt.upower0 2013-10-03 20:04:33.000000000 +0900
+++ cairo-dock-plugins-3.3.2/logout/src/CMakeLists.txt 2014-06-16 14:01:03.155216380 +0900
@@ -20,22 +20,29 @@
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_LOGOUT}")
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg")
-if (${UPOWER_FOUND})
- add_definitions (-DCD_UPOWER_AVAILABLE="1")
-endif()
+if (UPOWER_SUPPORTS_LOGOUT)
+ add_definitions (-DCD_UPOWER_AVAILABLE="1")
+
+ include_directories (
+ ${UPOWER_INCLUDE_DIRS}
+ ${PACKAGE_INCLUDE_DIRS})
+
+ link_directories (
+ ${UPOWER_LIBRARY_DIRS}
+ ${PACKAGE_LIBRARY_DIRS})
+
+ target_link_libraries (${PACKAGE_LOGOUT}
+ ${UPOWER_LIBRARIES}
+ ${PACKAGE_LIBRARIES})
+else()
+ include_directories (${PACKAGE_INCLUDE_DIRS})
-include_directories (
- ${UPOWER_INCLUDE_DIRS}
- ${PACKAGE_INCLUDE_DIRS})
-
-link_directories (
- ${UPOWER_LIBRARY_DIRS}
- ${PACKAGE_LIBRARY_DIRS})
-
-target_link_libraries (${PACKAGE_LOGOUT}
- ${UPOWER_LIBRARIES}
- ${PACKAGE_LIBRARIES})
+ link_directories (${PACKAGE_LIBRARY_DIRS})
+
+ target_link_libraries (${PACKAGE_LOGOUT}
+ ${PACKAGE_LIBRARIES})
+endif()
########### install files ###############

View File

@@ -1,204 +0,0 @@
--- cairo-dock-plugins-3.3.2/CMakeLists.txt.upower1 2014-06-16 14:01:49.819680691 +0900
+++ cairo-dock-plugins-3.3.2/CMakeLists.txt 2014-06-16 14:01:49.821680926 +0900
@@ -357,9 +357,10 @@
STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" UPOWER_MINOR "${UPOWER_VERSION}") # 2.28.3 => 2.28
STRING (REGEX REPLACE "\\.[0-9]*" "" UPOWER_MINOR "${UPOWER_MINOR}") # 2.28 => 28
if (${UPOWER_MAJOR} GREATER 0 OR ${UPOWER_MINOR} GREATER 89)
- message (STATUS " Your version of UPower no longer supports logout features")
+ message (STATUS " Your version of UPower no longer supports suspend/hibernate features")
+ set (with_upower_support "yes (0.99+)")
else()
- set (UPOWER_SUPPORTS_LOGOUT 1)
+ set (UPOWER_SUPPORTS_SUSPEND_HIBERNATE 1)
endif()
else()
set (with_upower_support no)
--- cairo-dock-plugins-3.3.2/logout/src/CMakeLists.txt.upower1 2014-06-16 14:01:49.822681043 +0900
+++ cairo-dock-plugins-3.3.2/logout/src/CMakeLists.txt 2014-06-16 14:02:34.010855358 +0900
@@ -21,7 +21,7 @@
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg")
-if (UPOWER_SUPPORTS_LOGOUT)
+if (UPOWER_SUPPORTS_SUSPEND_HIBERNATE)
add_definitions (-DCD_UPOWER_AVAILABLE="1")
include_directories (
--- cairo-dock-plugins-3.3.2/powermanager/src/CMakeLists.txt.upower1 2013-10-03 20:04:33.000000000 +0900
+++ cairo-dock-plugins-3.3.2/powermanager/src/CMakeLists.txt 2014-06-16 14:01:49.822681043 +0900
@@ -25,7 +25,10 @@
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
if (${UPOWER_FOUND})
- add_definitions (-DCD_UPOWER_AVAILABLE="1")
+ add_definitions (-DCD_UPOWER_AVAILABLE=1)
+ if (NOT UPOWER_SUPPORTS_SUSPEND_HIBERNATE)
+ add_definitions (-DCD_UPOWER_0_99=1)
+ endif()
endif()
include_directories (
--- cairo-dock-plugins-3.3.2/powermanager/src/powermanager-menu-functions.c.upower1 2013-10-03 20:04:33.000000000 +0900
+++ cairo-dock-plugins-3.3.2/powermanager/src/powermanager-menu-functions.c 2014-06-16 14:01:49.822681043 +0900
@@ -90,19 +90,5 @@
if (bAddSeparator)
CD_APPLET_ADD_SEPARATOR_IN_MENU (CD_APPLET_MY_MENU);
-
- // Power actions (Hibernate/Suspend)
- #ifdef CD_UPOWER_AVAILABLE // if Upower is available, we should be able to suspend; if not, then it's probably just a problem with consolekit, which should be fixed by the user; so show the items to give the user a hint about the problem.
- pMenuItem = CD_APPLET_ADD_IN_MENU (D_("Hibernate"), cd_power_hibernate, CD_APPLET_MY_MENU);
- if (! cd_power_can_hibernate ())
- gtk_widget_set_sensitive (pMenuItem, FALSE);
- pMenuItem = CD_APPLET_ADD_IN_MENU (D_("Suspend"), cd_power_suspend, CD_APPLET_MY_MENU);
- if (! cd_power_can_suspend ())
- gtk_widget_set_sensitive (pMenuItem, FALSE);
- #else
- if (cd_power_can_hibernate ())
- CD_APPLET_ADD_IN_MENU (D_("Hibernate"), cd_power_hibernate, CD_APPLET_MY_MENU);
- if (cd_power_can_suspend ())
- CD_APPLET_ADD_IN_MENU (D_("Suspend"), cd_power_suspend, CD_APPLET_MY_MENU);
- #endif
+
CD_APPLET_ON_BUILD_MENU_END
--- cairo-dock-plugins-3.3.2/powermanager/src/powermanager-struct.h.upower1 2013-10-03 20:04:33.000000000 +0900
+++ cairo-dock-plugins-3.3.2/powermanager/src/powermanager-struct.h 2014-06-16 14:01:49.823681160 +0900
@@ -22,10 +22,6 @@
#include <cairo-dock.h>
#ifdef CD_UPOWER_AVAILABLE
-/* to access suspend/resume functionality on Upower 0.9
- * even if we use first logind, we only use logind via DBus
- */
-#define UPOWER_ENABLE_DEPRECATED
#include <upower.h>
#endif
--- cairo-dock-plugins-3.3.2/powermanager/src/powermanager-upower.c.upower1 2013-10-03 20:04:33.000000000 +0900
+++ cairo-dock-plugins-3.3.2/powermanager/src/powermanager-upower.c 2014-06-16 14:01:49.823681160 +0900
@@ -48,7 +48,11 @@
UpClient *pUPowerClient = up_client_new ();
// get the list of devices.
- if (pUPowerClient == NULL || ! up_client_enumerate_devices_sync (pUPowerClient, NULL, NULL))
+ if (pUPowerClient == NULL
+ #ifndef CD_UPOWER_0_99 // no longer available with UPower 0.99+
+ || ! up_client_enumerate_devices_sync (pUPowerClient, NULL, NULL)
+ #endif
+ )
{
cd_warning ("couldn't get devices from UPower daemon");
if (pUPowerClient)
@@ -182,6 +186,7 @@
CD_APPLET_LEAVE ();
}
+#ifndef CD_UPOWER_0_99 // no longer used with UPower 0.99+
static void _on_device_changed (G_GNUC_UNUSED UpDevice *pDevice, G_GNUC_UNUSED gpointer data)
{
CD_APPLET_ENTER;
@@ -194,6 +199,7 @@
update_icon ();
CD_APPLET_LEAVE ();
}
+#endif
// Can be launched the first time (with the Task) or when a device is added/removed after.
static gboolean _cd_upower_update_state (CDSharedMemory *pSharedMemory)
@@ -248,6 +254,7 @@
g_free (cVendor);
g_free (cModel);
+ #ifndef CD_UPOWER_0_99 // no longer used with UPower 0.99+
if (myData.pTask != NULL // only the first time
|| myData.pBatteryDeviceList == NULL // or if it's a new device
|| g_list_find (myData.pBatteryDeviceList, pDevice) == NULL)
@@ -262,6 +269,7 @@
iSignalID = g_signal_connect (pDevice, "changed", G_CALLBACK (_on_device_changed), NULL);
myData.pSignalIDList = g_list_append (myData.pSignalIDList, GINT_TO_POINTER (iSignalID));
}
+ #endif
bFirst = FALSE;
}
@@ -364,38 +372,6 @@
}
}
-gboolean cd_power_hibernate (void)
-{
- if (myData.pUPowerClient != NULL)
- return up_client_hibernate_sync (myData.pUPowerClient, NULL, NULL);
- else
- return FALSE;
-}
-
-gboolean cd_power_suspend (void)
-{
- if (myData.pUPowerClient != NULL)
- return up_client_suspend_sync (myData.pUPowerClient, NULL, NULL);
- else
- return FALSE;
-}
-
-gboolean cd_power_can_hibernate (void)
-{
- if (myData.pUPowerClient != NULL)
- return up_client_get_can_hibernate (myData.pUPowerClient);
- else
- return FALSE;
-}
-
-gboolean cd_power_can_suspend (void)
-{
- if (myData.pUPowerClient != NULL)
- return up_client_get_can_suspend (myData.pUPowerClient);
- else
- return FALSE;
-}
-
#else // code without libupower
void cd_powermanager_start (void)
@@ -408,24 +384,4 @@
}
-gboolean cd_power_hibernate (void)
-{
- return FALSE;
-}
-
-gboolean cd_power_suspend (void)
-{
- return FALSE;
-}
-
-gboolean cd_power_can_hibernate (void)
-{
- return FALSE;
-}
-
-gboolean cd_power_can_suspend (void)
-{
- return FALSE;
-}
-
#endif
--- cairo-dock-plugins-3.3.2/powermanager/src/powermanager-upower.h.upower1 2013-10-03 20:04:33.000000000 +0900
+++ cairo-dock-plugins-3.3.2/powermanager/src/powermanager-upower.h 2014-06-16 14:01:49.823681160 +0900
@@ -27,14 +27,4 @@
void cd_upower_stop (void);
-
-gboolean cd_power_hibernate (void);
-
-gboolean cd_power_suspend (void);
-
-gboolean cd_power_can_hibernate (void);
-
-gboolean cd_power_can_suspend (void);
-
-
#endif