Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libsignon-glib/
Date: Thu, 04 Aug 2016 20:03:27
Message-Id: 1470340989.fa6edab6ffc6a5e964e6fa3e6b83c7bef51b95ef.kensington@gentoo
1 commit: fa6edab6ffc6a5e964e6fa3e6b83c7bef51b95ef
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 4 20:01:57 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 4 20:03:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa6edab6
7
8 net-libs/libsignon-glib: revision bump with various fixes
9
10 This introduces an introspection USE flag which eliminates an automagic
11 dependency.
12
13 The python USE flag requires the new introspection USE flag to be enabled,
14 as they are introspection bindings and build but do not run without the backing
15 introspection files.
16
17 This revision bump also corrects the python dependencies, prunes an unused
18 libtool file, and switches to EAPI 6.
19
20 Package-Manager: portage-2.3.0
21
22 .../libsignon-glib/libsignon-glib-1.13-r1.ebuild | 88 ++++++++++++++++++++++
23 1 file changed, 88 insertions(+)
24
25 diff --git a/net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild b/net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild
26 new file mode 100644
27 index 0000000..0ca692f
28 --- /dev/null
29 +++ b/net-libs/libsignon-glib/libsignon-glib-1.13-r1.ebuild
30 @@ -0,0 +1,88 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
38 +inherit autotools eutils python-r1 vcs-snapshot xdg-utils
39 +
40 +DESCRIPTION="GLib binding for the D-Bus API provided by signond"
41 +HOMEPAGE="https://01.org/gsso/"
42 +SRC_URI="https://gitlab.com/accounts-sso/libsignon-glib/repository/archive.tar.gz?ref=VERSION_1.13 -> ${P}.tar.gz"
43 +
44 +SLOT="0"
45 +LICENSE="LGPL-2.1"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="debug doc +introspection python test"
48 +
49 +REQUIRED_USE="${PYTHON_REQUIRED_USE} python? ( introspection )"
50 +
51 +RDEPEND="
52 + dev-libs/glib:2
53 + net-libs/signond
54 + introspection? ( dev-libs/gobject-introspection:= )
55 + python? (
56 + ${PYTHON_DEPS}
57 + dev-python/pygobject:3[${PYTHON_USEDEP}]
58 + )
59 +"
60 +DEPEND="${RDEPEND}
61 + dev-util/gdbus-codegen
62 + doc? ( dev-util/gtk-doc )
63 +"
64 +
65 +DOCS=( AUTHORS NEWS README )
66 +
67 +# needs more love
68 +RESTRICT="test"
69 +
70 +src_prepare() {
71 + default
72 +
73 + if ! use doc; then
74 + epatch "${FILESDIR}/${PN}-1.12-doc-disable.patch"
75 + fi
76 +
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + xdg_environment_reset
82 +
83 + myconfigure() {
84 + local myeconfargs=(
85 + $(use_enable debug)
86 + $(use_enable doc gtk-doc)
87 + $(use_enable introspection)
88 + $(use_enable python)
89 + $(use_enable test tests)
90 + )
91 +
92 + econf "${myeconfargs[@]}"
93 + }
94 +
95 + if use python; then
96 + python_copy_sources
97 + python_foreach_impl run_in_build_dir myconfigure
98 + else
99 + myconfigure
100 + fi
101 +}
102 +
103 +src_compile() {
104 + # fails to compile with more than one thread
105 + MAKEOPTS="${MAKEOPTS} -j1"
106 + default
107 + if use python; then
108 + python_foreach_impl run_in_build_dir default
109 + fi
110 +}
111 +
112 +src_install() {
113 + default
114 + if use python; then
115 + python_foreach_impl run_in_build_dir default
116 + fi
117 + prune_libtool_files
118 +}