mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/liboping: EAPI 6 -> 8
Also fixed *.la files install. Closes: https://bugs.gentoo.org/848927 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
@@ -1,63 +1,68 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
EAPI=8
|
||||
|
||||
inherit autotools fcaps perl-module
|
||||
|
||||
DESCRIPTION="Protocol independent ANSI-C ping library and command line utility"
|
||||
HOMEPAGE="https://noping.cc/"
|
||||
HOMEPAGE="
|
||||
https://noping.cc/
|
||||
https://github.com/octo/liboping
|
||||
"
|
||||
SRC_URI="https://noping.cc/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1 GPL-2"
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0/0.3"
|
||||
KEYWORDS="~alpha amd64 arm x86"
|
||||
IUSE="+filecaps ncurses perl"
|
||||
|
||||
DEPEND="ncurses? ( sys-libs/ncurses:0= )"
|
||||
RDEPEND=${DEPEND}
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.10.0-no-werror.patch
|
||||
"${FILESDIR}/${PN}-1.10.0-no-werror.patch"
|
||||
"${FILESDIR}/${PN}-1.6.2-nouidmagic.patch"
|
||||
"${FILESDIR}"/${P}-gcc8-fix.patch
|
||||
"${FILESDIR}"/${P}-do-not-quit-when-ping_send-fail.patch
|
||||
"${FILESDIR}"/${P}-report-right-error-msg-when-select-fails.patch
|
||||
"${FILESDIR}/${PN}-1.10.0-gcc8-fix.patch"
|
||||
"${FILESDIR}/${PN}-1.10.0-do-not-quit-when-ping_send-fail.patch"
|
||||
"${FILESDIR}/${PN}-1.10.0-report-right-error-msg-when-select-fails.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with perl perl-bindings INSTALLDIRS=vendor) \
|
||||
myeconfargs=(
|
||||
$(use_with ncurses)
|
||||
$(use_with perl perl-bindings INSTALLDIRS=vendor)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use perl; then
|
||||
pushd bindings/perl >/dev/null || die
|
||||
pushd bindings/perl || die
|
||||
perl-module_src_test
|
||||
popd >/dev/null || die
|
||||
popd || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use filecaps; then
|
||||
local _caps_str="CAP_NET_RAW"
|
||||
_files=( "${EROOT%/}/usr/bin/oping")
|
||||
_files=( "${EROOT}/usr/bin/oping")
|
||||
|
||||
if use ncurses; then
|
||||
_files+=( "${EROOT%/}/usr/bin/noping")
|
||||
_files+=( "${EROOT}/usr/bin/noping")
|
||||
fi
|
||||
|
||||
fcaps "${_caps_str}" "${_files[@]}"
|
||||
Reference in New Issue
Block a user