net-libs/signond: New package
authorJohannes Huber <johu@gentoo.org>
Thu, 27 Aug 2015 11:31:29 +0000 (13:31 +0200)
committerJohannes Huber <johu@gentoo.org>
Thu, 27 Aug 2015 11:33:40 +0000 (13:33 +0200)
Needed for KDEs Telepathy client based on KF5. Import from kde overlay. Initial
ebuild by Karol Herbst <git@karolherbst.de>. Improvements by several people.

Package-Manager: portage-2.2.20.1

net-libs/signond/Manifest [new file with mode: 0644]
net-libs/signond/files/signond-8.57-qt55.patch [new file with mode: 0644]
net-libs/signond/metadata.xml [new file with mode: 0644]
net-libs/signond/signond-8.57.ebuild [new file with mode: 0644]

diff --git a/net-libs/signond/Manifest b/net-libs/signond/Manifest
new file mode 100644 (file)
index 0000000..e9e947a
--- /dev/null
@@ -0,0 +1 @@
+DIST signon-8.57.tar.bz2 197988 SHA256 239a2c6bb39c338402d9ae29287fbc439f422f82e7e6d060be23104173620bee SHA512 98bdee0b15fbc0ade1158df95f727ba56ae2966117d8ce7074b4f355dc3be0db27ab52340654da8ab4324e6d8d160c65802e1bed295ac3ad02ddc720581bbdb3 WHIRLPOOL e7bc4f31e2d59ce361b45c77f0eb838e601bf55e24e53413fec3ec91feaec7fad85581b1dba80cb9350584a10822202af748e74f46bc06dc96b2aeff52bf105b
diff --git a/net-libs/signond/files/signond-8.57-qt55.patch b/net-libs/signond/files/signond-8.57-qt55.patch
new file mode 100644 (file)
index 0000000..580c2c4
--- /dev/null
@@ -0,0 +1,24 @@
+From 68fc7ac7511cb6c55a507442c0736d8bbcb213cf Mon Sep 17 00:00:00 2001
+From: Alberto Mardegan <mardy@users.sourceforge.net>
+Date: Thu, 23 Apr 2015 14:34:19 +0300
+Subject: [PATCH] Fix build with Qt 5.5
+
+---
+ lib/plugins/signon-plugins-common/SignOn/blobiohandler.cpp | 1 +
+ 1 file changed, 1 insertion(+), 0 deletions(-)
+
+diff --git a/lib/plugins/signon-plugins-common/SignOn/blobiohandler.cpp b/lib/plugins/signon-plugins-common/SignOn/blobiohandler.cpp
+index bb00e7d..188324a 100644
+--- a/lib/plugins/signon-plugins-common/SignOn/blobiohandler.cpp
++++ b/lib/plugins/signon-plugins-common/SignOn/blobiohandler.cpp
+@@ -25,6 +25,7 @@
+ #include <QDBusArgument>
+ #include <QBuffer>
++#include <QDataStream>
+ #include <QDebug>
+ #include "SignOn/signonplugincommon.h"
+--
+libgit2 0.22.2
+
diff --git a/net-libs/signond/metadata.xml b/net-libs/signond/metadata.xml
new file mode 100644 (file)
index 0000000..a23f444
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>kde</herd>
+</pkgmetadata>
diff --git a/net-libs/signond/signond-8.57.ebuild b/net-libs/signond/signond-8.57.ebuild
new file mode 100644 (file)
index 0000000..8e1e54c
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MY_PN="signon"
+MY_P="${MY_PN}-${PV}"
+inherit qmake-utils
+
+DESCRIPTION="Signon daemon for libaccounts-glib"
+HOMEPAGE="https://01.org/gsso/"
+SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RESTRICT="test"
+
+# libproxy[kde] results to segfaults
+RDEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtsql:5
+       net-libs/libproxy[-kde]
+"
+DEPEND="${RDEPEND}
+       doc? ( app-doc/doxygen )
+       test? ( dev-qt/qttest:5 )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-qt55.patch"
+
+       sed -e "s|qdbusxml2cpp|$(qt5_get_bindir)/&|" -i src/signond/signond.pro || die
+       sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" -i doc/doc.pri || die
+       use test || sed -i -e '/^SUBDIRS/s/tests//' signon.pro || die "couldn't disable tests"
+       use doc || sed -e "/include(\s*doc\/doc.pri\s*)/d" -i \
+               ${MY_PN}.pro -i lib/SignOn/SignOn.pro lib/plugins/plugins.pro || die
+}
+
+src_configure() {
+       eqmake5
+}
+
+src_install() {
+       emake INSTALL_ROOT="${D}" install
+}