commit:     e8511e84423d029b9bd07969c8d1b331cb765736
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 26 11:10:59 2017 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 11:34:40 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8511e84

x11-plugins/gkrellweather: Fix dependency on gkrellm[X] and make it work again 
(#592190 by G.Wolfe Woodbury).

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../gkrellweather-2.0.8-update-locations.patch     | 12 ++++++
 .../gkrellweather/gkrellweather-2.0.8-r1.ebuild    | 47 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git 
a/x11-plugins/gkrellweather/files/gkrellweather-2.0.8-update-locations.patch 
b/x11-plugins/gkrellweather/files/gkrellweather-2.0.8-update-locations.patch
new file mode 100644
index 00000000000..0faf2627170
--- /dev/null
+++ b/x11-plugins/gkrellweather/files/gkrellweather-2.0.8-update-locations.patch
@@ -0,0 +1,12 @@
+--- gkrellweather-2.0.8/GrabWeather    2009-01-11 13:15:02.000000000 -0500
++++ gkrellweather-2.0.8-r1/GrabWeather 2016-08-29 00:02:35.345041005 -0400
+@@ -12,7 +12,8 @@
+ 
+ $ReportDir  = '.wmWeatherReports';
+ #$WeatherSrc = 'ftp://weather.noaa.gov/data/observations/metar/decoded';
+-$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
++#$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
++$WeatherSrc = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/';
+ 
+ use strict; 
+ use vars qw( $ReportDir $WeatherSrc );

diff --git a/x11-plugins/gkrellweather/gkrellweather-2.0.8-r1.ebuild 
b/x11-plugins/gkrellweather/gkrellweather-2.0.8-r1.ebuild
new file mode 100644
index 00000000000..90b45a7f13c
--- /dev/null
+++ b/x11-plugins/gkrellweather/gkrellweather-2.0.8-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic gkrellm-plugin toolchain-funcs
+
+DESCRIPTION="GKrellM2 Plugin that monitors a METAR station and displays 
weatherinfo"
+HOMEPAGE="https://sites.google.com/site/makovick/gkrellm-plugins";
+SRC_URI="https://sites.google.com/site/makovick/projects/${P}.tgz";
+
+SLOT="2"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+       app-admin/gkrellm[X]
+       >=dev-lang/perl-5.6.1
+       >=net-misc/wget-1.5.3
+"
+DEPEND="
+       >=sys-apps/sed-4.0.5
+       virtual/pkgconfig
+"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-Respect-LDFLAGS.patch
+       "${FILESDIR}"/${P}-Move-GrabWeather.patch
+       "${FILESDIR}"/${P}-update-locations.patch
+)
+
+src_prepare() {
+       default
+       append-cflags $($(tc-getPKG_CONFIG) --cflags gtk+-2.0)
+       append-flags -fPIC
+}
+
+src_compile() {
+       emake PREFIX=/usr CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
+src_install () {
+       gkrellm-plugin_src_install
+
+       exeinto /usr/libexec/gkrellweather
+       doexe GrabWeather
+}

Reply via email to