1 |
commit: 4e70ba7a532946db144995ca1b5d1a3bffda9955 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 29 21:00:53 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 29 22:24:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e70ba7a |
7 |
|
8 |
net-libs/signon-oauth2: 0.24 version bump, disable examples |
9 |
|
10 |
Reported-by: Matija Skala <mskala <AT> gmx.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/8579 |
12 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
13 |
|
14 |
net-libs/signon-oauth2/Manifest | 1 + |
15 |
.../signon-oauth2-0.24-disable-examples.patch | 14 ++++++ |
16 |
.../signon-oauth2-0.24-dont-install-tests.patch | 11 +++++ |
17 |
net-libs/signon-oauth2/signon-oauth2-0.24.ebuild | 50 ++++++++++++++++++++++ |
18 |
4 files changed, 76 insertions(+) |
19 |
|
20 |
diff --git a/net-libs/signon-oauth2/Manifest b/net-libs/signon-oauth2/Manifest |
21 |
index b3c3b802764..57126546b87 100644 |
22 |
--- a/net-libs/signon-oauth2/Manifest |
23 |
+++ b/net-libs/signon-oauth2/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST signon-oauth2-0.21.tar.bz2 37819 BLAKE2B 5de9add1952ba94e12b776c7f4b462bfc31ce01c148d8819b6e159510c4b00f4d2fc915a62f585b1061d46efbeb92406e3c117452e4e7f5575404fea3ab20601 SHA512 b0f97353e87c08420c3132f3357522b526a7c48df807ab833e05297ebfc86e0e8f25d4d3aa94e8ebc4aa1d9bc77856d63c43e5b5e9f3e63628f7710b9a056fd0 |
26 |
+DIST signon-oauth2-0.24.tar.gz 39011 BLAKE2B 41b672d1f489321b2f93f245530da1e51867eb4f0d1675ba72240f59f5ab7d6d2a079899e1a6dbc63c82bc53e1fab467c6696f5171c98ab00243d5ec9ddd92f4 SHA512 8a1e5be7f34419ded7841cb4de62e03ab56556f39ae40e3e11b549d45c6c51edc6888d1aab254c0ba6746d6306bb8b92dd24e473387542d6a987208c20acf6d9 |
27 |
|
28 |
diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.24-disable-examples.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.24-disable-examples.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..dd730e44977 |
31 |
--- /dev/null |
32 |
+++ b/net-libs/signon-oauth2/files/signon-oauth2-0.24-disable-examples.patch |
33 |
@@ -0,0 +1,14 @@ |
34 |
+Author: Diane Trout <diane@××××.org> |
35 |
+Description: Don't install the examples as they end up conflicting with |
36 |
+ other packages. |
37 |
+--- a/signon-oauth2.pro |
38 |
++++ b/signon-oauth2.pro |
39 |
+@@ -3,7 +3,7 @@ |
40 |
+ |
41 |
+ TEMPLATE = subdirs |
42 |
+ CONFIG += ordered |
43 |
+-SUBDIRS = src tests example |
44 |
++SUBDIRS = src tests |
45 |
+ |
46 |
+ include( common-installs-config.pri ) |
47 |
+ |
48 |
|
49 |
diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.24-dont-install-tests.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.24-dont-install-tests.patch |
50 |
new file mode 100644 |
51 |
index 00000000000..615bc8b562d |
52 |
--- /dev/null |
53 |
+++ b/net-libs/signon-oauth2/files/signon-oauth2-0.24-dont-install-tests.patch |
54 |
@@ -0,0 +1,11 @@ |
55 |
+--- a/tests/tests.pro 2018-05-29 22:51:43.766914590 +0200 |
56 |
++++ b/tests/tests.pro 2018-05-29 22:52:45.247259336 +0200 |
57 |
+@@ -32,8 +32,6 @@ |
58 |
+ target.path = $${INSTALL_PREFIX}/bin |
59 |
+ testsuite.path = $${INSTALL_PREFIX}/share/$$TARGET |
60 |
+ testsuite.files = tests.xml |
61 |
+-INSTALLS += target \ |
62 |
+- testsuite |
63 |
+ |
64 |
+ check.depends = $$TARGET |
65 |
+ check.commands = ./$$TARGET || : |
66 |
|
67 |
diff --git a/net-libs/signon-oauth2/signon-oauth2-0.24.ebuild b/net-libs/signon-oauth2/signon-oauth2-0.24.ebuild |
68 |
new file mode 100644 |
69 |
index 00000000000..ea3dd0c41f7 |
70 |
--- /dev/null |
71 |
+++ b/net-libs/signon-oauth2/signon-oauth2-0.24.ebuild |
72 |
@@ -0,0 +1,50 @@ |
73 |
+# Copyright 1999-2018 Gentoo Foundation |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=7 |
77 |
+ |
78 |
+MY_PN=signon-plugin-oauth2 |
79 |
+MY_PV=VERSION_${PV} |
80 |
+inherit qmake-utils |
81 |
+ |
82 |
+DESCRIPTION="OAuth2 plugin for Signon daemon" |
83 |
+HOMEPAGE="https://01.org/gsso/" |
84 |
+SRC_URI="https://gitlab.com/accounts-sso/${MY_PN}/-/archive/${MY_PV}/${MY_PN}-${MY_PV}.tar.gz -> ${P}.tar.gz" |
85 |
+ |
86 |
+LICENSE="LGPL-2.1" |
87 |
+SLOT="0" |
88 |
+KEYWORDS="~amd64 ~x86" |
89 |
+IUSE="test" |
90 |
+ |
91 |
+RDEPEND=" |
92 |
+ dev-qt/qtcore:5 |
93 |
+ dev-qt/qtnetwork:5[ssl] |
94 |
+ net-libs/signond |
95 |
+" |
96 |
+DEPEND="${RDEPEND} |
97 |
+ test? ( dev-qt/qttest:5 ) |
98 |
+" |
99 |
+ |
100 |
+S="${WORKDIR}/${MY_PN}-${MY_PV}" |
101 |
+ |
102 |
+PATCHES=( |
103 |
+ "${FILESDIR}/${P}-disable-examples.patch" |
104 |
+ "${FILESDIR}/${P}-dont-install-tests.patch" |
105 |
+) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ default |
109 |
+ |
110 |
+ if ! use test; then |
111 |
+ sed -i -e '/^SUBDIRS/s/tests//' signon-oauth2.pro || die "Failed to disable tests" |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+src_configure() { |
116 |
+ eqmake5 \ |
117 |
+ LIBDIR=/usr/$(get_libdir) |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ emake INSTALL_ROOT="${D}" install |
122 |
+} |