1 |
commit: 10b59d39749196a759fd300365fbe565f584a554 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 12 15:36:31 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 12 15:43:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10b59d39 |
7 |
|
8 |
dev-libs/qoauth: fix prf file to point to the correct header location |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
.../files/qoauth-2.0.1_pre20160315-prf.patch | 15 ++++++ |
13 |
dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild | 63 ++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch b/dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..c3457b0dba4 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch |
21 |
@@ -0,0 +1,15 @@ |
22 |
+Point to where the headers are really installed. |
23 |
+ |
24 |
+--- a/oauth.prf |
25 |
++++ b/oauth.prf |
26 |
+@@ -1,9 +1,6 @@ |
27 |
+-QOAUTH_INCDIR = $$[QT_INSTALL_HEADERS] |
28 |
++QOAUTH_INCDIR = $$[QT_INSTALL_HEADERS]/.. |
29 |
+ QOAUTH_LIBDIR = $$[QT_INSTALL_LIBS] |
30 |
+ |
31 |
+-QOAUTH_INCDIR ~= s!/qt4*!! |
32 |
+-QOAUTH_LIBDIR ~= s!/qt4*!! |
33 |
+- |
34 |
+ CONFIG *= qt |
35 |
+ CONFIG += crypto |
36 |
+ |
37 |
|
38 |
diff --git a/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild b/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..5a5d7c526e5 |
41 |
--- /dev/null |
42 |
+++ b/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild |
43 |
@@ -0,0 +1,63 @@ |
44 |
+# Copyright 1999-2017 Gentoo Foundation |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=6 |
48 |
+ |
49 |
+inherit qmake-utils |
50 |
+ |
51 |
+DESCRIPTION="Qt-based library for OAuth support" |
52 |
+HOMEPAGE="https://wiki.github.com/ayoy/qoauth" |
53 |
+SRC_URI="https://dev.gentoo.org/~johu/distfiles/${P}.tar.xz" |
54 |
+ |
55 |
+LICENSE="LGPL-2.1" |
56 |
+SLOT="5" |
57 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
58 |
+IUSE="debug doc test" |
59 |
+ |
60 |
+COMMON_DEPEND=" |
61 |
+ app-crypt/qca:2[debug?,qt5] |
62 |
+ dev-qt/qtnetwork:5 |
63 |
+" |
64 |
+DEPEND="${COMMON_DEPEND} |
65 |
+ doc? ( app-doc/doxygen ) |
66 |
+ test? ( dev-qt/qttest:5 ) |
67 |
+" |
68 |
+RDEPEND="${COMMON_DEPEND} |
69 |
+ app-crypt/qca:2[ssl] |
70 |
+ !dev-libs/qoauth:0 |
71 |
+" |
72 |
+ |
73 |
+# disable functional tests that require network connection |
74 |
+# and rely on 3rd party external server (bug #341267) |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${PN}-1.0.1-disable-ft.patch" |
77 |
+ "${FILESDIR}/${P}-prf.patch" |
78 |
+) |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ |
83 |
+ if ! use test; then |
84 |
+ sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed" |
85 |
+ fi |
86 |
+ |
87 |
+ sed -i -e '/^ *docs \\$/d' \ |
88 |
+ -e '/^ *build_all \\$/d' \ |
89 |
+ -e 's/^\#\(!macx\)/\1/' \ |
90 |
+ src/src.pro || die "sed failed" |
91 |
+ |
92 |
+ sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed" |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ eqmake5 qoauth.pro |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ if use doc; then |
101 |
+ doxygen "${S}"/Doxyfile || die "failed to generate documentation" |
102 |
+ HTML_DOCS=( "${S}"/doc/html/. ) |
103 |
+ fi |
104 |
+ |
105 |
+ INSTALL_ROOT="${D}" default |
106 |
+} |