Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/bbweather/, x11-misc/bbweather/files/
Date: Sun, 08 Jul 2018 08:10:52
Message-Id: 1531036352.237dda550d1310aaeafc27f98d48b618460625a8.asturm@gentoo
1 commit: 237dda550d1310aaeafc27f98d48b618460625a8
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Jun 22 14:02:06 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 8 07:52:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=237dda55
7
8 x11-misc/bbweather: EAPI7, improve ebuild
9
10 x11-misc/bbweather/bbweather-0.6.3-r2.ebuild | 46 +++++++++++++++++++++++
11 x11-misc/bbweather/files/bbweather-asneeded.patch | 8 ++--
12 2 files changed, 50 insertions(+), 4 deletions(-)
13
14 diff --git a/x11-misc/bbweather/bbweather-0.6.3-r2.ebuild b/x11-misc/bbweather/bbweather-0.6.3-r2.ebuild
15 new file mode 100644
16 index 00000000000..1de14db362e
17 --- /dev/null
18 +++ b/x11-misc/bbweather/bbweather-0.6.3-r2.ebuild
19 @@ -0,0 +1,46 @@
20 +# Copyright 1999-2018 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +
23 +EAPI=7
24 +
25 +inherit autotools
26 +
27 +DESCRIPTION="blackbox weather monitor"
28 +HOMEPAGE="https://www.netmeister.org/apps/bbweather/"
29 +SRC_URI="https://www.netmeister.org/apps/${P}.tar.bz2"
30 +
31 +LICENSE="GPL-2+"
32 +SLOT="0"
33 +KEYWORDS="amd64 hppa ppc x86"
34 +IUSE=""
35 +
36 +DEPEND="dev-lang/perl
37 + x11-libs/libX11"
38 +RDEPEND="${DEPEND}
39 + net-misc/wget
40 + x11-apps/xmessage
41 + !<=x11-plugins/gkrellweather-2.0.7-r1"
42 +
43 +PATCHES=( "${FILESDIR}"/${PN}-asneeded.patch )
44 +
45 +src_prepare() {
46 + default
47 + gunzip doc/*.gz || die
48 + sed -i \
49 + -e "s:man_DATA:man1_MANS:;s:.gz::g;/^mandir/d" \
50 + doc/Makefile.am || die
51 + sed -i \
52 + -e 's|-helvetica-|-*-|g' \
53 + resource.cpp data/${PN}.{nobb,style} || die
54 + eautoreconf
55 +}
56 +
57 +src_install () {
58 + emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install
59 + dodoc README AUTHORS ChangeLog NEWS TODO data/README.bbweather
60 +
61 + # since multiple bbtools packages provide this file, install
62 + # it in /usr/share/doc/${PF}
63 + mv "${D}"/usr/share/bbtools/bbtoolsrc.in \
64 + "${D}"/usr/share/doc/${PF}/bbtoolsrc.example || die
65 +}
66
67 diff --git a/x11-misc/bbweather/files/bbweather-asneeded.patch b/x11-misc/bbweather/files/bbweather-asneeded.patch
68 index 593e471641c..001ac112720 100644
69 --- a/x11-misc/bbweather/files/bbweather-asneeded.patch
70 +++ b/x11-misc/bbweather/files/bbweather-asneeded.patch
71 @@ -2,8 +2,8 @@ Fixing build with as-needed
72
73 https://bugs.gentoo.org/248556
74
75 ---- configure.in
76 -+++ configure.in
77 +--- a/configure.in
78 ++++ b/configure.in
79 @@ -56,15 +56,10 @@
80 AC_PATH_X
81 AC_PATH_XTRA
82 @@ -22,8 +22,8 @@ https://bugs.gentoo.org/248556
83
84 dnl Checks for header files.
85 AC_HEADER_STDC
86 ---- Makefile.am
87 -+++ Makefile.am
88 +--- a/Makefile.am
89 ++++ b/Makefile.am
90 @@ -1,5 +1,4 @@
91 -CPPFLAGS = @CPPFLAGS@ \
92 - -DDEFAULT_CONF=\"$(datadir)/bbtools/bbweather.conf\" \