1 |
commit: 8d340a040823237b731db746175ab40a0518b38a |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jan 24 00:54:27 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 26 18:18:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=8d340a04 |
7 |
|
8 |
dev-libs/qoauth: Add Qt5 version, bug 556180 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../qoauth/files/qoauth-1.0.1-disable-ft.patch | 20 ++++++ |
13 |
dev-libs/qoauth/metadata.xml | 8 +++ |
14 |
dev-libs/qoauth/qoauth-9999.ebuild | 77 ++++++++++++++++++++++ |
15 |
3 files changed, 105 insertions(+) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 0000000..1fd6fd0 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch |
22 |
@@ -0,0 +1,20 @@ |
23 |
+diff --git a/qoauth.pro b/qoauth.pro |
24 |
+index f09b3be..27d7bb3 100644 |
25 |
+--- a/qoauth.pro |
26 |
++++ b/qoauth.pro |
27 |
+@@ -5,6 +5,6 @@ SUBDIRS += src tests |
28 |
+ CONFIG += ordered |
29 |
+ |
30 |
+ check.target = check |
31 |
+-check.commands = ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface ) |
32 |
++check.commands = ( cd tests/ut_interface && ./ut_interface ) |
33 |
+ check.depends = sub-tests |
34 |
+ QMAKE_EXTRA_TARGETS += check |
35 |
+diff --git a/tests/tests.pro b/tests/tests.pro |
36 |
+index d582750..e010bb0 100644 |
37 |
+--- a/tests/tests.pro |
38 |
++++ b/tests/tests.pro |
39 |
+@@ -1,2 +1,2 @@ |
40 |
+ TEMPLATE = subdirs |
41 |
+-SUBDIRS += ut_interface ft_interface |
42 |
++SUBDIRS += ut_interface |
43 |
|
44 |
diff --git a/dev-libs/qoauth/metadata.xml b/dev-libs/qoauth/metadata.xml |
45 |
new file mode 100644 |
46 |
index 0000000..1723768 |
47 |
--- /dev/null |
48 |
+++ b/dev-libs/qoauth/metadata.xml |
49 |
@@ -0,0 +1,8 @@ |
50 |
+<?xml version="1.0" encoding="UTF-8"?> |
51 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
52 |
+<pkgmetadata> |
53 |
+ <maintainer type="project"> |
54 |
+ <email>qt@g.o</email> |
55 |
+ <name>Gentoo Qt Project</name> |
56 |
+ </maintainer> |
57 |
+</pkgmetadata> |
58 |
|
59 |
diff --git a/dev-libs/qoauth/qoauth-9999.ebuild b/dev-libs/qoauth/qoauth-9999.ebuild |
60 |
new file mode 100644 |
61 |
index 0000000..9ebd674 |
62 |
--- /dev/null |
63 |
+++ b/dev-libs/qoauth/qoauth-9999.ebuild |
64 |
@@ -0,0 +1,77 @@ |
65 |
+# Copyright 1999-2016 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+# $Id$ |
68 |
+ |
69 |
+EAPI=5 |
70 |
+ |
71 |
+inherit qmake-utils |
72 |
+ |
73 |
+DESCRIPTION="A Qt5-based library for OAuth support" |
74 |
+HOMEPAGE="https://wiki.github.com/ayoy/qoauth" |
75 |
+if [[ ${PV} = 9999 ]]; then |
76 |
+ inherit git-r3 |
77 |
+ EGIT_REPO_URI="https://github.com/ayoy/qoauth.git" |
78 |
+else |
79 |
+ SRC_URI="http://files.ayoy.net/qoauth/release/${PV}/src/${P}-src.tar.bz2" |
80 |
+ S=${WORKDIR}/${P}-src |
81 |
+fi |
82 |
+ |
83 |
+LICENSE="LGPL-2.1" |
84 |
+SLOT="5" |
85 |
+KEYWORDS="" |
86 |
+IUSE="debug doc static-libs test" |
87 |
+ |
88 |
+COMMON_DEPEND="app-crypt/qca:2[debug?,qt5]" |
89 |
+DEPEND="${COMMON_DEPEND} |
90 |
+ doc? ( app-doc/doxygen ) |
91 |
+ test? ( dev-qt/qttest:5 ) |
92 |
+" |
93 |
+RDEPEND="${COMMON_DEPEND} |
94 |
+ app-crypt/qca:2[openssl] |
95 |
+ !dev-libs/qoauth:0 |
96 |
+" |
97 |
+ |
98 |
+DOCS=( README CHANGELOG ) |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ default |
102 |
+ |
103 |
+ # disable functional tests that require network connection |
104 |
+ # and rely on 3rd party external server (bug #341267) |
105 |
+ epatch "${FILESDIR}/${PN}-1.0.1-disable-ft.patch" |
106 |
+ |
107 |
+ if ! use test; then |
108 |
+ sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed" |
109 |
+ fi |
110 |
+ |
111 |
+ sed -i -e '/^ *docs \\$/d' \ |
112 |
+ -e '/^ *build_all \\$/d' \ |
113 |
+ -e 's/^\#\(!macx\)/\1/' \ |
114 |
+ src/src.pro || die "sed failed" |
115 |
+ |
116 |
+ sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed" |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ eqmake5 qoauth.pro |
121 |
+} |
122 |
+ |
123 |
+src_compile() { |
124 |
+ default |
125 |
+ if use static-libs; then |
126 |
+ emake -C src static |
127 |
+ fi |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ INSTALL_ROOT="${D}" default |
132 |
+ |
133 |
+ if use static-libs; then |
134 |
+ dolib.a "${S}"/lib/lib${PN}.a |
135 |
+ fi |
136 |
+ |
137 |
+ if use doc; then |
138 |
+ doxygen "${S}"/Doxyfile || die "failed to generate documentation" |
139 |
+ dohtml "${S}"/doc/html/* |
140 |
+ fi |
141 |
+} |