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/cbm/files/, net-analyzer/cbm/
Date: Thu, 02 Jan 2020 00:41:39
Message-Id: 1577925693.2eb484dfb0d50ddaf9051ec7d0930397b7bf7bc7.jer@gentoo
1 commit: 2eb484dfb0d50ddaf9051ec7d0930397b7bf7bc7
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 2 00:41:15 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 00:41:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2eb484df
7
8 net-analyzer/cbm: Version 0.2
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/cbm/Manifest | 1 +
14 net-analyzer/cbm/cbm-0.2.ebuild | 34 ++++++++++++++++++++++++++++++
15 net-analyzer/cbm/files/cbm-0.2-tinfo.patch | 21 ++++++++++++++++++
16 3 files changed, 56 insertions(+)
17
18 diff --git a/net-analyzer/cbm/Manifest b/net-analyzer/cbm/Manifest
19 index 5f869f61f0d..b532c14ec13 100644
20 --- a/net-analyzer/cbm/Manifest
21 +++ b/net-analyzer/cbm/Manifest
22 @@ -1 +1,2 @@
23 DIST cbm-0.1.tar.gz 310247 BLAKE2B 08d2b7c79795217e6f6e2c72bbf1a4e5af096ddd9ed76c9a61093cd790d7ef2429d2db3d94102c334f1433803d4b91cb297f57185b666554ce84eee5c2295322 SHA512 24bf6a4d68fed253977b965d7e5b6aff4fb9db502c47b4a2b3b36f8c2963c9648b78ae607e9753fe4792a73ddbc29b86b3a1acc3c431a9355b11ff348566add4
24 +DIST cbm-0.2.tar.gz 16043 BLAKE2B a5c041ac33b4694c2933bee0d71786896ec30d0735b921f34cfb6a247179709afd9fa6d90f0602869976f334391e8138830f538b18a08a7396f4049e26029b24 SHA512 ca9dbbd73e707dca3b7bf10201840de28b2b3956ce3cb2fc76e1b530caf6ff883eb437f8be0df1efe3b5d8398c4949ea00de4ba48ed26b27afa21cf445d5d076
25
26 diff --git a/net-analyzer/cbm/cbm-0.2.ebuild b/net-analyzer/cbm/cbm-0.2.ebuild
27 new file mode 100644
28 index 00000000000..970db519d02
29 --- /dev/null
30 +++ b/net-analyzer/cbm/cbm-0.2.ebuild
31 @@ -0,0 +1,34 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit autotools
37 +
38 +DESCRIPTION="Color Bandwidth Meter"
39 +HOMEPAGE="
40 + http://www.isotton.com/software/unix/cbm/
41 + https://github.com/resurrecting-open-source-projects/cbm
42 +"
43 +SRC_URI="https://github.com/resurrecting-open-source-projects/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +RDEPEND="
50 + sys-libs/ncurses
51 +"
52 +DEPEND="
53 + ${RDEPEND}
54 + app-text/docbook-xml-dtd:4.4
55 + app-text/xmlto
56 + virtual/pkgconfig
57 +"
58 +PATCHES=(
59 + "${FILESDIR}"/${PN}-0.2-tinfo.patch
60 +)
61 +
62 +src_prepare() {
63 + default
64 + eautoreconf
65 +}
66
67 diff --git a/net-analyzer/cbm/files/cbm-0.2-tinfo.patch b/net-analyzer/cbm/files/cbm-0.2-tinfo.patch
68 new file mode 100644
69 index 00000000000..a719969eaaa
70 --- /dev/null
71 +++ b/net-analyzer/cbm/files/cbm-0.2-tinfo.patch
72 @@ -0,0 +1,21 @@
73 +--- a/configure.ac
74 ++++ b/configure.ac
75 +@@ -37,6 +37,7 @@
76 + AC_CANONICAL_HOST
77 +
78 + # Checks for libraries.
79 ++PKG_CHECK_MODULES(ncurses,ncurses)
80 +
81 + # Checks for header files.
82 + AC_CHECK_HEADER(curses.h,[],[ AC_MSG_ERROR(curses.h not found or too old.) ], [])
83 +--- a/src/Makefile.am
84 ++++ b/src/Makefile.am
85 +@@ -24,7 +24,7 @@
86 + cbm_SOURCES = cbm.cpp \
87 + ErrnoError.hpp \
88 + statistics.cpp statistics.hpp
89 +-cbm_LDADD = -lncurses widgets/libwidgets.la
90 ++cbm_LDADD = $(ncurses_LIBS) widgets/libwidgets.la
91 +
92 + distclean-local:
93 + -rm -f *~ \