1 |
commit: 5b6e70ecc264b6fb053d039b2784bd5e50b58b10 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 28 19:40:01 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 28 20:52:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b6e70ec |
7 |
|
8 |
net-libs/libsignon-glib: 1.14 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
11 |
|
12 |
net-libs/libsignon-glib/Manifest | 1 + |
13 |
.../files/libsignon-glib-1.14-default-opts.patch | 45 +++++++++++ |
14 |
net-libs/libsignon-glib/libsignon-glib-1.14.ebuild | 89 ++++++++++++++++++++++ |
15 |
3 files changed, 135 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libsignon-glib/Manifest b/net-libs/libsignon-glib/Manifest |
18 |
index fbe55c398f0..3110f8ff0cc 100644 |
19 |
--- a/net-libs/libsignon-glib/Manifest |
20 |
+++ b/net-libs/libsignon-glib/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST libsignon-glib-1.13.tar.gz 51601 SHA256 8e0e450e719c16f79d3c3aadb98656ed5967a2f2cd24c1d9cd5747e670a087bc SHA512 aaae6a37a113685eb36ddccd497e387617cf0900506638cbafbac282c4d63ade41f4c915ad6f04214c58af580b70d9062ecf3e1618b6f5fe07dad50c5dc125a6 WHIRLPOOL 8f0d1d51588e42c9fac51883a9ecb08b6ad4949fc8f335c2259f967ea8f3555b04b3ca46f323b20591a2bc85dc1b5bba3968fec1be3e4dfd7a9464e2c5d6880e |
23 |
+DIST libsignon-glib-1.14.tar.gz 54019 SHA256 99db552f250d0853c468a3f03872123bb7102dbdc91e15a7a4855f7a47dd2fca SHA512 c2277933d6ec2c3288ce510c853da7719116dac15d60c7114fcdcb87d04e7f70390d066938dea6aa0f819fbd70158fb875c5be5684c47fd27c0b6c55e9467a1d WHIRLPOOL 17ba0ab1a2cb64d0021aadc1a516d3ac85b86439ffb4d11e6c0ee87c6b39df84b82a89c29ff66e7547ad63137861479b86c91ad960ee4ee40d3f494a56621c78 |
24 |
|
25 |
diff --git a/net-libs/libsignon-glib/files/libsignon-glib-1.14-default-opts.patch b/net-libs/libsignon-glib/files/libsignon-glib-1.14-default-opts.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..5dcf8cc4569 |
28 |
--- /dev/null |
29 |
+++ b/net-libs/libsignon-glib/files/libsignon-glib-1.14-default-opts.patch |
30 |
@@ -0,0 +1,45 @@ |
31 |
+From 4982923fdc7be9978d3b089fb443bcb0e20243eb Mon Sep 17 00:00:00 2001 |
32 |
+From: Alberto Mardegan <alberto.mardegan@×××××××××.com> |
33 |
+Date: Tue, 21 Jun 2016 13:35:03 +0300 |
34 |
+Subject: [PATCH] Build: fix value of default options in configure.ac |
35 |
+ |
36 |
+GLib assertions where always disabled, even if the --disable-* |
37 |
+parameters where not passed to configure.ac. |
38 |
+ |
39 |
+Quick reference: |
40 |
+http://www.robster.org.uk/2011/02/07/autofoo-ac_arg_enable/ |
41 |
+--- |
42 |
+ configure.ac | 9 ++++++--- |
43 |
+ 1 file changed, 6 insertions(+), 3 deletions(-) |
44 |
+ |
45 |
+diff --git a/configure.ac b/configure.ac |
46 |
+index 364f9f2..3cde223 100644 |
47 |
+--- a/configure.ac |
48 |
++++ b/configure.ac |
49 |
+@@ -63,17 +63,20 @@ AM_CONDITIONAL([ENABLE_TESTS], [test "x$have_check" = "xyes"]) |
50 |
+ GTK_DOC_CHECK([1.14], [--flavour no-tmpl]) |
51 |
+ |
52 |
+ AC_ARG_ENABLE([cast-checks], |
53 |
+- [AS_HELP_STRING([--disable-cast-checks], [compile with GLib cast checks disabled])]) |
54 |
++ [AS_HELP_STRING([--disable-cast-checks], [compile with GLib cast checks disabled])], |
55 |
++ [], [enable_cast_checks=yes]) |
56 |
+ AS_IF([test "x$enable_cast_checks" = "xno"], |
57 |
+ [CFLAGS="$CFLAGS -DG_DISABLE_CAST_CHECKS"]) |
58 |
+ |
59 |
+ AC_ARG_ENABLE([asserts], |
60 |
+- [AS_HELP_STRING([--disable-asserts], [compile with GLib assertions disabled])]) |
61 |
++ [AS_HELP_STRING([--disable-asserts], [compile with GLib assertions disabled])], |
62 |
++ [], [enable_asserts=yes]) |
63 |
+ AS_IF([test "x$enable_asserts" = "xno"], |
64 |
+ [CFLAGS="$CFLAGS -DG_DISABLE_ASSERTS"]) |
65 |
+ |
66 |
+ AC_ARG_ENABLE([checks], |
67 |
+- [AS_HELP_STRING([--disable-checks], [compile with GLib checks disabled])]) |
68 |
++ [AS_HELP_STRING([--disable-checks], [compile with GLib checks disabled])], |
69 |
++ [], [enable_checks=yes]) |
70 |
+ AS_IF([test "x$checks" = "xno"], |
71 |
+ [CFLAGS="$CFLAGS -DG_DISABLE_CHECKS"]) |
72 |
+ |
73 |
+-- |
74 |
+libgit2 0.26.0 |
75 |
+ |
76 |
|
77 |
diff --git a/net-libs/libsignon-glib/libsignon-glib-1.14.ebuild b/net-libs/libsignon-glib/libsignon-glib-1.14.ebuild |
78 |
new file mode 100644 |
79 |
index 00000000000..fe543c51128 |
80 |
--- /dev/null |
81 |
+++ b/net-libs/libsignon-glib/libsignon-glib-1.14.ebuild |
82 |
@@ -0,0 +1,89 @@ |
83 |
+# Copyright 1999-2017 Gentoo Foundation |
84 |
+# Distributed under the terms of the GNU General Public License v2 |
85 |
+ |
86 |
+EAPI=6 |
87 |
+ |
88 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
89 |
+inherit autotools python-r1 vcs-snapshot xdg-utils |
90 |
+ |
91 |
+DESCRIPTION="GLib binding for the D-Bus API provided by signond" |
92 |
+HOMEPAGE="https://01.org/gsso/" |
93 |
+SRC_URI="https://gitlab.com/accounts-sso/libsignon-glib/repository/archive.tar.gz?ref=VERSION_${PV} -> ${P}.tar.gz" |
94 |
+ |
95 |
+SLOT="0" |
96 |
+LICENSE="LGPL-2.1" |
97 |
+KEYWORDS="~amd64 ~x86" |
98 |
+IUSE="debug doc +introspection python test" |
99 |
+ |
100 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} introspection )" |
101 |
+ |
102 |
+RDEPEND=" |
103 |
+ dev-libs/glib:2 |
104 |
+ net-libs/signond |
105 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
106 |
+ python? ( |
107 |
+ ${PYTHON_DEPS} |
108 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
109 |
+ ) |
110 |
+" |
111 |
+DEPEND="${RDEPEND} |
112 |
+ dev-util/gdbus-codegen |
113 |
+ doc? ( dev-util/gtk-doc ) |
114 |
+" |
115 |
+ |
116 |
+DOCS=( AUTHORS NEWS README.md ) |
117 |
+ |
118 |
+# needs more love |
119 |
+RESTRICT="test" |
120 |
+ |
121 |
+PATCHES=( "${FILESDIR}/${P}-default-opts.patch" ) |
122 |
+ |
123 |
+src_prepare() { |
124 |
+ default |
125 |
+ |
126 |
+ if ! use doc; then |
127 |
+ eapply "${FILESDIR}/${PN}-1.12-doc-disable.patch" |
128 |
+ fi |
129 |
+ |
130 |
+ eautoreconf |
131 |
+} |
132 |
+ |
133 |
+src_configure() { |
134 |
+ xdg_environment_reset |
135 |
+ |
136 |
+ myconfigure() { |
137 |
+ local myeconfargs=( |
138 |
+ $(use_enable debug) |
139 |
+ $(use_enable doc gtk-doc) |
140 |
+ $(use_enable introspection) |
141 |
+ $(use_enable python) |
142 |
+ $(use_enable test tests) |
143 |
+ ) |
144 |
+ |
145 |
+ econf "${myeconfargs[@]}" |
146 |
+ } |
147 |
+ |
148 |
+ if use python; then |
149 |
+ python_copy_sources |
150 |
+ python_foreach_impl run_in_build_dir myconfigure |
151 |
+ else |
152 |
+ myconfigure |
153 |
+ fi |
154 |
+} |
155 |
+ |
156 |
+src_compile() { |
157 |
+ # fails to compile with more than one thread |
158 |
+ MAKEOPTS="${MAKEOPTS} -j1" |
159 |
+ default |
160 |
+ if use python; then |
161 |
+ python_foreach_impl run_in_build_dir default |
162 |
+ fi |
163 |
+} |
164 |
+ |
165 |
+src_install() { |
166 |
+ default |
167 |
+ if use python; then |
168 |
+ python_foreach_impl run_in_build_dir default |
169 |
+ fi |
170 |
+ find "${D}" -name '*.la' -delete || die |
171 |
+} |