Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/httping/
Date: Fri, 03 May 2019 16:11:47
Message-Id: 1556899900.19a78b769eb0630d0228862b75d76e705b5305b7.jer@gentoo
1 commit: 19a78b769eb0630d0228862b75d76e705b5305b7
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 3 16:11:28 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri May 3 16:11:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19a78b76
7
8 net-analyzer/httping: Add live ebuild
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/httping/httping-9999999.ebuild | 70 +++++++++++++++++++++++++++++
14 1 file changed, 70 insertions(+)
15
16 diff --git a/net-analyzer/httping/httping-9999999.ebuild b/net-analyzer/httping/httping-9999999.ebuild
17 new file mode 100644
18 index 00000000000..32a92c0aead
19 --- /dev/null
20 +++ b/net-analyzer/httping/httping-9999999.ebuild
21 @@ -0,0 +1,70 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit git-r3 toolchain-funcs
27 +
28 +DESCRIPTION="like ping but for HTTP requests"
29 +HOMEPAGE="https://www.vanheusden.com/httping/"
30 +EGIT_REPO_URI="https://github.com/flok99/httping"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS=""
35 +IUSE="debug fftw libressl l10n_nl ncurses ssl +tfo"
36 +
37 +RDEPEND="
38 + fftw? ( sci-libs/fftw:3.0 )
39 + ncurses? ( sys-libs/ncurses:0= )
40 + ssl? (
41 + !libressl? ( dev-libs/openssl:0= )
42 + libressl? ( dev-libs/libressl:0= )
43 + )
44 +"
45 +DEPEND="
46 + ${RDEPEND}
47 + ncurses? ( virtual/pkgconfig )
48 +"
49 +
50 +# This would bring in test? ( dev-util/cppcheck ) but unlike
51 +# upstream we should only care about compile/run time testing
52 +RESTRICT="test"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/${PN}-2.2.1-flags.patch
56 +)
57 +
58 +src_prepare() {
59 + default
60 +
61 + # doman does not get PN-LANG.CAT so we move things around and then point at
62 + # it later
63 + if use l10n_nl; then
64 + mkdir nl || die
65 + mv httping-nl.1 nl/httping.1 || die
66 + fi
67 +}
68 +
69 +src_configure() {
70 + # not an autotools script
71 + echo > makefile.inc || die
72 +
73 + use ncurses && LDFLAGS+=" $( $( tc-getPKG_CONFIG ) --libs ncurses )"
74 +}
75 +
76 +src_compile() {
77 + emake \
78 + CC="$(tc-getCC)" \
79 + FW=$(usex fftw) \
80 + DEBUG=$(usex debug) \
81 + NC=$(usex ncurses) \
82 + SSL=$(usex ssl) \
83 + TFO=$(usex tfo)
84 +}
85 +
86 +src_install() {
87 + dobin httping
88 + doman httping.1
89 +
90 + use l10n_nl && doman -i18n=nl nl/httping.1
91 +}