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.
57 lines
1.1 KiB
57 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
10 years ago
|
|
||
3 years ago
|
inherit autotools flag-o-matic
|
||
10 years ago
|
|
||
|
DESCRIPTION="Cyclic multi ping utility for selected adresses using GTK/ncurses"
|
||
|
HOMEPAGE="http://aa.vslib.cz/silk/projekty/pinger/"
|
||
5 years ago
|
SRC_URI="http://aa.vslib.cz/silk/projekty/pinger/download/${P}.tar.gz"
|
||
10 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
10 years ago
|
KEYWORDS="amd64 ~ppc x86"
|
||
10 years ago
|
IUSE="gtk2 gtk3 ncurses nls"
|
||
|
|
||
3 years ago
|
REQUIRED_USE="|| ( gtk2 gtk3 ncurses )
|
||
|
?? ( gtk2 gtk3 )"
|
||
|
|
||
|
GTK_DEPEND="dev-libs/glib:2"
|
||
|
RDEPEND="gtk2? (
|
||
10 years ago
|
${GTK_DEPEND}
|
||
|
>=x11-libs/gtk+-2.4:2
|
||
|
)
|
||
|
gtk3? (
|
||
|
${GTK_DEPEND}
|
||
|
>=x11-libs/gtk+-3.12:3
|
||
|
)
|
||
3 years ago
|
ncurses? ( sys-libs/ncurses:= )"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
10 years ago
|
|
||
|
DOCS=( AUTHORS BUGS ChangeLog NEWS README )
|
||
|
|
||
3 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-gentoo.patch
|
||
|
"${FILESDIR}"/${P}-musl-int-types.patch
|
||
|
)
|
||
|
|
||
10 years ago
|
src_prepare() {
|
||
3 years ago
|
default
|
||
10 years ago
|
|
||
|
sed -i -e '/Root privileges/d' src/Makefile.am || die
|
||
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
append-cppflags -D_GNU_SOURCE
|
||
|
|
||
|
econf \
|
||
|
$(usex gtk2 --enable-gtk=gtk2 '') \
|
||
|
$(usex gtk3 --enable-gtk=gtk3 '') \
|
||
|
$(use_enable ncurses) \
|
||
|
$(use_enable nls)
|
||
|
}
|