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.
80 lines
1.7 KiB
80 lines
1.7 KiB
8 months ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
inherit toolchain-funcs flag-o-matic
|
||
|
|
||
|
DESCRIPTION="http protocol ping-like program"
|
||
|
HOMEPAGE="https://www.vanheusden.com/httping/"
|
||
|
SRC_URI="https://github.com/folkertvanheusden/HTTPing/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
S="${WORKDIR}"/HTTPing-${PV}
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
7 months ago
|
KEYWORDS="amd64 ~arm64 ~hppa ~mips ~ppc ppc64 ~riscv ~sparc x86"
|
||
8 months ago
|
IUSE="debug fftw l10n_nl ncurses ssl +tfo"
|
||
|
|
||
|
RDEPEND="
|
||
|
fftw? ( sci-libs/fftw:3.0 )
|
||
5 months ago
|
ncurses? ( sys-libs/ncurses:= )
|
||
|
ssl? ( dev-libs/openssl:= )
|
||
8 months ago
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="ncurses? ( virtual/pkgconfig )"
|
||
|
|
||
|
# This would bring in test? ( dev-util/cppcheck ) but unlike
|
||
|
# upstream we should only care about compile/run time testing
|
||
|
RESTRICT="test"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-2.2.1-flags.patch
|
||
5 months ago
|
"${FILESDIR}"/${PN}-2.9-c99.patch
|
||
8 months ago
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# Don't clobber toolchain defaults
|
||
|
sed -i -e 's:-D_FORTIFY_SOURCE=2::' Makefile || die
|
||
|
|
||
|
# doman does not get PN-LANG.CAT so we move things around and then point at
|
||
|
# it later
|
||
|
if use l10n_nl; then
|
||
|
mkdir nl || die
|
||
|
mv httping-nl.1 nl/httping.1 || die
|
||
|
fi
|
||
|
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
# not an autotools script
|
||
|
echo > makefile.inc || die
|
||
|
|
||
|
if use ncurses ; then
|
||
|
local ncurses_flags="$($(tc-getPKG_CONFIG) --libs ncurses)"
|
||
|
|
||
|
# Don't require ncurses with unicode support
|
||
|
# bug #731950
|
||
|
sed -i -e "s/-lncursesw/${ncurses_flags}/" Makefile || die
|
||
|
append-libs "${ncurses_flags}"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake \
|
||
|
CC="$(tc-getCC)" \
|
||
|
FW=$(usex fftw) \
|
||
|
DEBUG=$(usex debug) \
|
||
|
NC=$(usex ncurses) \
|
||
|
SSL=$(usex ssl) \
|
||
|
TFO=$(usex tfo)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin httping
|
||
|
doman httping.1
|
||
|
|
||
|
use l10n_nl && doman -i18n=nl nl/httping.1
|
||
|
}
|