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: Fri, 15 Oct 2021 14:33:20
Message-Id: 1634308385.838fa825ce2377abd6f16235b236b4ff550169c0.whissi@gentoo
1 commit: 838fa825ce2377abd6f16235b236b4ff550169c0
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 15 14:30:36 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 15 14:33:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=838fa825
7
8 sys-block/mbuffer: bump to v20211004
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-block/mbuffer/Manifest | 1 +
14 sys-block/mbuffer/mbuffer-20211004.ebuild | 69 +++++++++++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/sys-block/mbuffer/Manifest b/sys-block/mbuffer/Manifest
18 index 5f599179441..891af613e64 100644
19 --- a/sys-block/mbuffer/Manifest
20 +++ b/sys-block/mbuffer/Manifest
21 @@ -1,2 +1,3 @@
22 DIST mbuffer-20210328.tgz 148009 BLAKE2B b369fdae908cfa239e70d092f512f1613215f1a38e5f2dba9403edeb5579fe14a099f0b9950572c1e294c7d5938bd5a363a1cc3239b4553ecd24c6b805fbfe27 SHA512 69f7cac7fe49a86944092d642c6138455ba95da8e6d00abd41b37d126a9f03c3252e69795c5fb5bf8e56d0ce1461bde6b51f48c5eb7073ee49ee4e6df83d834d
23 DIST mbuffer-20210829.tgz 148786 BLAKE2B af4d47eab143861a10fa5e9f86cc0066594b675baf37dd63ba71dffb4a22a4bd057ea4a03d50ba210af8c1021dad258a33d46525a11c7cc2ad0dd852839f3b9a SHA512 67b7398c27fb4539d36437b5224a7305216c32af140d5dd9d4af734227bb4bb4c9e8c577e05e315534c5e1cf65a87a9a7a32a212cc4faef17e3c387b3895ef47
24 +DIST mbuffer-20211004.tgz 149261 BLAKE2B 81427f9684266de53a7e76e33378ff94c9af08768d2105ee1481399d88180c3ef358c21c99716d82ef965ba809e3814029a3c9f844c987ab812d8e5624ba8e67 SHA512 d5914b5c59ec1fee92af6915d8abebc71459461a2d8acd0d93060f3799b5a4104f08d29349b3500553d532a279804d22a40ef0ff001c45a2bdb72d3966c2d7a8
25
26 diff --git a/sys-block/mbuffer/mbuffer-20211004.ebuild b/sys-block/mbuffer/mbuffer-20211004.ebuild
27 new file mode 100644
28 index 00000000000..b5df3c74c1a
29 --- /dev/null
30 +++ b/sys-block/mbuffer/mbuffer-20211004.ebuild
31 @@ -0,0 +1,69 @@
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 ssl test"
47 +
48 +REQUIRED_USE="test? ( ssl )"
49 +
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="ssl? (
53 + dev-libs/openssl:0=
54 + )"
55 +DEPEND="${RDEPEND}"
56 +
57 +PATCHES=(
58 + "${FILESDIR}/${PN}-20180410-sysconfdir.patch"
59 + "${FILESDIR}/${PN}-20200929-find-OBJDUMP.patch"
60 +)
61 +
62 +src_prepare() {
63 + ln -s "${DISTDIR}"/${P}.tgz test.tar #258881
64 +
65 + default
66 +
67 + mv configure.in configure.ac || die
68 +
69 + eautoreconf
70 +}
71 +
72 +src_configure() {
73 + local myeconfargs=(
74 + $(use_enable ssl md5)
75 + $(use_enable debug)
76 + )
77 + econf "${myeconfargs[@]}"
78 +}
79 +
80 +src_test() {
81 + if has usersandbox ${FEATURES} || has network-sandbox ${FEATURES}; then
82 + ewarn "Some tests may fail with FEATURES=usersandbox or"
83 + ewarn "FEATURES=network-sandbox; Skipping tests because"
84 + ewarn "test suite would hang forever in such environments!"
85 + return 0;
86 + fi
87 +
88 + # Enforce MAKEOPTS=-j1 because src_test() spawns multiple listener
89 + # using same port and src_install may have problems (with /etc folder)
90 + local -x MAKEOPTS=-j1
91 +
92 + default
93 +}
94 +
95 +pkg_postinst() {
96 + if ! has_version "app-arch/mt-st"; then
97 + elog ""
98 + elog "If you want autoloader support you need to install \"app-arch/mt-st\" in addition!"
99 + fi
100 +}