1 |
commit: 891bf3eaf8f1e1a34eb869ecc012e869eae26b29 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 30 20:36:29 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 30 20:37:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=891bf3ea |
7 |
|
8 |
dev-libs/libgweather: bump to 3.32.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libgweather/Manifest | 1 + |
14 |
.../libgweather/files/3.32.1-meson-tweaks.patch | 109 +++++++++++++++++++++ |
15 |
dev-libs/libgweather/libgweather-3.32.1.ebuild | 68 +++++++++++++ |
16 |
3 files changed, 178 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libgweather/Manifest b/dev-libs/libgweather/Manifest |
19 |
index 7a87154a71b..e8ec36a1a77 100644 |
20 |
--- a/dev-libs/libgweather/Manifest |
21 |
+++ b/dev-libs/libgweather/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST libgweather-3.24.1.tar.xz 3350680 BLAKE2B 9265cb3c280446d5f380f62b60efb5578a7a401e3291d12e3824d8e7eacc582761226b0aaebb0439318bd48b9ad5429a1b6d89eb0220a82650c43be8aa337e2d SHA512 564464d7a18a8e0320871ea418b1163163941c950c5acea5ee65a087e44c4d81e019e2e3e4cb6751989f823cbb7c5691713d3dcef72aeaf6ff264e61b6f7b4b4 |
24 |
DIST libgweather-3.26.2.tar.xz 3409528 BLAKE2B 1c5cdc7125aac8df95e97db8fa1d63bcb06865e70691621bc3a1c0ece2e602862cef9a2a5daa2ebbc5fa7eaefa32bf89507f1eef8fa4eeff294d43132e83fab4 SHA512 75b936f93814005b4317dcb51777036f589f343526428d9a74de96aac1badd4fe81c117184e2bff84a7a3078d6f2a2000e7b63f1e1d80f839b3513cc470fb25b |
25 |
DIST libgweather-3.28.3.tar.xz 2711240 BLAKE2B 9e55c32485401fa31e5ca5a824f239c373e41c2ef3a1d4442ba4512f102edadaa3452bdc4f4a445ea34e5e24cda23fbf6e1363da5bd49f70018b387f7450cf15 SHA512 7eb98f15b624090ba0959f4ee47c1a2317504a381829cebb949f4104ea9b5c2847a98f95de60a35c5bf1094e500041c53e1afdb265dd2f237bc49db8acbfd6f2 |
26 |
+DIST libgweather-3.32.1.tar.xz 2713696 BLAKE2B 496aa07c517ad570ebf54041b8ae14ec5eb5a923a113e1adcf23e5ac9a515ccb5c2dbeb29c923f0abcfc213409ddafbb1747c5ed5a6129bd4ac40b4e0fd687d6 SHA512 f5ae94436fa3cceee84ff80f14296f11ab27727e3881689dd71126de158f7d0015b462163cb2b47cf30add5a4c97c89c6473c1ed0515fcaac0dde2daffdf7108 |
27 |
|
28 |
diff --git a/dev-libs/libgweather/files/3.32.1-meson-tweaks.patch b/dev-libs/libgweather/files/3.32.1-meson-tweaks.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..9d1bdc017c2 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/libgweather/files/3.32.1-meson-tweaks.patch |
33 |
@@ -0,0 +1,109 @@ |
34 |
+From ad9fa6e469c4eba423b0f7bd5fbd7a76f6165ffe Mon Sep 17 00:00:00 2001 |
35 |
+From: Mart Raudsepp <leio@g.o> |
36 |
+Date: Sat, 23 Feb 2019 12:21:01 +0200 |
37 |
+Subject: [PATCH] build: Provide introspection option and don't build manual |
38 |
+ tests |
39 |
+ |
40 |
+--- |
41 |
+ libgweather/meson.build | 21 ++++++++++++++------- |
42 |
+ meson.build | 4 ++++ |
43 |
+ meson_options.txt | 2 ++ |
44 |
+ 3 files changed, 20 insertions(+), 7 deletions(-) |
45 |
+ |
46 |
+diff --git a/libgweather/meson.build b/libgweather/meson.build |
47 |
+index 6688807..6776839 100644 |
48 |
+--- a/libgweather/meson.build |
49 |
++++ b/libgweather/meson.build |
50 |
+@@ -66,6 +66,15 @@ lib_libgweather = shared_library('gweather-3', |
51 |
+ install: true, |
52 |
+ ) |
53 |
+ |
54 |
++libgweather_dep = declare_dependency( |
55 |
++ sources: [gweather_enum_types[1]], |
56 |
++ dependencies: deps_libgweather, |
57 |
++ link_with: lib_libgweather, |
58 |
++ include_directories: root_inc, |
59 |
++) |
60 |
++ |
61 |
++if get_option('introspection') |
62 |
++ |
63 |
+ gweather_gir = gnome.generate_gir(lib_libgweather, |
64 |
+ sources: introspection_sources, |
65 |
+ dependencies: deps_libgweather, |
66 |
+@@ -83,13 +92,6 @@ gweather_gir = gnome.generate_gir(lib_libgweather, |
67 |
+ install: true, |
68 |
+ ) |
69 |
+ |
70 |
+-libgweather_dep = declare_dependency( |
71 |
+- sources: [gweather_enum_types[1], gweather_gir], |
72 |
+- dependencies: deps_libgweather, |
73 |
+- link_with: lib_libgweather, |
74 |
+- include_directories: root_inc, |
75 |
+-) |
76 |
+- |
77 |
+ if enable_vala |
78 |
+ gnome.generate_vapi('gweather-3.0', |
79 |
+ sources: gweather_gir[0], |
80 |
+@@ -98,11 +100,13 @@ if enable_vala |
81 |
+ install: true |
82 |
+ ) |
83 |
+ endif |
84 |
++endif |
85 |
+ |
86 |
+ test_cargs = ['-DTEST_SRCDIR="@0@/"'.format(meson.current_source_dir()), |
87 |
+ '-DSCHEMASDIR="@0@/schemas"'.format(meson.source_root()), |
88 |
+ '-DSCHEMAS_BUILDDIR="@0@/schemas"'.format(meson.build_root())] |
89 |
+ |
90 |
++if false |
91 |
+ executable('test_locations', |
92 |
+ ['test_locations.c'], |
93 |
+ c_args: test_cargs, |
94 |
+@@ -113,6 +117,7 @@ executable('test_locations_utc', |
95 |
+ c_args: test_cargs, |
96 |
+ dependencies: libgweather_dep, |
97 |
+ install: false) |
98 |
++endif |
99 |
+ |
100 |
+ exe = executable('test_libgweather', |
101 |
+ ['test_libgweather.c'], |
102 |
+@@ -121,6 +126,7 @@ exe = executable('test_libgweather', |
103 |
+ install: false) |
104 |
+ test('test_named_timezones', exe) |
105 |
+ |
106 |
++if false |
107 |
+ executable('test_metar', |
108 |
+ ['test_metar.c', gweather_c_sources], |
109 |
+ c_args: test_cargs, |
110 |
+@@ -131,3 +137,4 @@ executable('test_sun_moon', |
111 |
+ c_args: test_cargs, |
112 |
+ dependencies: libgweather_dep, |
113 |
+ install: false) |
114 |
++endif |
115 |
+diff --git a/meson.build b/meson.build |
116 |
+index 54a5063..96e5d27 100644 |
117 |
+--- a/meson.build |
118 |
++++ b/meson.build |
119 |
+@@ -112,6 +112,10 @@ else |
120 |
+ enable_vala = enable_vala != 'false' |
121 |
+ endif |
122 |
+ |
123 |
++if enable_vala and not get_option('introspection') |
124 |
++ error('Vala bindings require introspection support') |
125 |
++endif |
126 |
++ |
127 |
+ root_inc = include_directories('.') |
128 |
+ |
129 |
+ subdir('libgweather') |
130 |
+diff --git a/meson_options.txt b/meson_options.txt |
131 |
+index 19b2c6a..bf4c517 100644 |
132 |
+--- a/meson_options.txt |
133 |
++++ b/meson_options.txt |
134 |
+@@ -8,3 +8,5 @@ option('enable_vala', type: 'combo', choices : ['true', 'false', 'auto'], value |
135 |
+ description: 'Install vala bindings') |
136 |
+ option('gtk_doc', type: 'boolean', value: false, |
137 |
+ description: 'Whether to generate the API reference') |
138 |
++option('introspection', type: 'boolean', value: true, |
139 |
++ description: 'generate GObject Introspection data') |
140 |
+-- |
141 |
+2.17.0 |
142 |
+ |
143 |
|
144 |
diff --git a/dev-libs/libgweather/libgweather-3.32.1.ebuild b/dev-libs/libgweather/libgweather-3.32.1.ebuild |
145 |
new file mode 100644 |
146 |
index 00000000000..8d09094874c |
147 |
--- /dev/null |
148 |
+++ b/dev-libs/libgweather/libgweather-3.32.1.ebuild |
149 |
@@ -0,0 +1,68 @@ |
150 |
+# Copyright 1999-2019 Gentoo Authors |
151 |
+# Distributed under the terms of the GNU General Public License v2 |
152 |
+ |
153 |
+EAPI=7 |
154 |
+VALA_USE_DEPEND="vapigen" |
155 |
+ |
156 |
+inherit gnome.org gnome2-utils meson vala xdg |
157 |
+ |
158 |
+DESCRIPTION="Location and timezone database and weather-lookup library" |
159 |
+HOMEPAGE="https://wiki.gnome.org/Projects/LibGWeather" |
160 |
+ |
161 |
+LICENSE="GPL-2+" |
162 |
+SLOT="2/3-15" # subslot = 3-(libgweather-3 soname suffix) |
163 |
+ |
164 |
+IUSE="glade gtk-doc +introspection +vala" |
165 |
+REQUIRED_USE="vala? ( introspection )" |
166 |
+ |
167 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris" |
168 |
+ |
169 |
+RDEPEND=" |
170 |
+ >=dev-libs/glib-2.35.1:2 |
171 |
+ >=x11-libs/gtk+-3.13.5:3[introspection?] |
172 |
+ >=net-libs/libsoup-2.44:2.4 |
173 |
+ >=dev-libs/libxml2-2.6.0:2 |
174 |
+ sci-geosciences/geocode-glib |
175 |
+ >=sys-libs/timezone-data-2010k |
176 |
+ |
177 |
+ glade? ( >=dev-util/glade-3.16:3.10 ) |
178 |
+ introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
179 |
+" |
180 |
+DEPEND="${RDEPEND}" |
181 |
+BDEPEND=" |
182 |
+ dev-util/glib-utils |
183 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.11 |
184 |
+ app-text/docbook-xml-dtd:4.3 ) |
185 |
+ >=sys-devel/gettext-0.19.8 |
186 |
+ virtual/pkgconfig |
187 |
+ $(vala_depend) |
188 |
+" |
189 |
+ |
190 |
+PATCHES=( |
191 |
+ "${FILESDIR}"/${PV}-meson-tweaks.patch # Provide introspection optionality and don't build tests that aren't ran automatically |
192 |
+) |
193 |
+ |
194 |
+src_prepare() { |
195 |
+ xdg_src_prepare |
196 |
+ vala_src_prepare |
197 |
+} |
198 |
+ |
199 |
+src_configure() { |
200 |
+ local emesonargs=( |
201 |
+ $(meson_use glade glade_catalog) |
202 |
+ $(meson_use vala enable_vala) |
203 |
+ $(meson_use gtk-doc gtk_doc) |
204 |
+ $(meson_use introspection) |
205 |
+ ) |
206 |
+ meson_src_configure |
207 |
+} |
208 |
+ |
209 |
+pkg_postinst() { |
210 |
+ xdg_pkg_postinst |
211 |
+ gnome2_schemas_update |
212 |
+} |
213 |
+ |
214 |
+pkg_postrm() { |
215 |
+ xdg_pkg_postrm |
216 |
+ gnome2_schemas_update |
217 |
+} |