1 |
commit: b2f91a1beb33b1cd30f0791faefd2660231dc48d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 14 22:53:56 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 16 15:52:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=b2f91a1b |
7 |
|
8 |
dev-libs/qoauth: Import from Gentoo ebuild repo before last-rites |
9 |
|
10 |
Required by kde-plasma/kdeplasma-addons. |
11 |
|
12 |
Package-Manager: Portage-3.0.2, Repoman-2.3.23 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
dev-libs/qoauth/metadata.xml | 5 +++ |
16 |
dev-libs/qoauth/qoauth-1.0.1.ebuild | 68 +++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 73 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/qoauth/metadata.xml b/dev-libs/qoauth/metadata.xml |
20 |
new file mode 100644 |
21 |
index 00000000..6f49eba8 |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/qoauth/metadata.xml |
24 |
@@ -0,0 +1,5 @@ |
25 |
+<?xml version="1.0" encoding="UTF-8"?> |
26 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
+<pkgmetadata> |
28 |
+<!-- maintainer-needed --> |
29 |
+</pkgmetadata> |
30 |
|
31 |
diff --git a/dev-libs/qoauth/qoauth-1.0.1.ebuild b/dev-libs/qoauth/qoauth-1.0.1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000..d3209406 |
34 |
--- /dev/null |
35 |
+++ b/dev-libs/qoauth/qoauth-1.0.1.ebuild |
36 |
@@ -0,0 +1,68 @@ |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=4 |
41 |
+ |
42 |
+inherit qt4-r2 |
43 |
+ |
44 |
+DESCRIPTION="A Qt-based library for OAuth support" |
45 |
+HOMEPAGE="https://github.com/ayoy/qoauth/wiki" |
46 |
+SRC_URI="http://files.ayoy.net/qoauth/release/${PV}/src/${P}-src.tar.bz2" |
47 |
+ |
48 |
+LICENSE="LGPL-2.1" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="amd64 ppc ~ppc64 x86" |
51 |
+IUSE="debug doc static-libs test" |
52 |
+ |
53 |
+COMMON_DEPEND="app-crypt/qca:2[debug?,qt4(+)]" |
54 |
+DEPEND="${COMMON_DEPEND} |
55 |
+ doc? ( app-doc/doxygen ) |
56 |
+ test? ( dev-qt/qttest:4 ) |
57 |
+" |
58 |
+RDEPEND="${COMMON_DEPEND} |
59 |
+ app-crypt/qca:2[ssl] |
60 |
+" |
61 |
+ |
62 |
+S=${WORKDIR}/${P}-src |
63 |
+ |
64 |
+DOCS="README CHANGELOG" |
65 |
+PATCHES=( |
66 |
+ # disable functional tests that require network connection |
67 |
+ # and rely on 3rd party external server (bug #341267) |
68 |
+ "${FILESDIR}/${P}-disable-ft.patch" |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ qt4-r2_src_prepare |
73 |
+ |
74 |
+ if ! use test; then |
75 |
+ sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed" |
76 |
+ fi |
77 |
+ |
78 |
+ sed -i -e '/^ *docs \\$/d' \ |
79 |
+ -e '/^ *build_all \\$/d' \ |
80 |
+ -e 's/^\#\(!macx\)/\1/' \ |
81 |
+ src/src.pro || die "sed failed" |
82 |
+ |
83 |
+ sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed" |
84 |
+} |
85 |
+ |
86 |
+src_compile() { |
87 |
+ default |
88 |
+ if use static-libs; then |
89 |
+ emake -C src static |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ qt4-r2_src_install |
95 |
+ |
96 |
+ if use static-libs; then |
97 |
+ dolib.a "${S}"/lib/lib${PN}.a |
98 |
+ fi |
99 |
+ |
100 |
+ if use doc; then |
101 |
+ doxygen "${S}"/Doxyfile || die "failed to generate documentation" |
102 |
+ dohtml "${S}"/doc/html/* |
103 |
+ fi |
104 |
+} |