Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/folks/files/, dev-libs/folks/
Date: Sat, 07 Sep 2019 22:09:26
Message-Id: 1567894133.b3aaaa475527b8a46235bbf4f80d8aa6424a10c4.leio@gentoo
1 commit: b3aaaa475527b8a46235bbf4f80d8aa6424a10c4
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 7 19:38:16 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 7 22:08:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3aaaa47
7
8 dev-libs/folks: bump to 0.12.1
9
10 Closes: https://bugs.gentoo.org/690544
11 Package-Manager: Portage-2.3.69, Repoman-2.3.12
12 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
13
14 dev-libs/folks/Manifest | 1 +
15 .../folks/files/0.12.1-conditional-tests.patch | 40 ++++++++++
16 dev-libs/folks/files/0.12.1-no-tracker-tests.patch | 26 +++++++
17 dev-libs/folks/folks-0.12.1.ebuild | 88 ++++++++++++++++++++++
18 4 files changed, 155 insertions(+)
19
20 diff --git a/dev-libs/folks/Manifest b/dev-libs/folks/Manifest
21 index d362ae2148b..a14a94a5d96 100644
22 --- a/dev-libs/folks/Manifest
23 +++ b/dev-libs/folks/Manifest
24 @@ -1 +1,2 @@
25 DIST folks-0.11.4.tar.xz 1972272 BLAKE2B 69fa21f9baf34a3597f8a7e3f789ab3d03ad508ec74e0e1dfaa8df09865cb99748483b4fa4aa9c219803c512a49a23e95d4c3ded5b285b0a0d2f7416a1d9bf7f SHA512 bd4088322c34b5d6e633d7d5d83dfb61eb3499014adf6fecad27231ec63509401b2867186d019a2f7c92cc3b3f2e6cfbc80e0d4700d84ce7a08d8153af3d2392
26 +DIST folks-0.12.1.tar.xz 522688 BLAKE2B 584957b628e286b850ee45c3f79d942ae602124e0130eeddc8806ae6fc12accd26c140df5caa0a1a68c84bff707df785d863d2f69ee9a0b6b450b8159c21fb39 SHA512 f60e993508137b33602ccc814bde45ad780d61afb0566f8175fd01b3dcaa5f5771e11d98156c4ecfd85f920a7adc140a5b2582eaaa97568b8fb3b3761668decb
27
28 diff --git a/dev-libs/folks/files/0.12.1-conditional-tests.patch b/dev-libs/folks/files/0.12.1-conditional-tests.patch
29 new file mode 100644
30 index 00000000000..cde0847fe14
31 --- /dev/null
32 +++ b/dev-libs/folks/files/0.12.1-conditional-tests.patch
33 @@ -0,0 +1,40 @@
34 +From 93c03b9582eb1eac21f084decf86ca5f1340dc53 Mon Sep 17 00:00:00 2001
35 +From: Mart Raudsepp <leio@g.o>
36 +Date: Sat, 7 Sep 2019 22:16:43 +0300
37 +Subject: [PATCH] meson: Allow disabling build of tests
38 +
39 +---
40 + meson.build | 4 +++-
41 + meson_options.txt | 1 +
42 + 2 files changed, 4 insertions(+), 1 deletion(-)
43 +
44 +diff --git a/meson.build b/meson.build
45 +index 91800654..37e6b5c2 100644
46 +--- a/meson.build
47 ++++ b/meson.build
48 +@@ -219,7 +219,9 @@ subdir('tools')
49 + subdir('po')
50 +
51 + # Tests
52 +-subdir('tests')
53 ++if get_option('test')
54 ++ subdir('tests')
55 ++endif
56 +
57 + if docs_enabled
58 + subdir('docs')
59 +diff --git a/meson_options.txt b/meson_options.txt
60 +index 042a72e8..b4552d49 100644
61 +--- a/meson_options.txt
62 ++++ b/meson_options.txt
63 +@@ -9,6 +9,7 @@ option('zeitgeist', type: 'boolean', value: false, description: 'build Zeitgeist
64 + option('import_tool', type: 'boolean', value: true, description: 'Enable building the meta-contact import tool')
65 + option('inspect_tool', type: 'boolean', value: true, description: 'Enable building the data inspection tool')
66 + # Test options
67 ++option('test', type: 'boolean', value: true, description: 'Build test programs')
68 + option('installed_tests', type: 'boolean', value: false, description: 'Install test programs')
69 + # Docs
70 + option('docs', type: 'boolean', value: false, description: 'Enable documentation generation')
71 +--
72 +2.20.1
73 +
74
75 diff --git a/dev-libs/folks/files/0.12.1-no-tracker-tests.patch b/dev-libs/folks/files/0.12.1-no-tracker-tests.patch
76 new file mode 100644
77 index 00000000000..3dbfadf7452
78 --- /dev/null
79 +++ b/dev-libs/folks/files/0.12.1-no-tracker-tests.patch
80 @@ -0,0 +1,26 @@
81 +From b2b0832cf69560bdf0692d275d49d4ed6e293426 Mon Sep 17 00:00:00 2001
82 +From: Mart Raudsepp <leio@g.o>
83 +Date: Sat, 7 Sep 2019 22:26:38 +0300
84 +Subject: [PATCH] tests: disable failing tracker tests
85 +
86 +All tracker tests fail for me, so disable them for now to at least
87 +continue testing the rest.
88 +---
89 + tests/meson.build | 4 ----
90 + 1 file changed, 4 deletions(-)
91 +
92 +diff --git a/tests/meson.build b/tests/meson.build
93 +index 6a7fa29c..2079051b 100644
94 +--- a/tests/meson.build
95 ++++ b/tests/meson.build
96 +@@ -43,7 +43,3 @@ endif
97 + if eds_backend_enabled
98 + subdir('eds')
99 + endif
100 +-
101 +-if tracker_backend_enabled
102 +- subdir('tracker')
103 +-endif
104 +--
105 +2.20.1
106 +
107
108 diff --git a/dev-libs/folks/folks-0.12.1.ebuild b/dev-libs/folks/folks-0.12.1.ebuild
109 new file mode 100644
110 index 00000000000..0809549521c
111 --- /dev/null
112 +++ b/dev-libs/folks/folks-0.12.1.ebuild
113 @@ -0,0 +1,88 @@
114 +# Copyright 1999-2019 Gentoo Authors
115 +# Distributed under the terms of the GNU General Public License v2
116 +
117 +EAPI=7
118 +VALA_USE_DEPEND="vapigen"
119 +VALA_MAX_API_VERSION="0.44" # tests-utils fails to build with newer with v0.12.1
120 +
121 +inherit gnome.org gnome2-utils meson vala xdg
122 +
123 +DESCRIPTION="Library for aggregating people from multiple sources"
124 +HOMEPAGE="https://wiki.gnome.org/Projects/Folks"
125 +
126 +LICENSE="LGPL-2.1+"
127 +SLOT="0/25" # subslot = libfolks soname version
128 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-linux"
129 +
130 +IUSE="bluetooth eds +telepathy test tracker utils"
131 +REQUIRED_USE="bluetooth? ( eds )"
132 +RESTRICT="!test? ( test )"
133 +
134 +DEPEND="
135 + $(vala_depend)
136 + >=dev-libs/glib-2.44:2
137 + dev-libs/dbus-glib
138 + >=dev-libs/libgee-0.10:0.8[introspection]
139 + >=dev-libs/gobject-introspection-1.54:=
140 + telepathy? ( >=net-libs/telepathy-glib-0.19.9[vala] )
141 + tracker? ( app-misc/tracker:0/2.0 )
142 + eds? ( >=gnome-extra/evolution-data-server-3.13.90:=[vala] )
143 + dev-libs/libxml2:2
144 + utils? ( sys-libs/readline:0= )
145 +"
146 +# telepathy-mission-control needed at runtime; it is used by the telepathy
147 +# backend via telepathy-glib's AccountManager binding.
148 +RDEPEND="${DEPEND}
149 + bluetooth? ( >=net-wireless/bluez-5[obex] )
150 + telepathy? ( net-im/telepathy-mission-control )
151 +"
152 +BDEPEND="
153 + >=dev-util/meson-0.49
154 + >=sys-devel/gettext-0.19.8
155 + virtual/pkgconfig
156 +"
157 +
158 +# FIXME:
159 +# test? ( bluetooth? ( dbusmock is missing in the tree ) )
160 +DEPEND="${COMMON_DEPEND}
161 + test? ( sys-apps/dbus
162 + bluetooth? ( dev-python/dbusmock ) )
163 +"
164 +
165 +PATCHES=(
166 + "${FILESDIR}"/${PV}-conditional-tests.patch # Allow not building lots of test executables when tests are disabled
167 + "${FILESDIR}"/${PV}-no-tracker-tests.patch # TODO: Tracker tests fail; this removed them for now
168 +)
169 +
170 +src_prepare() {
171 + vala_src_prepare
172 + xdg_src_prepare
173 +}
174 +
175 +src_configure() {
176 + local emesonargs=(
177 + $(meson_use bluetooth bluez_backend)
178 + $(meson_use eds eds_backend)
179 + -Dlibsocialweb_backend=false # not packaged
180 + $(meson_use eds ofono_backend)
181 + $(meson_use telepathy telepathy_backend)
182 + $(meson_use tracker tracker_backend)
183 + -Dzeitgeist=false # last rited package
184 + -Dimport_tool=true
185 + $(meson_use utils inspect_tool)
186 + $(meson_use test)
187 + -Dinstalled_tests=false
188 + -Ddocs=false # Needs find_program sedding to specific version; only dev docs, don't bother
189 + )
190 + meson_src_configure
191 +}
192 +
193 +pkg_postinst() {
194 + xdg_pkg_postinst
195 + gnome2_schemas_update
196 +}
197 +
198 +pkg_postrm() {
199 + xdg_pkg_postrm
200 + gnome2_schemas_update
201 +}