From 50ef3911ae03d6a127e9d296ba01ce8432a67ced Mon Sep 17 00:00:00 2001 From: Suwako Moriya Date: Wed, 1 May 2019 22:34:10 +0200 Subject: [PATCH] Added kdeconnect with sms support --- kde-misc/kdeconnect/Manifest | 4 + .../files/kdeconnect-1.3.0-no-wayland.patch | 13 +++ .../kdeconnect/kdeconnect-1.3.4-r1.ebuild | 87 +++++++++++++++++++ kde-misc/kdeconnect/metadata.xml | 14 +++ 4 files changed, 118 insertions(+) create mode 100644 kde-misc/kdeconnect/Manifest create mode 100644 kde-misc/kdeconnect/files/kdeconnect-1.3.0-no-wayland.patch create mode 100644 kde-misc/kdeconnect/kdeconnect-1.3.4-r1.ebuild create mode 100644 kde-misc/kdeconnect/metadata.xml diff --git a/kde-misc/kdeconnect/Manifest b/kde-misc/kdeconnect/Manifest new file mode 100644 index 0000000..e445039 --- /dev/null +++ b/kde-misc/kdeconnect/Manifest @@ -0,0 +1,4 @@ +AUX kdeconnect-1.3.0-no-wayland.patch 523 BLAKE2B c29b58a3f1f97f09c67270f6b55f8122ccca834b979717bc1c5ad279675106acaa23da1d4a4a08dcc4194b6837cb5fce23ecfd12d5d8d1ed4adb8b4fdd077eae SHA512 68527f15ec3f0af14e33e857567c2fcc622f5dd5fc0652dc0af95e91dc5b96929df9db4961d9aa528be73b87e021877d7f6ee5894a2a195446a7235ca979b664 +DIST kdeconnect-kde-1.3.4.tar.xz 286724 BLAKE2B bf3353c317ebbb98e770a1c408940cb4ff5884f1e4a6a7ec4add5e26edf280c723af60f05ece904e624035f214757a8c8b7aeda578479bb6626c848a02155ee3 SHA512 286620cd5ed8da7a0f237710467f12be41ae139b14127b7049ee72c8a7042f67b599b642eb7c3e10a3504f1df11f5a9778db80fba4ac2e2fcd2ab4e8cafccfb9 +EBUILD kdeconnect-1.3.4-r1.ebuild 2189 BLAKE2B 14386ace77615ef597e8133c1e8dc216bc6b75a1e0caf44a9df8f92dd5e471cbd35df6a98bfa7d2f011f1c820e6d69af5dbaffb0dde1c0bdbbb31bc5761739db SHA512 b49fdc399f14f89413232d4e722b0e8ef0f50346edf8038d8d335b006f809954d0dc7897460aaa25c14a822068e0dcef94c0c4163636195dc93f852c96174a07 +MISC metadata.xml 623 BLAKE2B b95947f50fb0f0aa5679d13d2607073550e3c83537d5de925e1e81cc15d39fb1f645cce25fc1c823a798fade2782e37ab38d84cb2bed323b9b09e8728d1006c5 SHA512 02d57320a6565390938e8704a1389c13e51f51524285ea6d9a422cf0cf9d4847326d281c58e75a301a987cb7c41db6b38b922e1623d5ca0fd1b96c9d66be0516 diff --git a/kde-misc/kdeconnect/files/kdeconnect-1.3.0-no-wayland.patch b/kde-misc/kdeconnect/files/kdeconnect-1.3.0-no-wayland.patch new file mode 100644 index 0000000..a46c284 --- /dev/null +++ b/kde-misc/kdeconnect/files/kdeconnect-1.3.0-no-wayland.patch @@ -0,0 +1,13 @@ +diff --git a/plugins/mousepad/CMakeLists.txt b/plugins/mousepad/CMakeLists.txt +index ab9913ff..bfd52cd7 100644 +--- a/plugins/mousepad/CMakeLists.txt ++++ b/plugins/mousepad/CMakeLists.txt +@@ -10,7 +10,7 @@ if (LibFakeKey_FOUND) + find_package(X11 REQUIRED) + find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS X11Extras) + endif() +-find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS Wayland) ++find_package(KF5Wayland ${KF5_MIN_VERSION} QUIET) + + set(HAVE_X11 ${LibFakeKey_FOUND}) + set(HAVE_WAYLAND ${KF5Wayland_FOUND}) diff --git a/kde-misc/kdeconnect/kdeconnect-1.3.4-r1.ebuild b/kde-misc/kdeconnect/kdeconnect-1.3.4-r1.ebuild new file mode 100644 index 0000000..578839c --- /dev/null +++ b/kde-misc/kdeconnect/kdeconnect-1.3.4-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KDE_HANDBOOK="forceoptional" +KDE_TEST="true" +KMNAME="${PN}-kde" +KDE_SELINUX_MODULE="${PN}" +inherit kde5 + +if [[ ${KDE_BUILD_TYPE} = release ]]; then + SRC_URI="mirror://kde/stable/${PN}/${PV}/${KMNAME}-${PV}.tar.xz" + KEYWORDS="amd64 x86" +fi + +DESCRIPTION="Adds communication between KDE Plasma and your smartphone" +HOMEPAGE="https://kde.org/ https://community.kde.org/KDEConnect" +LICENSE="GPL-2+" +IUSE="app bluetooth mousepad wayland sms" + +DEPEND=" + $(add_frameworks_dep kcmutils) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kdbusaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep kservice) + $(add_frameworks_dep kwidgetsaddons) + $(add_qt_dep qtdbus) + $(add_qt_dep qtdeclarative) + $(add_qt_dep qtgui) + $(add_qt_dep qtnetwork) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtx11extras) + >=app-crypt/qca-2.1.0:2[qt5(+),ssl] + app? ( $(add_frameworks_dep kdeclarative) ) + bluetooth? ( $(add_qt_dep qtbluetooth) ) + mousepad? ( + x11-libs/libfakekey + x11-libs/libX11 + x11-libs/libXtst + ) + wayland? ( $(add_frameworks_dep kwayland) ) +" +RDEPEND="${DEPEND} + net-fs/sshfs + app? ( $(add_frameworks_dep kirigami) ) + !kde-misc/kdeconnect:4 +" + +RESTRICT+=" test" + +PATCHES=( "${FILESDIR}/${PN}-1.3.0-no-wayland.patch" ) + +src_prepare() { + kde5_src_prepare + + sed \ + -e 's#${LIBEXEC_INSTALL_DIR}#@KDE_INSTALL_FULL_LIBEXECDIR@#' \ + -i daemon/kdeconnectd.desktop.cmake || die +} + +src_configure() { + local mycmakeargs=( + -DEXPERIMENTALAPP_ENABLED=$(usex app) + -DBLUETOOTH_ENABLED=$(usex bluetooth) + -DSMSAPP_ENABLED=$(usex sms) + $(cmake-utils_use_find_package mousepad LibFakeKey) + $(cmake-utils_use_find_package wayland KF5Wayland) + ) + + kde5_src_configure +} + +pkg_postinst(){ + kde5_pkg_postinst + + elog "The Android .apk file is available via" + elog "https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp" + elog "or via" + elog "https://f-droid.org/repository/browse/?fdid=org.kde.kdeconnect_tp" +} diff --git a/kde-misc/kdeconnect/metadata.xml b/kde-misc/kdeconnect/metadata.xml new file mode 100644 index 0000000..f40da0e --- /dev/null +++ b/kde-misc/kdeconnect/metadata.xml @@ -0,0 +1,14 @@ + + + + + kde@gentoo.org + Gentoo KDE Project + + + Enable experimental kcapp frontend + Enable Pre-beta sms messaging app kdeconnect-sms + Enable remote mousepad plugin using x11-libs/libfakekey + Enable kwin_wayland support for mousepad plugin using kde-frameworks/kwayland + +