commit:     b2f91a1beb33b1cd30f0791faefd2660231dc48d
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 14 22:53:56 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 16 15:52:07 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=b2f91a1b

dev-libs/qoauth: Import from Gentoo ebuild repo before last-rites

Required by kde-plasma/kdeplasma-addons.

Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/qoauth/metadata.xml        |  5 +++
 dev-libs/qoauth/qoauth-1.0.1.ebuild | 68 +++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-libs/qoauth/metadata.xml b/dev-libs/qoauth/metadata.xml
new file mode 100644
index 00000000..6f49eba8
--- /dev/null
+++ b/dev-libs/qoauth/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/dev-libs/qoauth/qoauth-1.0.1.ebuild 
b/dev-libs/qoauth/qoauth-1.0.1.ebuild
new file mode 100644
index 00000000..d3209406
--- /dev/null
+++ b/dev-libs/qoauth/qoauth-1.0.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2
+
+DESCRIPTION="A Qt-based library for OAuth support"
+HOMEPAGE="https://github.com/ayoy/qoauth/wiki";
+SRC_URI="http://files.ayoy.net/qoauth/release/${PV}/src/${P}-src.tar.bz2";
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="debug doc static-libs test"
+
+COMMON_DEPEND="app-crypt/qca:2[debug?,qt4(+)]"
+DEPEND="${COMMON_DEPEND}
+       doc? ( app-doc/doxygen )
+       test? ( dev-qt/qttest:4 )
+"
+RDEPEND="${COMMON_DEPEND}
+       app-crypt/qca:2[ssl]
+"
+
+S=${WORKDIR}/${P}-src
+
+DOCS="README CHANGELOG"
+PATCHES=(
+       # disable functional tests that require network connection
+       # and rely on 3rd party external server (bug #341267)
+       "${FILESDIR}/${P}-disable-ft.patch"
+)
+
+src_prepare() {
+       qt4-r2_src_prepare
+
+       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_compile() {
+       default
+       if use static-libs; then
+               emake -C src static
+       fi
+}
+
+src_install() {
+       qt4-r2_src_install
+
+       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