1 |
commit: 37cdf73a4158483cffb10c9ea74cd787166902e6 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 8 20:02:48 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 8 20:11:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37cdf73a |
7 |
|
8 |
dev-libs/libgweather: Version bump to 3.34.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/691018 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libgweather/Manifest | 1 + |
14 |
.../files/3.34.0-tests-Add-another-duplicate.patch | 27 +++++++++ |
15 |
dev-libs/libgweather/libgweather-3.34.0.ebuild | 69 ++++++++++++++++++++++ |
16 |
3 files changed, 97 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libgweather/Manifest b/dev-libs/libgweather/Manifest |
19 |
index e5a2eaed32f..f262ab963c3 100644 |
20 |
--- a/dev-libs/libgweather/Manifest |
21 |
+++ b/dev-libs/libgweather/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libgweather-3.32.2.tar.xz 2716144 BLAKE2B 56bf66edde8293758f49c1ca14b47fb725f72a0202e95e6e1d1832c179fd9414d527827be5cb7daa17627abfbd1ac16d8d09dbdbbdcb24d62cc62c25a220c156 SHA512 61543e5eaf8c04605a91a6f47811b3a0ed2b04c2f50eae9b8d08a4e24904db4731748fa27a0863d2cdab5fde776ec55abe9fd9fb2a72c7bd546665d59957cb4d |
24 |
+DIST libgweather-3.34.0.tar.xz 2725096 BLAKE2B af1034b905354aed433e3a5249305718b850f84dabcf3e96b9f9bcdda7dd78258ede0a9e82cab9b9d7f1b63d8e1a61bc3c83c1c18ec38790bc43c29fe98bb89d SHA512 44451837039965251d86f6f538c943a771ab1944d9190ddb2c6bdb34b3ed0e33756c537e84f24487fd5f28b107e8d3af05a6c20a68f83734ac26ff69a8bd0aba |
25 |
|
26 |
diff --git a/dev-libs/libgweather/files/3.34.0-tests-Add-another-duplicate.patch b/dev-libs/libgweather/files/3.34.0-tests-Add-another-duplicate.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..29956e3f498 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libgweather/files/3.34.0-tests-Add-another-duplicate.patch |
31 |
@@ -0,0 +1,27 @@ |
32 |
+From ee246dc058098dee1709d76635e72db35efcef4e Mon Sep 17 00:00:00 2001 |
33 |
+From: Bastien Nocera <hadess@××××××.net> |
34 |
+Date: Wed, 20 Nov 2019 10:55:02 +0100 |
35 |
+Subject: [PATCH] tests: Add another duplicate |
36 |
+ |
37 |
+$ wget -O- -q https://www.aviationweather.gov/docs/metar/stations.txt | grep KX26 |
38 |
+FL SEBASTIAN KX26 X26 27 49N 080 30W 6 X W 8 US |
39 |
+FL VALKARIA AFS KX26 X26 27 49N 080 30W 6 X 8 US |
40 |
+--- |
41 |
+ libgweather/test_libgweather.c | 1 + |
42 |
+ 1 file changed, 1 insertion(+) |
43 |
+ |
44 |
+diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c |
45 |
+index 1bfa3d4..8a21911 100644 |
46 |
+--- a/libgweather/test_libgweather.c |
47 |
++++ b/libgweather/test_libgweather.c |
48 |
+@@ -336,6 +336,7 @@ parse_metar_stations (const char *contents) |
49 |
+ "KHQG", |
50 |
+ "KOEL", |
51 |
+ "KTQK", |
52 |
++ "KX26", |
53 |
+ NULL |
54 |
+ }; |
55 |
+ if (g_strv_contains (known_duplicates, station)) { |
56 |
+-- |
57 |
+2.24.1 |
58 |
+ |
59 |
|
60 |
diff --git a/dev-libs/libgweather/libgweather-3.34.0.ebuild b/dev-libs/libgweather/libgweather-3.34.0.ebuild |
61 |
new file mode 100644 |
62 |
index 00000000000..c92f920bd9e |
63 |
--- /dev/null |
64 |
+++ b/dev-libs/libgweather/libgweather-3.34.0.ebuild |
65 |
@@ -0,0 +1,69 @@ |
66 |
+# Copyright 1999-2020 Gentoo Authors |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+ |
69 |
+EAPI=7 |
70 |
+VALA_USE_DEPEND="vapigen" |
71 |
+ |
72 |
+inherit gnome.org gnome2-utils meson vala xdg |
73 |
+ |
74 |
+DESCRIPTION="Location and timezone database and weather-lookup library" |
75 |
+HOMEPAGE="https://wiki.gnome.org/Projects/LibGWeather" |
76 |
+ |
77 |
+LICENSE="GPL-2+" |
78 |
+SLOT="2/3-16-2" # subslot = 3-(libgweather-3 soname suffix) w/ temporary -2 suffix for silent ABI break after 3.28 without soname bump as per distro-list |
79 |
+ |
80 |
+IUSE="glade gtk-doc +introspection +vala" |
81 |
+REQUIRED_USE="vala? ( introspection )" |
82 |
+ |
83 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" |
84 |
+ |
85 |
+RDEPEND=" |
86 |
+ >=dev-libs/glib-2.44.0:2 |
87 |
+ >=x11-libs/gtk+-3.13.5:3[introspection?] |
88 |
+ >=net-libs/libsoup-2.44:2.4 |
89 |
+ >=dev-libs/libxml2-2.6.0:2 |
90 |
+ sci-geosciences/geocode-glib |
91 |
+ >=sys-libs/timezone-data-2010k |
92 |
+ |
93 |
+ glade? ( >=dev-util/glade-3.16:3.10 ) |
94 |
+ introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
95 |
+" |
96 |
+DEPEND="${RDEPEND}" |
97 |
+BDEPEND=" |
98 |
+ dev-util/glib-utils |
99 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.11 |
100 |
+ app-text/docbook-xml-dtd:4.3 ) |
101 |
+ >=sys-devel/gettext-0.19.8 |
102 |
+ virtual/pkgconfig |
103 |
+ $(vala_depend) |
104 |
+" |
105 |
+ |
106 |
+PATCHES=( |
107 |
+ "${FILESDIR}"/3.32.1-meson-tweaks.patch # Provide introspection optionality and don't build tests that aren't ran automatically |
108 |
+ "${FILESDIR}"/${PV}-tests-Add-another-duplicate.patch |
109 |
+) |
110 |
+ |
111 |
+src_prepare() { |
112 |
+ xdg_src_prepare |
113 |
+ vala_src_prepare |
114 |
+} |
115 |
+ |
116 |
+src_configure() { |
117 |
+ local emesonargs=( |
118 |
+ $(meson_use glade glade_catalog) |
119 |
+ $(meson_use vala enable_vala) |
120 |
+ $(meson_use gtk-doc gtk_doc) |
121 |
+ $(meson_use introspection) |
122 |
+ ) |
123 |
+ meson_src_configure |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ xdg_pkg_postinst |
128 |
+ gnome2_schemas_update |
129 |
+} |
130 |
+ |
131 |
+pkg_postrm() { |
132 |
+ xdg_pkg_postrm |
133 |
+ gnome2_schemas_update |
134 |
+} |