diff options
author | Dustin Polke <dustin.polke@uni-siegen.de> | 2011-09-16 17:13:48 +0200 |
---|---|---|
committer | Dustin Polke <dustin.polke@uni-siegen.de> | 2011-09-16 17:31:04 +0200 |
commit | 05f9192913c7894bcf15e2bbd730c7bdf98a5b0b (patch) | |
tree | 0e90adec057e99c1eb7c78847592409712600866 /x11-misc | |
parent | [x11-misc/cairo-dock-plugins-good] Version bump to 2.3.0.3. (diff) | |
download | DuPol-05f9192913c7894bcf15e2bbd730c7bdf98a5b0b.tar.gz DuPol-05f9192913c7894bcf15e2bbd730c7bdf98a5b0b.tar.bz2 DuPol-05f9192913c7894bcf15e2bbd730c7bdf98a5b0b.zip |
[x11-misc/cairo-dock-plugins-old] Version bump to 2.3.0.3.
- split up cairo-dock-plugins
- switch over to use cairo-dock.eclass
Diffstat (limited to 'x11-misc')
6 files changed, 244 insertions, 0 deletions
diff --git a/x11-misc/cairo-dock-plugins-old/ChangeLog b/x11-misc/cairo-dock-plugins-old/ChangeLog new file mode 100644 index 0000000..87154db --- /dev/null +++ b/x11-misc/cairo-dock-plugins-old/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for x11-misc/cairo-dock-plugins-old +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*cairo-dock-plugins-old-2.3.0.3 (16 Sep 2011) + + 16 Sep 2011; Dustin Polke <dustin.polke@uni-siegen.de> + +cairo-dock-plugins-old-2.3.0.3.ebuild, + +files/cairo-dock-plugins-old-2.3.0.3-CMakeLists.txt, + +files/cairo-dock-plugins-old-fix-wifi-script.patch, +metadata.xml: + Version bump to 2.3.0.3; transition to split cairo-dock-plugins.ebuilds. + diff --git a/x11-misc/cairo-dock-plugins-old/Manifest b/x11-misc/cairo-dock-plugins-old/Manifest new file mode 100644 index 0000000..f198d7b --- /dev/null +++ b/x11-misc/cairo-dock-plugins-old/Manifest @@ -0,0 +1,6 @@ +AUX cairo-dock-plugins-old-2.3.0.3-CMakeLists.txt 5087 RMD160 13d3ede3ea90b9bfa3ac0c919f31c987d6c2d158 SHA1 7486e983354af050345baadcc758c4fe9f16cb68 SHA256 2e0c0e90f228f77402c652f43c1ab4771d2ffaafd9860cdbfd83c606aaf20a56 +AUX cairo-dock-plugins-old-fix-wifi-script.patch 392 RMD160 213f9b349a85e4d1fd2e0ad0e14ece9fb931242f SHA1 e31a62fd238e6c161a68e5d2e629e7220595e045 SHA256 2c15d1d91b63a01710f516990921f63cd6250d82f7e1836bb897b46d3d4d397f +DIST cairo-dock-plugins-2.3.0~3.tar.gz 5959407 RMD160 2ae5301c36904e0183309347cf62725e333ac821 SHA1 216bda162362156e0bcae1aba8e5087d57605c64 SHA256 2bcfae5b6876a0a9a36ce7e0deb42a2d72234299da651c24f34e398f956a25cf +EBUILD cairo-dock-plugins-old-2.3.0.3.ebuild 1288 RMD160 93489949a504c909d56fe6ae272102663352c28a SHA1 bab6b5c1506afe98cff9c2b82793e1077e302b0f SHA256 ac30bccbae8aeafa4e0c3dd33a332f0a6fb56d87f45dd7d32a3134d3a0c29414 +MISC ChangeLog 480 RMD160 58650011a5baab7e45fc5ed2e900e80ba0284f8f SHA1 27c76ffc7256f4d762f0305fade2d0f9383f9a51 SHA256 90049690fef364d58f8ac7f0adeda759c43964e974657c96566f590c8f5b726e +MISC metadata.xml 529 RMD160 1eb153213a05f809a86cec803ef4edc8c88fcaec SHA1 6e2bf4971de2003ff2fd4c1b8ce0c0cb0319d549 SHA256 97f2de15f47da4233f422ebca82564ef831fc9232d2aeff4b521f82cc9a11bff diff --git a/x11-misc/cairo-dock-plugins-old/cairo-dock-plugins-old-2.3.0.3.ebuild b/x11-misc/cairo-dock-plugins-old/cairo-dock-plugins-old-2.3.0.3.ebuild new file mode 100644 index 0000000..6d882cd --- /dev/null +++ b/x11-misc/cairo-dock-plugins-old/cairo-dock-plugins-old-2.3.0.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# needs python handling added and then install Dbus python scripts + +EAPI="4" + +inherit cmake-utils cairo-dock + +DESCRIPTION="Official plugins for cairo-dock" +HOMEPAGE="http://www.glx-dock.org" + +LICENSE="|| ( LGPL-2 LGPL-2.1 LGPL-3 ) GPL-2 GPL-3" +SLOT="0" +KEYWORDS="~amd64" +CD_PLUGIN_IUSE="netspeed wifi" +IUSE="${CD_PLUGIN_IUSE}" +REQUIRED_USE="|| ( ${CD_PLUGIN_IUSE} )" + +RDEPEND="dev-libs/dbus-glib + >=dev-libs/glib-2.22:2 + dev-libs/libxml2:2 + gnome-base/librsvg:2 + sys-apps/dbus + x11-libs/cairo + x11-libs/gtk+:2 + x11-libs/gtkglext + ~x11-misc/cairo-dock-${PV}" +DEPEND="${RDEPEND} + dev-util/intltool + sys-devel/gettext + dev-util/pkgconfig" + +pkg_setup() { + use netspeed && CD_PLUGINS+=( "netspeed" ) + use wifi && CD_PLUGINS+=( "wifi" ) +} + +src_unpack() { + cairo-dock_src_unpack +} + +src_prepare() { + cairo-dock_src_prepare + use wifi && epatch "${FILESDIR}"/${PN}-fix-wifi-script.patch +} + +src_configure() { + mycmakeargs+=( + "$(cmake-utils_use_enable netspeed NETSPEED)" + "$(cmake-utils_use_enable wifi WIFI)" + ) + cmake-utils_src_configure +} + +#pkg_postinst() { +# elog "The applets 'Cpusage', 'Ram-meter' and 'Nvidia' are merged now into" +# elog "'System-Monitor' applet." +#} diff --git a/x11-misc/cairo-dock-plugins-old/files/cairo-dock-plugins-old-2.3.0.3-CMakeLists.txt b/x11-misc/cairo-dock-plugins-old/files/cairo-dock-plugins-old-2.3.0.3-CMakeLists.txt new file mode 100644 index 0000000..69696da --- /dev/null +++ b/x11-misc/cairo-dock-plugins-old/files/cairo-dock-plugins-old-2.3.0.3-CMakeLists.txt @@ -0,0 +1,135 @@ +########### requirements ############### + +cmake_minimum_required (VERSION 2.6) +find_package (PkgConfig) +include (CheckLibraryExists) +include (CheckIncludeFiles) +include (CheckFunctionExists) +include (CheckSymbolExists) + +########### project ############### + +project ("cairo-dock-plugins") +set (VERSION "2.3.0~3") + +add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall +add_definitions (-DGL_GLEXT_PROTOTYPES="1") + +############ sources tarball ############# + +set (CPACK_SOURCE_GENERATOR "TGZ") +set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}") +set (CPACK_SOURCE_IGNORE_FILES + "/build/;/.bzr/;bzrignore$;/misc/;~$;${CPACK_SOURCE_IGNORE_FILES}") +include (CPack) + +add_custom_target( dist + COMMAND ${CMAKE_MAKE_PROGRAM} package_source) +add_custom_target(dist-bzr + COMMAND bzr export ${CMAKE_PROJECT_NAME}-${VERSION}.tar.gz + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + +########### global variables ############### + +if( WIN32 ) + message(FATAL_ERROR "Cairo-Dock requires an air-conditioned room. Please close Windows!") +endif( WIN32 ) + +set (PACKAGE ${CMAKE_PROJECT_NAME}) +set (GETTEXT_PACKAGE ${PACKAGE}) + +# get plug-ins install dir +execute_process( + COMMAND pkg-config cairo-dock --variable=pluginsdir # /usr/lib/cairo-dock + OUTPUT_VARIABLE pluginsdir) +STRING (REGEX REPLACE "\n" "" pluginsdir ${pluginsdir}) # la commande rajoute un retour chariot ... +# get plug-ins data dir +execute_process( + COMMAND pkg-config cairo-dock --variable=pluginsdatadir # /usr/share/cairo-dock/plug-ins + OUTPUT_VARIABLE pluginsdatadir) +STRING (REGEX REPLACE "\n" "" pluginsdatadir ${pluginsdatadir}) +# check that version matches with the core +execute_process( + COMMAND pkg-config --modversion cairo-dock # 2.2.0-3 + OUTPUT_VARIABLE dock_version) +STRING (REGEX REPLACE "\n" "" dock_version ${dock_version}) +if (NOT "${dock_version}" STREQUAL "${VERSION}") # Version + MESSAGE (FATAL_ERROR "warning : version mismatch with the core : " ${VERSION} <> ${dock_version}) +endif() + +#if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT "${FORCE_LIB64}" STREQUAL "") # 64bits and force install in lib64 +# set (libname "lib64") +#else() +# set (libname "lib${LIB_SUFFIX}") +#endif() +#set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock") # /usr/lib + +# check that installation dir matches with the core +GET_FILENAME_COMPONENT(libdir "${pluginsdir}/.." ABSOLUTE) # /usr/lib +GET_FILENAME_COMPONENT(prefix "${pluginsdir}/../.." ABSOLUTE) # /usr +if (NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${prefix}") + message (STATUS "Warning : plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}") + set (CMAKE_INSTALL_PREFIX "${prefix}") + #set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock") +endif() + +# set internationalisation +set (GETTEXT_PLUGINS "cairo-dock-plugins") +set (localedir "${CMAKE_INSTALL_PREFIX}/share/locale") +set (gaugesdir "${CMAKE_INSTALL_PREFIX}/share/cairo-dock/gauges") + +set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/") # additionnal FindPackage files + +########### dependencies ############### + +message ("") +message (STATUS "=====================") +message (STATUS "Check dependencies...") +message (STATUS "=====================") +message ("") + +pkg_check_modules ("PACKAGE" REQUIRED "gtk+-2.0" "gthread-2.0" "cairo" "librsvg-2.0" "dbus-1" "dbus-glib-1" "libxml-2.0" "gtkglext-1.0" "cairo-dock") + +############# GLIB ################# +pkg_check_modules (GLIB glib-2.0) + STRING (REGEX REPLACE "\\..*" "" GLIB_MAJOR "${GLIB_VERSION}") # 2.28.3 => 2 + STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" GLIB_MINOR "${GLIB_VERSION}") # 2.28.3 => 2.28 + STRING (REGEX REPLACE "\\.[0-9]*" "" GLIB_MINOR "${GLIB_MINOR}") # 2.28 => 28 + STRING (REGEX REPLACE ".*\\." "" GLIB_NANO "${GLIB_VERSION}") # 2.28.3 => 3 + STRING (REGEX REPLACE "-.*" "" GLIB_NANO "${GLIB_NANO}") + +############# NETSPEED ################# +if (ENABLE_NETSPEED) + set (GETTEXT_NETSPEED ${GETTEXT_PLUGINS}) + set (VERSION_NETSPEED "1.2.5") + set (PACKAGE_NETSPEED "cd-netspeed") + set (netspeeddatadir "${pluginsdatadir}/netspeed") + configure_file (${CMAKE_CURRENT_SOURCE_DIR}/netspeed/data/netspeed.conf.in ${CMAKE_CURRENT_BINARY_DIR}/netspeed/data/netspeed.conf) + add_subdirectory (netspeed) + set (with_netspeed "yes") +else() + set (with_netspeed "no") +endif() + +############# WIFI ################# +if (ENABLE_WIFI) + set (GETTEXT_WIFI ${GETTEXT_PLUGINS}) + set (VERSION_WIFI "1.2.6") + set (PACKAGE_WIFI "cd-wifi") + set (wifidatadir "${pluginsdatadir}/wifi") + configure_file (${CMAKE_CURRENT_SOURCE_DIR}/wifi/data/wifi.conf.in ${CMAKE_CURRENT_BINARY_DIR}/wifi/data/wifi.conf) + add_subdirectory (wifi) + set (with_wifi "yes") +else() + set (with_wifi "no") +endif() + +message ("") +message (STATUS "===============") +message (STATUS "Plug-ins build:") +message (STATUS "===============") +message ("") +message (STATUS "Old:") +message (STATUS " - with Netspeed applet: ${with_netspeed}") +message (STATUS " - with Wifi applet: ${with_wifi}") +message ("") diff --git a/x11-misc/cairo-dock-plugins-old/files/cairo-dock-plugins-old-fix-wifi-script.patch b/x11-misc/cairo-dock-plugins-old/files/cairo-dock-plugins-old-fix-wifi-script.patch new file mode 100644 index 0000000..610cda0 --- /dev/null +++ b/x11-misc/cairo-dock-plugins-old/files/cairo-dock-plugins-old-fix-wifi-script.patch @@ -0,0 +1,17 @@ +--- wifi/data/wifi ++++ wifi/data/wifi +@@ -1,6 +1,6 @@ + #!/bin/bash + +-# Compiz check for Cairo-Dock ++# Wifi check for Cairo-Dock + # + # Copyright : (C) 2009 by Rémy Robertson + # E-mail : fabounet@glx-dock.org +@@ -17,4 +17,5 @@ + # GNU General Public License for more details. + # http://www.gnu.org/licenses/licenses.html#GPL + +-iwconfig 2>/dev/null ++/sbin/iwconfig 2>/dev/null ++echo "Wifi" diff --git a/x11-misc/cairo-dock-plugins-old/metadata.xml b/x11-misc/cairo-dock-plugins-old/metadata.xml new file mode 100644 index 0000000..ebfd4db --- /dev/null +++ b/x11-misc/cairo-dock-plugins-old/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="netspeed">Enables the Netspeed applet.</flag> + <flag name="wifi">Enables the Wifi applet.</flag> + </use> + <longdescription>Cairo-dock-pluginsold offers official plugins for cairo-dock, which will be removed in the near future.</longdescription> + <maintainer> + <email>dustin.polke@uni-siegen.de</email> + <name>Dustin Polke</name> + </maintainer> + <herd>no-herd</herd> +</pkgmetadata> |