1 |
commit: 3d5bad07e9483bdceda834e3e10088d49a6a553c |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 13 17:28:59 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 13 17:29:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d5bad07 |
7 |
|
8 |
net-analyzer/httping: add libressl support |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-analyzer/httping/httping-2.4-r1.ebuild | 67 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 67 insertions(+) |
14 |
|
15 |
diff --git a/net-analyzer/httping/httping-2.4-r1.ebuild b/net-analyzer/httping/httping-2.4-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..e787b8d |
18 |
--- /dev/null |
19 |
+++ b/net-analyzer/httping/httping-2.4-r1.ebuild |
20 |
@@ -0,0 +1,67 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+inherit eutils toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="http protocol ping-like program" |
29 |
+HOMEPAGE="http://www.vanheusden.com/httping/" |
30 |
+SRC_URI="http://www.vanheusden.com/${PN}/${P}.tgz" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
35 |
+IUSE="debug fftw libressl linguas_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 |
+src_prepare() { |
55 |
+ epatch "${FILESDIR}"/${PN}-2.2.1-flags.patch |
56 |
+ |
57 |
+ # doman does not get PN-LANG.CAT so we move things around and then point at |
58 |
+ # it later |
59 |
+ if use linguas_nl; then |
60 |
+ mkdir nl || die |
61 |
+ mv httping-nl.1 nl/httping.1 || die |
62 |
+ fi |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ # not an autotools script |
67 |
+ echo > makefile.inc || die |
68 |
+ |
69 |
+ use ncurses && LDFLAGS+=" $( $( tc-getPKG_CONFIG ) --libs ncurses )" |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ emake \ |
74 |
+ CC="$(tc-getCC)" \ |
75 |
+ FW=$(usex fftw) \ |
76 |
+ DEBUG=$(usex debug) \ |
77 |
+ NC=$(usex ncurses) \ |
78 |
+ SSL=$(usex ssl) \ |
79 |
+ TFO=$(usex tfo) |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ dobin httping |
84 |
+ doman httping.1 |
85 |
+ |
86 |
+ use linguas_nl && doman -i18n=nl nl/httping.1 |
87 |
+} |