commit:     8d340a040823237b731db746175ab40a0518b38a
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun Jan 24 00:54:27 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Jan 26 18:18:38 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=8d340a04

dev-libs/qoauth: Add Qt5 version, bug 556180

Package-Manager: portage-2.2.26

 .../qoauth/files/qoauth-1.0.1-disable-ft.patch     | 20 ++++++
 dev-libs/qoauth/metadata.xml                       |  8 +++
 dev-libs/qoauth/qoauth-9999.ebuild                 | 77 ++++++++++++++++++++++
 3 files changed, 105 insertions(+)

diff --git a/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch 
b/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch
new file mode 100644
index 0000000..1fd6fd0
--- /dev/null
+++ b/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch
@@ -0,0 +1,20 @@
+diff --git a/qoauth.pro b/qoauth.pro
+index f09b3be..27d7bb3 100644
+--- a/qoauth.pro
++++ b/qoauth.pro
+@@ -5,6 +5,6 @@ SUBDIRS += src tests
+ CONFIG += ordered
+ 
+ check.target = check
+-check.commands = ( cd tests/ut_interface && ./ut_interface ) && ( cd 
tests/ft_interface && ./ft_interface )
++check.commands = ( cd tests/ut_interface && ./ut_interface )
+ check.depends = sub-tests
+ QMAKE_EXTRA_TARGETS += check
+diff --git a/tests/tests.pro b/tests/tests.pro
+index d582750..e010bb0 100644
+--- a/tests/tests.pro
++++ b/tests/tests.pro
+@@ -1,2 +1,2 @@
+ TEMPLATE = subdirs
+-SUBDIRS += ut_interface ft_interface
++SUBDIRS += ut_interface

diff --git a/dev-libs/qoauth/metadata.xml b/dev-libs/qoauth/metadata.xml
new file mode 100644
index 0000000..1723768
--- /dev/null
+++ b/dev-libs/qoauth/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Qt Project</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/dev-libs/qoauth/qoauth-9999.ebuild 
b/dev-libs/qoauth/qoauth-9999.ebuild
new file mode 100644
index 0000000..9ebd674
--- /dev/null
+++ b/dev-libs/qoauth/qoauth-9999.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qmake-utils
+
+DESCRIPTION="A Qt5-based library for OAuth support"
+HOMEPAGE="https://wiki.github.com/ayoy/qoauth";
+if [[ ${PV} = 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/ayoy/qoauth.git";
+else
+       
SRC_URI="http://files.ayoy.net/qoauth/release/${PV}/src/${P}-src.tar.bz2";
+       S=${WORKDIR}/${P}-src
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="5"
+KEYWORDS=""
+IUSE="debug doc static-libs test"
+
+COMMON_DEPEND="app-crypt/qca:2[debug?,qt5]"
+DEPEND="${COMMON_DEPEND}
+       doc? ( app-doc/doxygen )
+       test? ( dev-qt/qttest:5 )
+"
+RDEPEND="${COMMON_DEPEND}
+       app-crypt/qca:2[openssl]
+       !dev-libs/qoauth:0
+"
+
+DOCS=( README CHANGELOG )
+
+src_prepare() {
+       default
+
+       # disable functional tests that require network connection
+       # and rely on 3rd party external server (bug #341267)
+       epatch "${FILESDIR}/${PN}-1.0.1-disable-ft.patch"
+
+       if ! use test; then
+               sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed"
+       fi
+
+       sed -i -e '/^ *docs \\$/d' \
+               -e '/^ *build_all \\$/d' \
+               -e 's/^\#\(!macx\)/\1/' \
+               src/src.pro || die "sed failed"
+
+       sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed 
failed"
+}
+
+src_configure() {
+       eqmake5 qoauth.pro
+}
+
+src_compile() {
+       default
+       if use static-libs; then
+               emake -C src static
+       fi
+}
+
+src_install() {
+       INSTALL_ROOT="${D}" default
+
+       if use static-libs; then
+               dolib.a "${S}"/lib/lib${PN}.a
+       fi
+
+       if use doc; then
+               doxygen "${S}"/Doxyfile || die "failed to generate 
documentation"
+               dohtml "${S}"/doc/html/*
+       fi
+}

Reply via email to