diff options
author | Sam James <sam@gentoo.org> | 2024-01-14 03:32:57 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-01-14 03:32:57 +0000 |
commit | 7e16a9c55528afe68515d9bdb521d3c241a465e4 (patch) | |
tree | 71e15fef8ff8996c6f6882d5dd2c2411ccf8c13c /sys-block | |
parent | sys-process/htop: add 3.3.0 (diff) | |
download | gentoo-7e16a9c55528afe68515d9bdb521d3c241a465e4.tar.gz gentoo-7e16a9c55528afe68515d9bdb521d3c241a465e4.tar.bz2 gentoo-7e16a9c55528afe68515d9bdb521d3c241a465e4.zip |
sys-block/mbuffer: add 20240107
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/mbuffer/Manifest | 1 | ||||
-rw-r--r-- | sys-block/mbuffer/mbuffer-20240107.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/sys-block/mbuffer/Manifest b/sys-block/mbuffer/Manifest index 2b789aa3152a..51ede79dad33 100644 --- a/sys-block/mbuffer/Manifest +++ b/sys-block/mbuffer/Manifest @@ -1,3 +1,4 @@ DIST mbuffer-20220418.tgz 149535 BLAKE2B 8c7eacae791bef8ac6cd2ce57e6a5fbda7c7c233c37ccc504ad6584385df4b4df49aaf67f2d2dc7a3ee9f7e1431ba511847646a4c92616c1a4af5ac094e029e9 SHA512 aad7f764c82e3bdd4ee3fc5ac8174e716fd44cdb0418f1994d3f506d2e58264a13e15596bc8e78e9e8bb2d181875294448085bab122a2a31356d4336bb8b54a4 DIST mbuffer-20230301.tgz 151060 BLAKE2B 45794ac6920c159fe96fccafadbaffe353e4866d8336cfe83601044b53f2289171d3fd9016cb34cf955880e7dfd2c49fe0cc99ffb3e80b7ac6ef1f6bd4cf312a SHA512 efed6e9cbd4fbb255c5f71514badd38e4fb254bf0c0f8a902636c18295f6fb640a4076d015444d1ab5e17edb3a12ecc2b3da2038f1ac1a57c44b76203bf7d66e DIST mbuffer-20231216.tgz 151119 BLAKE2B d077ecc77f9d772a11a11f83df1f0f5ad91b06b8845d2ab1b075649ab2efdba3d9cfa4c7053142d6b8fb3b31d63b02052d810b4e5f817d33fa6e79c858ae834b SHA512 24cd600127a1b06ed13600b050b45d2563beacaf97b3b78c6d70bf735b084209a048ae732aceb18561c0d01c72afef383d3245820991fa3410a5193e7eb493fe +DIST mbuffer-20240107.tgz 151573 BLAKE2B 9fb8d1ead6424e676f6ec0dd591cdd48b53a5b1b4a980e23101ae1e52a0f2a0d07048208f8ae6c45aee66f963b7ed9720b47b16b04495bcba97489a87d8c8d8f SHA512 14773c1193ed5e4a0dfda4ef6bd6ccb0cf104f8c4ae1d22747e52e8247aeb1db64656700f9cf317b13140fb649db889831233f0b8fef0a8463d28713b5882977 diff --git a/sys-block/mbuffer/mbuffer-20240107.ebuild b/sys-block/mbuffer/mbuffer-20240107.ebuild new file mode 100644 index 000000000000..298bae62a6b1 --- /dev/null +++ b/sys-block/mbuffer/mbuffer-20240107.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="M(easuring)buffer is a replacement for buffer with additional functionality" +HOMEPAGE="https://www.maier-komor.de/mbuffer.html" +SRC_URI="https://www.maier-komor.de/software/mbuffer/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug ssl test" +REQUIRED_USE="test? ( ssl )" +RESTRICT="!test? ( test )" + +RDEPEND=" + ssl? ( + dev-libs/openssl + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-20180410-sysconfdir.patch" + "${FILESDIR}/${PN}-20200929-find-OBJDUMP.patch" + "${FILESDIR}/${PN}-20231216-autoconf-warning.patch" +) + +src_prepare() { + default + + ln -s "${DISTDIR}"/${P}.tgz test.tar # bug #258881 + + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable ssl md5) + $(use_enable debug) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + if has usersandbox ${FEATURES} || has network-sandbox ${FEATURES}; then + ewarn "Some tests may fail with FEATURES=usersandbox or" + ewarn "FEATURES=network-sandbox; Skipping tests because" + ewarn "test suite would hang forever in such environments!" + return 0; + fi + + # Enforce MAKEOPTS=-j1 because src_test() spawns multiple listener + # using same port and src_install may have problems (with /etc folder) + local -x MAKEOPTS=-j1 + + default +} + +pkg_postinst() { + if ! has_version "app-arch/mt-st"; then + elog "" + elog "If you want autoloader support you need to install \"app-arch/mt-st\" in addition!" + fi +} |