dev-libs/purpose: 1.2.1 version bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 28 Oct 2017 22:24:01 +0000 (00:24 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 28 Oct 2017 22:24:40 +0000 (00:24 +0200)
Package-Manager: Portage-2.3.13, Repoman-2.3.4

dev-libs/purpose/metadata.xml
dev-libs/purpose/purpose-1.2.1.ebuild [new file with mode: 0644]

index 2fdbf33d963db81228cb30a4f1abf67dbe9c29f1..69186b245f38e6d805f4ff1287d17ea12c818979 100644 (file)
@@ -5,4 +5,7 @@
                <email>kde@gentoo.org</email>
                <name>Gentoo KDE Project</name>
        </maintainer>
+       <use>
+               <flag name="kaccounts">Enable support for system-wide defined KAccounts</flag>
+       </use>
 </pkgmetadata>
diff --git a/dev-libs/purpose/purpose-1.2.1.ebuild b/dev-libs/purpose/purpose-1.2.1.ebuild
new file mode 100644 (file)
index 0000000..10aa6d8
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="Library for providing abstractions to get the developer's purposes fulfilled"
+LICENSE="LGPL-2.1+"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+kaccounts"
+
+DEPEND="
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep ki18n)
+       $(add_frameworks_dep kio)
+       $(add_qt_dep qtdeclarative)
+       $(add_qt_dep qtgui)
+       $(add_qt_dep qtnetwork)
+       $(add_qt_dep qtwidgets)
+       kaccounts? (
+               $(add_kdeapps_dep kaccounts-integration)
+               net-libs/accounts-qt
+       )
+"
+RDEPEND="${DEPEND}"
+
+# requires running environment
+RESTRICT+=" test"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package kaccounts KAccounts)
+       )
+
+       kde5_src_configure
+}
+
+pkg_postinst(){
+       kde5_pkg_postinst
+
+       if ! has_version "kde-misc/kdeconnect[app]" ; then
+               elog
+               elog "Optional runtime dependency:"
+               elog "kde-misc/kdeconnect[app] (send through KDE Connect)"
+               elog
+       fi
+}