You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="blackbox weather monitor"
|
|
HOMEPAGE="https://www.netmeister.org/apps/bbweather/"
|
|
SRC_URI="https://www.netmeister.org/apps/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 hppa ppc x86"
|
|
IUSE=""
|
|
|
|
DEPEND="dev-lang/perl
|
|
x11-libs/libX11"
|
|
RDEPEND="${DEPEND}
|
|
net-misc/wget
|
|
x11-apps/xmessage
|
|
!<=x11-plugins/gkrellweather-2.0.7-r1"
|
|
|
|
PATCHES=( "${FILESDIR}"/${PN}-asneeded.patch )
|
|
|
|
src_prepare() {
|
|
default
|
|
gunzip doc/*.gz || die
|
|
sed -i \
|
|
-e "s:man_DATA:man1_MANS:;s:.gz::g;/^mandir/d" \
|
|
doc/Makefile.am || die
|
|
sed -i \
|
|
-e 's|-helvetica-|-*-|g' \
|
|
resource.cpp data/${PN}.{nobb,style} || die
|
|
eautoreconf
|
|
}
|
|
|
|
src_install () {
|
|
emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install
|
|
dodoc README AUTHORS ChangeLog NEWS TODO data/README.bbweather
|
|
|
|
# since multiple bbtools packages provide this file, install
|
|
# it in /usr/share/doc/${PF}
|
|
mv "${D}"/usr/share/bbtools/bbtoolsrc.in \
|
|
"${D}"/usr/share/doc/${PF}/bbtoolsrc.example || die
|
|
}
|