Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/mbuffer/
Date: Wed, 10 Feb 2021 22:21:37
Message-Id: 1612995686.29b7c0fd9b5f26244e0247fc1dc2af75aab87ed4.whissi@gentoo
1 commit: 29b7c0fd9b5f26244e0247fc1dc2af75aab87ed4
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 10 22:18:14 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 10 22:21:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29b7c0fd
7
8 sys-block/mbuffer: bump to v20210209
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-block/mbuffer/Manifest | 1 +
14 sys-block/mbuffer/mbuffer-20210209.ebuild | 70 +++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/sys-block/mbuffer/Manifest b/sys-block/mbuffer/Manifest
18 index 9eede0cede4..54fa2d5745f 100644
19 --- a/sys-block/mbuffer/Manifest
20 +++ b/sys-block/mbuffer/Manifest
21 @@ -1,2 +1,3 @@
22 DIST mbuffer-20200505.tgz 146020 BLAKE2B b85742f710405e29775c7d25e9c1be733fd94d7157018017b7c8fb5b5cdeab7fa8819b024d297d96af960a73a8982fdeaefe50627c605f797df4d75b0c15435f SHA512 8a1e5721869fd705d02486cf93467bfe0a59b58789826ca337c18a023e9fbb18c1651211bfebdea4cdd45772ad23d0715bb3892bed04ce66f5fbe72406cde9f7
23 DIST mbuffer-20200929.tgz 147855 BLAKE2B abbcb4b29013ed24b4135a8b7576a0e728c3b5f1987558f0582711b1b00333caea8b55a02c4506ac179a4dae04977ee64572df09a210bf34bd71fd336be7e418 SHA512 332106205ea8743c9cf47529106c04ac15801a02b116d8e0c0fd3baadad51331c9f4ba1c8fa125edb42940cf401048a45ba23e2dac0e5189671bcf0ecee36996
24 +DIST mbuffer-20210209.tgz 147894 BLAKE2B ff6b1da468d34b1fef66178200f68998da0ef4042424845157afbd59e53dbef9e3d003ec9c1a663b28c0e3291d515841bb0a29dabf72a4dd781f6dde2b69b17d SHA512 82a3fd769c6935164db41dbc2e189fef27068c5d4604be923f42f6a9ba3dc3668e6918ba838a0015e9b5becde8b42c9268aa679e3aadb770c517873790f842d1
25
26 diff --git a/sys-block/mbuffer/mbuffer-20210209.ebuild b/sys-block/mbuffer/mbuffer-20210209.ebuild
27 new file mode 100644
28 index 00000000000..715e227db5d
29 --- /dev/null
30 +++ b/sys-block/mbuffer/mbuffer-20210209.ebuild
31 @@ -0,0 +1,70 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools
38 +
39 +DESCRIPTION="M(easuring)buffer is a replacement for buffer with additional functionality"
40 +HOMEPAGE="https://www.maier-komor.de/mbuffer.html"
41 +SRC_URI="https://www.maier-komor.de/software/mbuffer/${P}.tgz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
46 +IUSE="debug libressl ssl test"
47 +
48 +REQUIRED_USE="test? ( ssl )"
49 +
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="ssl? (
53 + !libressl? ( dev-libs/openssl:0= )
54 + libressl? ( dev-libs/libressl:0= )
55 + )"
56 +DEPEND="${RDEPEND}"
57 +
58 +PATCHES=(
59 + "${FILESDIR}/${PN}-20180410-sysconfdir.patch"
60 + "${FILESDIR}/${PN}-20200929-find-OBJDUMP.patch"
61 +)
62 +
63 +src_prepare() {
64 + ln -s "${DISTDIR}"/${P}.tgz test.tar #258881
65 +
66 + default
67 +
68 + mv configure.in configure.ac || die
69 +
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 + local myeconfargs=(
75 + $(use_enable ssl md5)
76 + $(use_enable debug)
77 + )
78 + econf "${myeconfargs[@]}"
79 +}
80 +
81 +src_test() {
82 + if has usersandbox ${FEATURES} || has network-sandbox ${FEATURES}; then
83 + ewarn "Some tests may fail with FEATURES=usersandbox or"
84 + ewarn "FEATURES=network-sandbox; Skipping tests because"
85 + ewarn "test suite would hang forever in such environments!"
86 + return 0;
87 + fi
88 +
89 + # Enforce MAKEOPTS=-j1 because src_test() spawns multiple listener
90 + # using same port and src_install may have problems (with /etc folder)
91 + local -x MAKEOPTS=-j1
92 +
93 + default
94 +}
95 +
96 +pkg_postinst() {
97 + if ! has_version "app-arch/mt-st"; then
98 + elog ""
99 + elog "If you want autoloader support you need to install \"app-arch/mt-st\" in addition!"
100 + fi
101 +}