summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-08-12 10:13:37 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2017-08-13 23:25:51 +0200
commit1edaeb45f8c277a4086e56f4e7da0d4dddfa6c91 (patch)
tree559f69cc4565f7c59d4e7ac92cbab98a5fb86968 /kde-frameworks/kidletime
parentsys-kernel/gentoo-sources: Cleanup of the 4.12.X series (diff)
downloadgentoo-1edaeb45f8c277a4086e56f4e7da0d4dddfa6c91.tar.gz
gentoo-1edaeb45f8c277a4086e56f4e7da0d4dddfa6c91.tar.bz2
gentoo-1edaeb45f8c277a4086e56f4e7da0d4dddfa6c91.zip
kde-frameworks: Add KDE Frameworks 5.37
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'kde-frameworks/kidletime')
-rw-r--r--kde-frameworks/kidletime/Manifest1
-rw-r--r--kde-frameworks/kidletime/files/kidletime-5.37.0-qtdbus.patch32
-rw-r--r--kde-frameworks/kidletime/kidletime-5.37.0.ebuild48
3 files changed, 81 insertions, 0 deletions
diff --git a/kde-frameworks/kidletime/Manifest b/kde-frameworks/kidletime/Manifest
index 38f879a2e159..f95a7554b893 100644
--- a/kde-frameworks/kidletime/Manifest
+++ b/kde-frameworks/kidletime/Manifest
@@ -1,2 +1,3 @@
DIST kidletime-5.34.0.tar.xz 26380 SHA256 8f08be04214fb9cc0ef1bf463d8f577f72ddbdc2048bab29455578517e341d7d SHA512 b6c98f75b154ead53bf5599fb9e98940b2524139ef34ab130920342096d484f26e88bc106419a871800e7c8a71e2a7a0a5c1951911e8f2fa992f0ebdd690d166 WHIRLPOOL 2dd8662218b850a4228bbb4bda232aac2f3626141df9df3e8c93b3178479798cd3a5752227923773dff3a224b0b7388a5eebbf285c79d2c9667f856a9a8b30a5
DIST kidletime-5.36.0.tar.xz 26560 SHA256 34315b6174e69fa371c3f4236c4de9e14eab46e2464c48c1be252a27b4fa1ab6 SHA512 a3b1ec1eb3a6a883a715ff069174b447a3b92faa2400f4107786e033a771593e1e8315bbc947982e6ac73290d9c338ef9cb7775b7a80219f1c21122d8d41fbee WHIRLPOOL 1db468ad3fa18e0012eeeccfbeb8490ec779b40dc583bdc18ef8dd86f5988327e60f74ce3abf155670a1395db768b694e43bc38a6b27abd48da96ca0bad7932e
+DIST kidletime-5.37.0.tar.xz 26608 SHA256 3a472778722f38e5175ac55ff71a5e464ec98ecfd2ec759b7003612fe8c0a406 SHA512 444cfc25d162c4390ec0aa49b035bda1e5628972a634eb08c0cc9c48d513676669729470fc91cdf25ed98b9b6dd76b71159659bfecb4cbd61e029ad42398be27 WHIRLPOOL 20062019e3f8e3ade9d4c9e342508231c3741cf835f2db6a034d7fc09d452b7475e51998e05c978acb45da84e7e3cff8942943a23f70952e06e77fe3a1d315d7
diff --git a/kde-frameworks/kidletime/files/kidletime-5.37.0-qtdbus.patch b/kde-frameworks/kidletime/files/kidletime-5.37.0-qtdbus.patch
new file mode 100644
index 000000000000..44d1bc4beac2
--- /dev/null
+++ b/kde-frameworks/kidletime/files/kidletime-5.37.0-qtdbus.patch
@@ -0,0 +1,32 @@
+commit e86d576d4030231617d191a569354e368a038384
+Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sat Aug 5 23:45:39 2017 +0200
+
+ Qt5DBus is only required with HAVE_XSCREENSAVER
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e3c89d8..39cae72 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,10 +32,6 @@ include(KDECMakeSettings)
+ set(REQUIRED_QT_VERSION 5.6.0)
+ find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets)
+
+-if(NOT WIN32 AND NOT APPLE)
+- find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus)
+-endif()
+-
+ if(APPLE)
+ cmake_find_frameworks(CoreFoundation Carbon)
+ endif()
+@@ -66,6 +62,10 @@ if(X11_FOUND)
+ set(HAVE_XSCREENSAVER ${X11_Xscreensaver_FOUND})
+ add_feature_info("X-Screensaver based poller" HAVE_XSCREENSAVER "KIdleTime fallback mode (libXss)")
+
++ if(HAVE_XSCREENSAVER AND NOT WIN32)
++ find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus)
++ endif()
++
+ if(NOT HAVE_XSCREENSAVER AND NOT HAVE_XSYNC)
+ message(FATAL_ERROR "\nNeither the XSync (libXext) nor XScreensaver (libXss) development package was found.\nPlease install one of them (XSync is recommended)")
+ endif()
diff --git a/kde-frameworks/kidletime/kidletime-5.37.0.ebuild b/kde-frameworks/kidletime/kidletime-5.37.0.ebuild
new file mode 100644
index 000000000000..dda1309d2b6a
--- /dev/null
+++ b/kde-frameworks/kidletime/kidletime-5.37.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="false"
+inherit kde5
+
+DESCRIPTION="Framework for detection and notification of device idle time"
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="X xscreensaver"
+
+REQUIRED_USE="xscreensaver? ( X )"
+
+RDEPEND="
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+ X? (
+ $(add_qt_dep qtx11extras)
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXext
+ )
+ xscreensaver? (
+ $(add_qt_dep qtdbus)
+ x11-libs/libXScrnSaver
+ )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-5.37.0-qtdbus.patch" )
+
+src_prepare() {
+ kde5_src_prepare
+ if ! use xscreensaver; then
+ sed -i -e "s/\${X11_Xscreensaver_FOUND}/0/" CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package X X11)
+ $(cmake-utils_use_find_package X XCB)
+ )
+
+ kde5_src_configure
+}