diff options
author | Sam James <sam@gentoo.org> | 2024-07-15 02:54:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-07-15 02:54:12 +0100 |
commit | cba4fea414e39beb8ff2f37735ee64ce9b85c914 (patch) | |
tree | 4fd059e4b86dc6a93d6fe5a90074933d9c8d0acb /sys-block | |
parent | app-editors/nano: add 8.1 (diff) | |
download | gentoo-cba4fea414e39beb8ff2f37735ee64ce9b85c914.tar.gz gentoo-cba4fea414e39beb8ff2f37735ee64ce9b85c914.tar.bz2 gentoo-cba4fea414e39beb8ff2f37735ee64ce9b85c914.zip |
sys-block/mbuffer: add 20240707
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-20240707.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/sys-block/mbuffer/Manifest b/sys-block/mbuffer/Manifest index ea70de0ad676..b16d34f80aba 100644 --- a/sys-block/mbuffer/Manifest +++ b/sys-block/mbuffer/Manifest @@ -1 +1,2 @@ DIST mbuffer-20240107.tgz 151573 BLAKE2B 9fb8d1ead6424e676f6ec0dd591cdd48b53a5b1b4a980e23101ae1e52a0f2a0d07048208f8ae6c45aee66f963b7ed9720b47b16b04495bcba97489a87d8c8d8f SHA512 14773c1193ed5e4a0dfda4ef6bd6ccb0cf104f8c4ae1d22747e52e8247aeb1db64656700f9cf317b13140fb649db889831233f0b8fef0a8463d28713b5882977 +DIST mbuffer-20240707.tgz 151887 BLAKE2B ae03f9a581ef37d7502d60df35ab7026987ca1e4cdd09b7bd0a2e90fa6f3b75aead9a6add7907f18c582ba40b110f24c9430a1e145772996641196de88a1470e SHA512 603877e86df666807c77e6147268d15242acbbc9787fbc9962af97367694a25d95eda1c66197975b858739ce4683e3c36cd1b442f65daae304f25056096319c6 diff --git a/sys-block/mbuffer/mbuffer-20240707.ebuild b/sys-block/mbuffer/mbuffer-20240707.ebuild new file mode 100644 index 000000000000..3d2537b9655f --- /dev/null +++ b/sys-block/mbuffer/mbuffer-20240707.ebuild @@ -0,0 +1,70 @@ +# 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" +S="${WORKDIR}"/${PN}-r${PV} + +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 +} |