summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libgweather/ChangeLog8
-rw-r--r--dev-libs/libgweather/Manifest10
-rw-r--r--dev-libs/libgweather/files/libgweather-3.12.2-yr_no-api.patch119
-rw-r--r--dev-libs/libgweather/libgweather-3.12.2-r1.ebuild58
4 files changed, 190 insertions, 5 deletions
diff --git a/dev-libs/libgweather/ChangeLog b/dev-libs/libgweather/ChangeLog
index b7984c4ccdf8..337fa4848f08 100644
--- a/dev-libs/libgweather/ChangeLog
+++ b/dev-libs/libgweather/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/libgweather
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgweather/ChangeLog,v 1.112 2014/08/02 09:58:54 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgweather/ChangeLog,v 1.113 2014/09/21 10:25:35 pacho Exp $
+
+*libgweather-3.12.2-r1 (21 Sep 2014)
+
+ 21 Sep 2014; Pacho Ramos <pacho@gentoo.org>
+ +files/libgweather-3.12.2-yr_no-api.patch, +libgweather-3.12.2-r1.ebuild:
+ Update api for Yr.no (#522718 by poncho and Evgeny Bobkin)
02 Aug 2014; Pacho Ramos <pacho@gentoo.org> -libgweather-3.12.1.ebuild,
libgweather-3.10.2.ebuild, libgweather-3.12.2.ebuild:
diff --git a/dev-libs/libgweather/Manifest b/dev-libs/libgweather/Manifest
index c28be0ae343c..e3a6c8f46334 100644
--- a/dev-libs/libgweather/Manifest
+++ b/dev-libs/libgweather/Manifest
@@ -2,18 +2,20 @@
Hash: SHA256
AUX libgweather-2.30.0-fix-automagic-python-support.patch 838 SHA256 d6e1462c5a7d57908bb378dcec65ed8ec1bba8ac19883d67801a696b73157597 SHA512 9312d4da603b595c7a08eb908a70c1b92f1ecf901f16eeebdb17800441bb895437b48a1781dc8ca4dc840f76ddaef2da5c7fbcb500165dfe18996dcd43f10695 WHIRLPOOL e1c7022c397b3c3237c877b7a0889fdde72215cbc8cd07c0187753d6aace784aeaf07dca33c6b9cc6602aa2d6a90db0e3fed1c1412c433bcf9224d6b68caa139
+AUX libgweather-3.12.2-yr_no-api.patch 8422 SHA256 a3e42d7facd4ea2aa2c3424f94baa936b3aa81a7769cde1ae5b6345217ca90d5 SHA512 06ad2b1a539449432cf01ce7deb7a6321d4c4ac310969c767fef410ddf73e3be0af1242fdfad7dee51c8f5526a5092f5c55f0737db262f4f767f7867a1498aa8 WHIRLPOOL a1a50a407910f67a8eccd9411c6b459cb3f19d74d2fa8e2785c9b64ab0d06b705715ff4ea552605db699f90a60cb540d8d58e121e52aeb1eb9e57427a0e731c2
DIST libgweather-2.30.3.tar.bz2 7449487 SHA256 b835374661423f37c46aa8e37368ae24a68856f117b7c21e475a21efdba5264c SHA512 4cbed97a65d02dfdb015fced22cc58d681cd508473add0fc9060206e2736e2c97aa80d3a70923a6e46e0f8de566baffbd56bb86faa875fa565ae52630a05a071 WHIRLPOOL fc000d21f5772f3852f1de5eaf7ebab42f3deabc30ac1a96f12b40a2ba9c864afdf9d0fe01809cdbcd0749b9bd5e37a5c177df199bf5847b2c5ec6cf1cd9cdb0
DIST libgweather-3.10.2.tar.xz 3970388 SHA256 454d8d681114f7f9522df2710b63f33198d0d7ca6f0726eef7fcf72e1b580005 SHA512 0de26323522a9902b8a4c4c0b773005543fa8fd6d639e70a89487015a4653e10aec5baa792d9475a0c10dd09d55e7417a896cea738b7274fbb740429c61b8297 WHIRLPOOL a7054bfd9a3e966cd1bf2abc6d148c3b412340c8c1b275587a2d21730d6e69f1b8b3f84e224e6e57b06eb60752c9d55db1ee49ea095a855aff26c7cb46704e3f
DIST libgweather-3.12.2.tar.xz 3985056 SHA256 54ef096350d7774ab1b3f23ed768246301cdcedfaa762a2c46920bf87fcc1c37 SHA512 04e3e7be923813e1dedca90931a12270b6e6d9b0329c35f8dbc0398f0a413e0511dcaa7aab7191b8e72c66b929f381c9cd810702cefb35ea0d79c3af0a6db5d2 WHIRLPOOL 384dada98adc101414063e3d6301e821abf79261d00e9532e2287643963d0556da254e9bcbfbb183eb36b8acde1278c31904dd75bb2eaf92d16fa6926ebb8846
EBUILD libgweather-2.30.3.ebuild 1658 SHA256 81c563f8aeb4555a2a6deacbc52a167dc3e8fb0befad03d200629a5f84e90d7d SHA512 ed4d691266c1f17d1eadd293c9eef9cc2591ace2ec8042c805e33bae29d46d5e8444d2d65cb2d8c3dd51c0f33b4fa3053074f78facfa2af0a3bdebf7c63513b7 WHIRLPOOL 6ca66c8aef4d4540e3d63a94e7450eb02cc50824042af405d9b44af30fd38f0300d0de463be4100fedcfcfdab5d3debc58d3026e28c053acd741ca02284728fb
EBUILD libgweather-3.10.2.ebuild 1474 SHA256 c8985952a751542ddf3a11a0810aa900b6e373d3a26532a625b67be9e4f72c7c SHA512 a98396b3f59f04379c975320cfa252be52668644341c5025dd39c4815be2b09981d765957e7121efd45a3685e7d91f9121c633cdf8e772401b5868bff91b0896 WHIRLPOOL 7a9ac96936e710daafccef4b18ce31161a45a47435452a4248ffc697ea0da695cf6b106787b2529c590b3189d0b5460531cf2e612cfa80169bbc97362d0522a4
+EBUILD libgweather-3.12.2-r1.ebuild 1609 SHA256 9ec84b29ca42599bfb6e77d6e61713ed664468b815f9aa20cfb1280342fec67a SHA512 63593974f25353f87959ef59b882ba374c280bccd0fd1948b81f901a080cf4fe553d63b44d363483096f6c7825f8d4dabfd208414d5455b80f0a878bc9532fb3 WHIRLPOOL 17d03e0f242eda202123b3ddc88497889b20e78d62374d20f4186510c203e0d1097d914e5756969439c31c0bc4cbf1c3cb2e27c52eb1369669164e0c36b9bc2a
EBUILD libgweather-3.12.2.ebuild 1483 SHA256 fe082e29247f9dd2da6b4c53881ba3c4a5126176a329435fe507fdd331d888cf SHA512 426427b36b480d833732fae7a6fd2e33db5414249fba997d30826bbe2462f97175df98c7b4ca03a7d716795dd5e65893cce7cd98d8a7553fcb4e6c7305f19563 WHIRLPOOL d1393af0d9e3e0fbb037885087c5218881bcfe35608b02c6f63be8aa87c78492daa5bef3122f1a4b84cb21bd22de27449c671bef1505919b5115a12b7d37678d
-MISC ChangeLog 15880 SHA256 899501bca85aa3df9f4bc9d916935b50355cdabaca2748c60518ce40aeccf6e8 SHA512 18834fd0e94aa8c61905f7b235787c06fb1f86a7242e8d582981fee7511bfc42e3e0713b87d6b5868c28fb243d0682e8730f573ece48b53aef9d5b009e5587dd WHIRLPOOL 5a3b403a6bff82d89d5a9579f6048701329dda06191d7808b4b904a82af3c9927bea381ec0358f9cefbfe0fd2f92797c48d7d3eda115c9fc5f3dd0b0e70a5a4d
+MISC ChangeLog 16102 SHA256 a9de1accb259172b283b83ee3940a20b8a9f7bf21f51d4d94864e0e25e68d13b SHA512 917e80802dc5b3c15b646abfc45f432f9d762ab573a207e1f70b0ac8bfff1bf5ab3f93a43646356081febc18c0160608a6d503e7a1db7ada2e98cd441ddbe171 WHIRLPOOL 86bd432f6d4468bf2dd22b18dd233e5710ae049333d1ebe3ebbaa20cd0fca45accce3dc737475a4c1b9eef8bf67cad2154cfcc41a906f670cf92d254875850b6
MISC metadata.xml 255 SHA256 46fe560312c5a99fbd5a22a133b1f29a8c05a832b5d368809d39467e2a03ca00 SHA512 ba171878fa6c0faf41fcf9171e47e8a40871e57adfe816afa1aff814520af6e739a3cd48940ed9c9e99e660004e4d7c24f635b0f60b768c45f13b40a25e4bf00 WHIRLPOOL dbcd3a1f9de18ce3229431938eb17033710ada6827899a3b9e35f8bccf6eab41330c4b548e1f47764523a5be12add795b279c564c1d8698dde760b6cecc0d4fa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iEYEAREIAAYFAlPctl8ACgkQCaWpQKGI+9SLWACdG9T1GGu5u/8/IfnkPKiCTPTE
-7agAnR5gzCO5Hd4py9QbkcQ4zNydimIk
-=gYW2
+iEYEAREIAAYFAlQep6AACgkQCaWpQKGI+9TyFACfddyDO0rdPM7up6UTtKgPrjhD
+XLIAni7waHtFf7/1rdI4IovZpiZHSMwc
+=g0Nl
-----END PGP SIGNATURE-----
diff --git a/dev-libs/libgweather/files/libgweather-3.12.2-yr_no-api.patch b/dev-libs/libgweather/files/libgweather-3.12.2-yr_no-api.patch
new file mode 100644
index 000000000000..ee93d19d25e7
--- /dev/null
+++ b/dev-libs/libgweather/files/libgweather-3.12.2-yr_no-api.patch
@@ -0,0 +1,119 @@
+From 89de9f95660f2fcdaf8ffc4ebe3c7c192d42f464 Mon Sep 17 00:00:00 2001
+From: Giovanni Campagna <gcampagna@src.gnome.org>
+Date: Tue, 9 Sep 2014 14:15:43 -0700
+Subject: Yr.no: update to version 1.9 of the online API
+
+The old version has been discontinued (without notice), start
+using the new one.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=736334
+
+diff --git a/libgweather/weather-yrno.c b/libgweather/weather-yrno.c
+index f7db931..af47861 100644
+--- a/libgweather/weather-yrno.c
++++ b/libgweather/weather-yrno.c
+@@ -44,25 +44,46 @@ static struct {
+ GWeatherSky sky;
+ GWeatherConditions condition;
+ } symbols[] = {
+- { GWEATHER_SKY_CLEAR, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* Sun / clear sky */
+- { GWEATHER_SKY_BROKEN, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* Fair */
+- { GWEATHER_SKY_SCATTERED, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* Partly cloudy */
++ { GWEATHER_SKY_CLEAR, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* Sun */
++ { GWEATHER_SKY_BROKEN, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* LightCloud */
++ { GWEATHER_SKY_SCATTERED, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* PartlyCloudy */
+ { GWEATHER_SKY_OVERCAST, { FALSE, GWEATHER_PHENOMENON_NONE, GWEATHER_QUALIFIER_NONE } }, /* Cloudy */
+- { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_SHOWERS } }, /* Rain showers */
+- { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* Rain showers with thunder */
+- { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_SHOWERS } }, /* Sleet showers */
+- { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_SHOWERS } }, /* Snow showers */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_LIGHT } }, /* LightRainSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* LightRainThunderSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_NONE } }, /* SleetSun */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_NONE } }, /* SnowSun */
+ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_NONE } }, /* Rain */
+- { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_HEAVY } }, /* Heavy rain */
+- { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* Rain and thunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* RainThunder */
+ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_NONE } }, /* Sleet */
+ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_NONE } }, /* Snow */
+- { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* Snow and thunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* SnowThunder */
+ { GWEATHER_SKY_CLEAR, { TRUE, GWEATHER_PHENOMENON_FOG, GWEATHER_QUALIFIER_NONE } }, /* Fog */
+- { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* Sleet showers and thunder */
+- { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* Snow showers and thunder */
+- { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_HEAVY } }, /* Rain and thunder */
+- { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_HEAVY } } /* Sleet and thunder */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* SleetSunThunder */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* SnowSunThunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* LightRainThunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* SleetThunder */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_DRIZZLE, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* DrizzleThunderSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* RainThunderSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_LIGHT } }, /* LightSleetThunderSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySleetThunderSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_LIGHT } }, /* LightSnowThunderSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySnowThunderSun */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_DRIZZLE, GWEATHER_QUALIFIER_THUNDERSTORM } }, /* DrizzleThunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_LIGHT } }, /* LightSleetThunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySleetThunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_LIGHT } }, /* LightSnowThunder */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySnowThunder */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_DRIZZLE, GWEATHER_QUALIFIER_NONE } }, /* DrizzleSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_RAIN, GWEATHER_QUALIFIER_NONE } }, /* RainSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_LIGHT } }, /* LightSleetSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySleetSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_LIGHT } }, /* LightSnowSun */
++ { GWEATHER_SKY_BROKEN, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySnowSun */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_DRIZZLE, GWEATHER_QUALIFIER_NONE } }, /* Drizzle */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_LIGHT } }, /* LightSleet */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_ICE_PELLETS, GWEATHER_QUALIFIER_HEAVY } }, /* HeavySleet */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_LIGHT } }, /* LightSnow */
++ { GWEATHER_SKY_OVERCAST, { TRUE, GWEATHER_PHENOMENON_SNOW, GWEATHER_QUALIFIER_HEAVY } } /* HeavySnow */
+ };
+
+ static struct {
+@@ -207,6 +228,22 @@ read_pressure (GWeatherInfo *info,
+ }
+
+ static inline void
++read_humidity (GWeatherInfo *info,
++ xmlNodePtr node)
++{
++ xmlChar *val;
++ double percent;
++
++ val = xmlGetProp (node, XC("value"));
++ if (val == NULL)
++ return;
++
++ percent = g_ascii_strtod ((char*) val, NULL);
++ info->priv->humidity = percent;
++ info->priv->hasHumidity = TRUE;
++}
++
++static inline void
+ read_child_node (GWeatherInfo *info,
+ xmlNodePtr node)
+ {
+@@ -220,6 +257,8 @@ read_child_node (GWeatherInfo *info,
+ read_temperature (info, node);
+ else if (strcmp ((char*) node->name, "pressure") == 0)
+ read_pressure (info, node);
++ else if (strcmp ((char*) node->name, "humidity") == 0)
++ read_humidity (info, node);
+ }
+
+ static inline void
+@@ -532,7 +571,7 @@ yrno_start_open_new (GWeatherInfo *info)
+ g_ascii_dtostr (latstr, sizeof(latstr), RADIANS_TO_DEGREES (loc->latitude));
+ g_ascii_dtostr (lonstr, sizeof(lonstr), RADIANS_TO_DEGREES (loc->longitude));
+
+- url = g_strdup_printf("http://api.yr.no/weatherapi/locationforecast/1.8/?lat=%s;lon=%s", latstr, lonstr);
++ url = g_strdup_printf("http://api.yr.no/weatherapi/locationforecast/1.9/?lat=%s;lon=%s", latstr, lonstr);
+
+ message = soup_message_new ("GET", url);
+ _gweather_info_begin_request (info, message);
+--
+cgit v0.10.1
+
diff --git a/dev-libs/libgweather/libgweather-3.12.2-r1.ebuild b/dev-libs/libgweather/libgweather-3.12.2-r1.ebuild
new file mode 100644
index 000000000000..afd22f24f15d
--- /dev/null
+++ b/dev-libs/libgweather/libgweather-3.12.2-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgweather/libgweather-3.12.2-r1.ebuild,v 1.1 2014/09/21 10:25:35 pacho Exp $
+
+EAPI="5"
+GCONF_DEBUG="no"
+VALA_MIN_API_VERSION="0.18"
+VALA_USE_DEPEND="vapigen"
+
+inherit eutils gnome2 vala
+
+DESCRIPTION="Library to access weather information from online services"
+HOMEPAGE="https://wiki.gnome.org/Projects/LibGWeather"
+
+LICENSE="GPL-2+"
+SLOT="2/3-6" # subslot = 3-(libgweather-3 soname suffix)
+IUSE="glade +introspection vala"
+REQUIRED_USE="vala? ( introspection )"
+
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-solaris"
+
+COMMON_DEPEND="
+ >=x11-libs/gtk+-3.5.6:3[introspection?]
+ >=dev-libs/glib-2.35.1:2
+ >=net-libs/libsoup-2.34:2.4
+ >=dev-libs/libxml2-2.6.0
+ >=sys-libs/timezone-data-2010k
+
+ glade? ( >=dev-util/glade-3.16:3.10 )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !<gnome-base/gnome-applets-2.22.0
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/gtk-doc-am-1.11
+ >=dev-util/intltool-0.50
+ >=sys-devel/gettext-0.18
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+
+src_prepare() {
+ # Yr.no: update to version 1.9 of the online API (from 3.12 branch)
+ epatch "${FILESDIR}"/${P}-yr_no-api.patch
+
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ DOCS="AUTHORS ChangeLog MAINTAINERS NEWS"
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable glade glade-catalog) \
+ $(use_enable introspection) \
+ $(use_enable vala)
+}