summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Polke <dustin.polke@uni-siegen.de>2011-09-16 16:04:07 +0200
committerDustin Polke <dustin.polke@uni-siegen.de>2011-09-16 17:27:59 +0200
commitd2559adb79541ae8a529d78e693926c2ef5bf9bd (patch)
treedfe8ea1ef3e061f43c07d908c4813b97c78eaa69 /x11-misc
parent[x11-misc/cairo-dock] Version bump to 2.3.0.3. (diff)
downloadDuPol-d2559adb79541ae8a529d78e693926c2ef5bf9bd.tar.gz
DuPol-d2559adb79541ae8a529d78e693926c2ef5bf9bd.tar.bz2
DuPol-d2559adb79541ae8a529d78e693926c2ef5bf9bd.zip
[x11-misc/cairo-dock-plugins-core] Version bump to 2.3.0.3.
- split up cairo-dock-plugins - switch over to use cairo-dock.eclass
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/cairo-dock-plugins-core/ChangeLog14
-rw-r--r--x11-misc/cairo-dock-plugins-core/Manifest7
-rw-r--r--x11-misc/cairo-dock-plugins-core/cairo-dock-plugins-core-2.3.0.3.ebuild119
-rw-r--r--x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-CMakeLists.txt319
-rw-r--r--x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-Dbus_CMakeLists.patch56
-rw-r--r--x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-xfce-integration_CMakeLists.patch18
-rw-r--r--x11-misc/cairo-dock-plugins-core/metadata.xml20
7 files changed, 553 insertions, 0 deletions
diff --git a/x11-misc/cairo-dock-plugins-core/ChangeLog b/x11-misc/cairo-dock-plugins-core/ChangeLog
new file mode 100644
index 0000000..e6d37f1
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for x11-misc/cairo-dock-plugins-core
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*cairo-dock-plugins-core-2.3.0.3 (16 Sep 2011)
+
+ 16 Sep 2011; Dustin Polke <dustin.polke@uni-siegen.de>
+ +cairo-dock-plugins-core-2.3.0.3.ebuild,
+ +files/cairo-dock-plugins-core-2.3.0.3-CMakeLists.txt,
+ +files/cairo-dock-plugins-core-2.3.0.3-Dbus_CMakeLists.patch,
+ +files/cairo-dock-plugins-core-2.3.0.3-xfce-integration_CMakeLists.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-core/Manifest b/x11-misc/cairo-dock-plugins-core/Manifest
new file mode 100644
index 0000000..baba907
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/Manifest
@@ -0,0 +1,7 @@
+AUX cairo-dock-plugins-core-2.3.0.3-CMakeLists.txt 13139 RMD160 2b698df932660eebabf59b4a8c92cd226312ca7c SHA1 925c4a5be631dd9d53e37267b6fb6d65fbe5eca5 SHA256 960886d49981fad04d313ef2c55dbe6d84bc6f29e71b2b172d714974eb87c779
+AUX cairo-dock-plugins-core-2.3.0.3-Dbus_CMakeLists.patch 3691 RMD160 bafe1ac6243e8acacec80c9c9b723d4f08fdb236 SHA1 9cd20cf7b6ae09c417e2788b1e1217e2143e9c51 SHA256 db3dd4b6d31d9ff4ca32401493166643f03bbc4044329c5cdec23f5ee3652f48
+AUX cairo-dock-plugins-core-2.3.0.3-xfce-integration_CMakeLists.patch 826 RMD160 afea9d4e551a845f23287abad77f4853c7347c3f SHA1 f7b5c43de2ba42669c50c18ff98acbdf4879d535 SHA256 f0679a390212d9023c0e10ad48a6919d82370e3005ff8dcb0bb69fea94b09cab
+DIST cairo-dock-plugins-2.3.0~3.tar.gz 5959407 RMD160 2ae5301c36904e0183309347cf62725e333ac821 SHA1 216bda162362156e0bcae1aba8e5087d57605c64 SHA256 2bcfae5b6876a0a9a36ce7e0deb42a2d72234299da651c24f34e398f956a25cf
+EBUILD cairo-dock-plugins-core-2.3.0.3.ebuild 2774 RMD160 4714e0b6c6ef979011e9abf7f2e7f222b92e45e8 SHA1 4b2f5f570f5cd79127fbc86891efffea7d3503b2 SHA256 c73cc52fce7f8a018cab3a84ad66b8e010d55aa9474c462d87a0a194ac267f1a
+MISC ChangeLog 571 RMD160 c2baa95912dad1bc5fac7bc1f20cb0ac9c95555d SHA1 cb4e2ee5794c245247fb66250932f5fbc9817963 SHA256 c5a3c4426c866075d6752ba4b9bcdf49a8e83423e6f6e8789bc9c4125d134a1a
+MISC metadata.xml 837 RMD160 9363f73b1106164a2f8d549f7a8825e3a277a370 SHA1 7a8b98699cd180be1136aa92c1c7fddd09e4f94a SHA256 e26d9c0a9e8cefe2b9e41208f221a79cea533229a6446396d17d6146051b9585
diff --git a/x11-misc/cairo-dock-plugins-core/cairo-dock-plugins-core-2.3.0.3.ebuild b/x11-misc/cairo-dock-plugins-core/cairo-dock-plugins-core-2.3.0.3.ebuild
new file mode 100644
index 0000000..dd8847a
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/cairo-dock-plugins-core-2.3.0.3.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit cmake-utils cairo-dock python
+
+DESCRIPTION="Official recommended 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_PLUGINS_IUSE="gnome xfce"
+IUSE="${CD_PLUGINS_IUSE} mono python ruby vala"
+
+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}
+ mono? ( dev-dotnet/glib-sharp
+ dev-dotnet/ndesk-dbus
+ dev-dotnet/ndesk-dbus-glib
+ dev-lang/mono )
+ ruby? ( dev-lang/ruby )
+ vala? ( dev-lang/vala
+ >=dev-libs/glib-2.26:2 )
+ xfce? ( xfce-extra/thunar-vfs )
+ !x11-misc/cairo-dock-plugins"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ CD_PLUGINS=(
+ "dock-rendering"
+ "desklet-rendering"
+ "dialog-rendering"
+ "Dbus"
+ "Animated-icons"
+ "icon-effect"
+ "illusion"
+ "drop-indicator"
+ )
+ use gnome && CD_PLUGINS+=( "gnome-integration" )
+ use xfce && CD_PLUGINS+=( "xfce-integration" )
+ use gnome || use xfce && CD_PLUGINS+=( "gvfs-integration" )
+}
+
+src_unpack() {
+ cairo-dock_src_unpack
+}
+
+src_prepare() {
+ cairo-dock_src_prepare
+ epatch "${FILESDIR}"/${P}-Dbus_CMakeLists.patch
+ use xfce && epatch "${FILESDIR}"/${P}-xfce-integration_CMakeLists.patch
+ use python && python_copy_sources Dbus/interfaces/{bash,python}
+}
+
+src_configure() {
+ mycmakeargs+=(
+ "$(cmake-utils_use_enable gnome GNOME-INTEGRATION)"
+ "$(cmake-utils_use_enable xfce XFCE-INTEGRATION)"
+ "$(cmake-utils_use_with mono MONO-INTERFACE)"
+ "$(cmake-utils_use_with python PYTHON-INTERFACE)"
+ "$(cmake-utils_use_with ruby RUBY-INTERFACE)"
+ "$(cmake-utils_use_with vala VALA-INTERFACE)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use python; then
+ build_bindings() {
+ "$(PYTHON)" setup.py -q build
+ }
+ local target sdir="Dbus/interfaces/"
+ for target in "bash" "python"; do
+ python_execute_function -s --source-dir ${sdir}${target} build_bindings
+ done
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use python; then
+ install_bindings() {
+ insinto "$(python_get_sitedir)"/cairodock
+ doins build/lib/*.py
+ touch "${D}/$(python_get_sitedir)"/cairodock/__init__.py
+ }
+ local target sdir="Dbus/interfaces/"
+ for target in "bash" "python"; do
+ python_execute_function -s --source-dir ${sdir}${target} install_bindings
+ done
+ fi
+}
+
+pkg_postinst() {
+ use python && python_mod_optimize cairodock
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup cairodock
+}
diff --git a/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-CMakeLists.txt b/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-CMakeLists.txt
new file mode 100644
index 0000000..6989896
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-CMakeLists.txt
@@ -0,0 +1,319 @@
+########### 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
+
+########### dependancies ###############
+
+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}")
+
+############# ANIMATED ICONS #################
+set (GETTEXT_ANIMATED_ICONS ${GETTEXT_PLUGINS})
+set (VERSION_ANIMATED_ICONS "1.0.10")
+set (PACKAGE_ANIMATED_ICONS "cd-Animated-icons")
+set (animated_iconsdatadir "${pluginsdatadir}/Animated-icons")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Animated-icons/data/Animated-icons.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Animated-icons/data/Animated-icons.conf)
+add_subdirectory (Animated-icons)
+
+############# DBUS #################
+if (WITH_PYTHON-INTERFACE)
+ find_program (PYTHON_EXECUTABLE python)
+ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print sys.version" OUTPUT_VARIABLE PYTHON_VERSION)
+ if ("${PYTHON_VERSION}" STREQUAL "")
+ message (FATAL_ERROR "Could not find Python!")
+ endif()
+ STRING (REGEX REPLACE "\n" "" PYTHON_VERSION ${PYTHON_VERSION})
+ message (STATUS "Python Version: ${PYTHON_VERSION}")
+ GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE)
+ if (EXISTS ${DEBIAN_VERSION})
+ message (STATUS " will use '--install-layout deb' with 'python setup.py install'")
+ set (DEBIAN_INSTALL_LAYOUT "--install-layout deb")
+ endif()
+ set (PYTHON_FOUND "TRUE")
+ set (with_python "yes")
+else()
+ set (with_python "no")
+endif()
+
+# find_package(Ruby) found libs of ruby-dev but we only need a directory where we can install ruby libs.
+if (WITH_RUBY-INTERFACE)
+ find_program (RUBY_EXECUTABLE ruby)
+ EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['rubylibdir']"
+ OUTPUT_VARIABLE RUBY_LIB_DIR)
+ message (STATUS "RUBY_LIBRARY: ${RUBY_LIB_DIR}")
+ if ("${RUBY_LIB_DIR}" STREQUAL "" OR "${RUBY_LIB_DIR}" STREQUAL "nil")
+ message (FATAL_ERROR "Could not find ruby libs!")
+ endif()
+ string (REGEX REPLACE "lib/ruby/[0-9].[0-9]" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
+ string (REGEX REPLACE "${RUBY_LIB_DIR_INSTALL}" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
+ set (RUBY_LIB_DIR "${CMAKE_INSTALL_PREFIX}/${RUBY_LIB_DIR_INSTALL}")
+ message (STATUS " will be installed in: ${RUBY_LIB_DIR}")
+ set (RUBY_FOUND "TRUE")
+ set (with_ruby "yes")
+else()
+ set (with_ruby "no")
+endif()
+
+#find_package (Mono)
+if (WITH_MONO-INTERFACE)
+ find_program (GMCS_EXECUTABLE gmcs)
+ if ("${GMCS_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${GMCS_EXECUTABLE})
+ message (FATAL_ERROR "Could not find Mono compiler gmcs!")
+ endif()
+ pkg_check_modules (MONO_PACKAGE glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0)
+ if ("${MONO_PACKAGE_FOUND}" STREQUAL "")
+ message (FATAL_ERROR "Could not find glib-sharp-2.0, ndesk-dbus-1.0 or ndesk-dbus-glib-1.0!")
+ endif()
+ set (MONO_FOUND "TRUE")
+ set (with_mono "yes")
+else()
+ set (with_mono "no")
+endif()
+
+# Valac is only riquired to convert vala files to C files.
+# So we can directly use produced files (c, h, vapi) without using valac.
+if (WITH_VALA-INTERFACE)
+ set (with_vala "yes")
+
+ find_program (VALAC_EXE valac)
+ message (STATUS "VALAC_EXE: ${VALAC_EXE}")
+
+ if (NOT "${VALAC_EXE}" STREQUAL "VALAC_EXE-NOTFOUND") # now it works with 0.10 and 0.11 (= next 0.12)
+ execute_process(COMMAND ${VALAC_EXE} "--version"
+ OUTPUT_VARIABLE "VALA_VERSION")
+ string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION})
+ string(STRIP ${VALA_VERSION} "VALA_VERSION")
+ message (STATUS "VALA_VERSION: ${VALA_VERSION}")
+
+ STRING (REGEX REPLACE "\\..*" "" VALA_MAJOR "${VALA_VERSION}")
+ # message (STATUS "VALA_MAJOR : ${VALA_MAJOR}")
+
+ STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" VALA_MINOR "${VALA_VERSION}") # 0.1.7 => 1.7
+ STRING (REGEX REPLACE "\\.[0-9]*" "" VALA_MINOR "${VALA_MINOR}")
+ # message (STATUS "VALA_MINOR : ${VALA_MINOR}")
+
+ STRING (REGEX REPLACE ".*\\." "" VALA_NANO "${VALA_VERSION}")
+ STRING (REGEX REPLACE "-.*" "" VALA_NANO "${VALA_NANO}")
+ # message (STATUS "VALA_NANO : ${VALA_NANO}")
+
+ if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9) # vala > 0.10
+ message (STATUS " Vala compiler OK (>= 0.10).")
+ set (VALAC_FOUND "TRUE")
+ set (with_valac "yes")
+ else()
+ set (with_valac "no")
+ message (STATUS "Vala compiler is too old (0.10 required), won't build Valac interface.")
+ endif()
+ else()
+ set (with_valac "no")
+ endif()
+else()
+ set (with_vala "no")
+ set (with_valac "no")
+endif()
+
+set (GETTEXT_DBUS ${GETTEXT_PLUGINS})
+set (VERSION_DBUS "1.2.1")
+set (PACKAGE_DBUS "cd-Dbus")
+set (dbusdatadir "${pluginsdatadir}/Dbus")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Dbus/data/Dbus.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Dbus/data/Dbus.conf)
+add_subdirectory (Dbus)
+
+############# DESKLET_RENDERING #################
+set (GETTEXT_DESKLET_RENDERING ${GETTEXT_PLUGINS})
+set (VERSION_DESKLET_RENDERING "1.5.6")
+set (PACKAGE_DESKLET_RENDERING "cd-desklet-rendering")
+set (desklet_renderingdatadir "${pluginsdatadir}/desklet-rendering")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/desklet-rendering/data/desklet-rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/desklet-rendering/data/desklet-rendering.conf)
+add_subdirectory (desklet-rendering)
+
+############# DIALOG_RENDERING #################
+set (GETTEXT_DIALOG_RENDERING ${GETTEXT_PLUGINS})
+set (VERSION_DIALOG_RENDERING "0.5.1")
+set (PACKAGE_DIALOG_RENDERING "cd-dialog-rendering")
+set (dialog_renderingdatadir "${pluginsdatadir}/dialog-rendering")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dialog-rendering/data/dialog-rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dialog-rendering/data/dialog-rendering.conf)
+add_subdirectory (dialog-rendering)
+
+############# DOCK RENDERING #################
+set (GETTEXT_RENDERING ${GETTEXT_PLUGINS})
+set (VERSION_RENDERING "1.5.9")
+set (PACKAGE_RENDERING "cd-rendering")
+set (renderingdatadir "${pluginsdatadir}/rendering")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dock-rendering/data/rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dock-rendering/data/rendering.conf)
+add_subdirectory (dock-rendering)
+
+############# DROP INDICATOR #################
+set (GETTEXT_DROP_INDICATOR ${GETTEXT_PLUGINS})
+set (VERSION_DROP_INDICATOR "1.1.4")
+set (PACKAGE_DROP_INDICATOR "cd-drop_indicator")
+set (drop_indicatordatadir "${pluginsdatadir}/drop-indicator")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/drop-indicator/data/drop_indicator.conf.in ${CMAKE_CURRENT_BINARY_DIR}/drop-indicator/data/drop_indicator.conf)
+add_subdirectory (drop-indicator)
+
+############# GVFS-INTEGRATION #################
+if (ENABLE_GNOME-INTEGRATION OR ENABLE_XFCE-INTEGRATION)
+ pkg_check_modules ("LIBGIO" "gio-2.0")
+ add_subdirectory (gvfs-integration)
+endif()
+
+############# GNOME-INTEGRATION #################
+if (ENABLE_GNOME-INTEGRATION)
+ pkg_check_modules (GNOME_INTEGRATION gio-2.0)
+ if ("${GNOME_INTEGRATION_FOUND}" STREQUAL "")
+ message (ERROR_FATAL "Could not find gio!")
+ endif()
+ set (VERSION_GNOME_INTEGRATION "1.0.3")
+ set (PACKAGE_GNOME_INTEGRATION "cd_gnome-integration")
+ set (with_gnome_integration "yes")
+ set (gnome_integrationdatadir "${pluginsdatadir}/gnome-integration")
+ add_subdirectory ("gnome-integration")
+else()
+ set (with_gnome_integration "no")
+endif()
+
+############# ICON EFFECT #################
+set (GETTEXT_ICON_EFFECTS ${GETTEXT_PLUGINS})
+set (VERSION_ICON_EFFECTS "1.2.4")
+set (PACKAGE_ICON_EFFECTS "cd-icon-effect")
+set (icon_effectsdatadir "${pluginsdatadir}/icon-effect")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/icon-effect/data/icon-effect.conf.in ${CMAKE_CURRENT_BINARY_DIR}/icon-effect/data/icon-effect.conf)
+add_subdirectory (icon-effect)
+
+############# ILLUSION #################
+set (GETTEXT_ILLUSION ${GETTEXT_PLUGINS})
+set (VERSION_ILLUSION "1.0.7")
+set (PACKAGE_ILLUSION "cd-illusion")
+set (illusiondatadir "${pluginsdatadir}/illusion")
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/illusion/data/illusion.conf.in ${CMAKE_CURRENT_BINARY_DIR}/illusion/data/illusion.conf)
+add_subdirectory (illusion)
+
+############# XFCE-INTEGRATION #################
+if (ENABLE_XFCE-INTEGRATION)
+ pkg_check_modules (XFCE_INTEGRATION_THUNAR thunar-vfs-1)
+# pkg_check_modules (XFCE_INTEGRATION_GVFS gio-2.0)
+# if ("${XFCE_INTEGRATION_THUNAR_FOUND}" STREQUAL "" AND "${XFCE_INTEGRATION_GVFS_FOUND}" STREQUAL "")
+ if ("${XFCE_INTEGRATION_THUNAR_FOUND}" STREQUAL "")
+ message (FATAL_ERROR "Could not find thunar-vfs!")
+ endif()
+ set (VERSION_XFCE_INTEGRATION "1.0.3")
+ set (PACKAGE_XFCE_INTEGRATION "cd_xfce-integration")
+ set (with_xfce_integration "yes")
+ set (xfce_integrationdatadir "${pluginsdatadir}/xfce-integration")
+ add_subdirectory ("xfce-integration")
+else()
+ set (with_xfce_integration "no")
+endif()
+
+message ("")
+message (STATUS "===============")
+message (STATUS "Language build:")
+message (STATUS "===============")
+message ("")
+add_subdirectory (po)
+
+message ("")
+message (STATUS "===============")
+message (STATUS "Plug-ins build:")
+message (STATUS "===============")
+message ("")
+message (STATUS "Stable:")
+message (STATUS " - with Gnome support: ${with_gnome_integration}")
+message (STATUS " - with XFCE support: ${with_xfce_integration}")
+message (STATUS " - with Python interface: ${with_python}")
+message (STATUS " - with Ruby interface: ${with_ruby}")
+message (STATUS " - with Mono interface: ${with_mono}")
+message (STATUS " - with Vala interface: ${with_vala}")
+message (STATUS " - with Vala Translator (valac) : ${with_valac}")
+message ("")
diff --git a/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-Dbus_CMakeLists.patch b/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-Dbus_CMakeLists.patch
new file mode 100644
index 0000000..f4da37e
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-Dbus_CMakeLists.patch
@@ -0,0 +1,56 @@
+--- cairo-dock-plugins-2.3.0~3/Dbus/interfaces/python/CMakeLists.txt.orig 2011-07-08 15:33:31.000000000 +0200
++++ cairo-dock-plugins-2.3.0~3/Dbus/interfaces/python/CMakeLists.txt 2011-07-08 15:34:00.000000000 +0200
+@@ -1,13 +1,13 @@
+
+ ########### install files ###############
+-
+-if (NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
+- # copy *.py to current binary dir (cleaner)
+- execute_process(COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/setup.py" "${CMAKE_CURRENT_SOURCE_DIR}/CDApplet.py" ${CMAKE_CURRENT_BINARY_DIR})
+- exec_program("${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}" ARGS "setup.py" "-q" "build")
+-endif()
+-# Run a custom script with 'make install'
+-add_custom_target(python_pyc ALL)
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/PythonInstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/PythonInstall.cmake)
+-set_target_properties(python_pyc PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/PythonInstall.cmake)
++### handle python stuff in ebuild
++#if (NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
++# # copy *.py to current binary dir (cleaner)
++# execute_process(COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/setup.py" "${CMAKE_CURRENT_SOURCE_DIR}/CDApplet.py" ${CMAKE_CURRENT_BINARY_DIR})
++# exec_program("${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}" ARGS "setup.py" "-q" "build")
++#endif()
++## Run a custom script with 'make install'
++#add_custom_target(python_pyc ALL)
++#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/PythonInstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/PythonInstall.cmake)
++#set_target_properties(python_pyc PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/PythonInstall.cmake)
+ # execute_process(COMMAND python setup.py install ${DEBIAN_INSTALL_LAYOUT})
+--- cairo-dock-plugins-2.3.0~3/Dbus/interfaces/bash/CMakeLists.txt.orig 2011-07-08 15:32:30.000000000 +0200
++++ cairo-dock-plugins-2.3.0~3/Dbus/interfaces/bash/CMakeLists.txt 2011-07-08 15:33:22.000000000 +0200
+@@ -1,16 +1,17 @@
+
+ ########### install files ###############
+
+-# the python script goes with other python scripts.
+-if (NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
+- # copy *.py to current binary dir (cleaner)
+- execute_process(COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/setup.py" "${CMAKE_CURRENT_SOURCE_DIR}/CDBashApplet.py" ${CMAKE_CURRENT_BINARY_DIR})
+- exec_program("${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}" ARGS "setup.py" "-q" "build")
+-endif()
+-# Run a custom script with 'make install'
+-add_custom_target(bash_pyc ALL)
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/BashInstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/BashInstall.cmake)
+-set_target_properties(bash_pyc PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/BashInstall.cmake)
++### handle python stuff in ebuild
++## the python script goes with other python scripts.
++#if (NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
++# # copy *.py to current binary dir (cleaner)
++# execute_process(COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/setup.py" "${CMAKE_CURRENT_SOURCE_DIR}/CDBashApplet.py" ${CMAKE_CURRENT_BINARY_DIR})
++# exec_program("${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}" ARGS "setup.py" "-q" "build")
++#endif()
++## Run a custom script with 'make install'
++#add_custom_target(bash_pyc ALL)
++#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/BashInstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/BashInstall.cmake)
++#set_target_properties(bash_pyc PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/BashInstall.cmake)
+
+ # and the bash functions goes into the data dir of the applet (didn't find a better place).
+ install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/CDBashApplet.sh
diff --git a/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-xfce-integration_CMakeLists.patch b/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-xfce-integration_CMakeLists.patch
new file mode 100644
index 0000000..e4abbe8
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/files/cairo-dock-plugins-core-2.3.0.3-xfce-integration_CMakeLists.patch
@@ -0,0 +1,18 @@
+--- cairo-dock-plugins-2.3.0~3/xfce-integration/src/CMakeLists.txt.orig 2011-07-06 22:14:37.000000000 +0200
++++ cairo-dock-plugins-2.3.0~3/xfce-integration/src/CMakeLists.txt 2011-07-06 22:15:04.000000000 +0200
+@@ -8,13 +8,8 @@ SET(cd_xfce-integration_LIB_SRCS
+ applet-utils.c
+ applet-utils.h
+ )
+-if(${XFCE_INTEGRATION_GVFS_FOUND})
+- MESSAGE(STATUS "GVFS found: source file applet-thunar-vfs.c NOT included for compilation.")
+-else()
+- LIST(APPEND cd_xfce-integration_LIB_SRCS applet-thunar-vfs.c)
+- add_definitions (-DHAVE_THUNAR="1")
+- MESSAGE(STATUS "GVFS NOT found: source file applet-thunar-vfs.c included for compilation.")
+-endif()
++LIST(APPEND cd_xfce-integration_LIB_SRCS applet-thunar-vfs.c)
++add_definitions (-DHAVE_THUNAR="1")
+
+ add_library(${PACKAGE_XFCE_INTEGRATION} SHARED ${cd_xfce-integration_LIB_SRCS})
+
diff --git a/x11-misc/cairo-dock-plugins-core/metadata.xml b/x11-misc/cairo-dock-plugins-core/metadata.xml
new file mode 100644
index 0000000..e28c82d
--- /dev/null
+++ b/x11-misc/cairo-dock-plugins-core/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="gnome">Enables the integration in <pkg>gnome-base/gnome</pkg> desktop.</flag>
+ <flag name="mono">Enables Mono interface in Cairo-Dock.</flag>
+ <flag name="python">Enables Python interface in Cairo-Dock.</flag>
+ <flag name="ruby">Enables Ruby interface in Cairo-Dock.</flag>
+ <flag name="vala">Enables Vala interface in Cairo-Dock.</flag>
+ <flag name="xfce">Enables the integration in <pkg>xfce-base/xfce4</pkg> desktop.</flag>
+ </use>
+ <longdescription>Cairo-dock-plugins-core offers recommended official plugins for cairo-dock.</longdescription>
+ <maintainer>
+ <email>dustin.polke@uni-siegen.de</email>
+ <name>Dustin Polke</name>
+ </maintainer>
+ <herd>no-herd</herd>
+</pkgmetadata>
+
+