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