diff options
author | Matt Turner <mattst88@gentoo.org> | 2022-06-21 13:31:39 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-06-21 13:40:27 -0400 |
commit | 31d1f32ade6a3b11378453363b19dccaecb54890 (patch) | |
tree | 3e2097c00f6d22bcafde78f3ed09c6942cd0b936 /sys-block/mbuffer/mbuffer-20220418.ebuild | |
parent | sys-apps/x86info: Version bump to 1.31 (diff) | |
download | gentoo-31d1f32ade6a3b11378453363b19dccaecb54890.tar.gz gentoo-31d1f32ade6a3b11378453363b19dccaecb54890.tar.bz2 gentoo-31d1f32ade6a3b11378453363b19dccaecb54890.zip |
sys-block/mbuffer: Version bump to 20220418
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'sys-block/mbuffer/mbuffer-20220418.ebuild')
-rw-r--r-- | sys-block/mbuffer/mbuffer-20220418.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-block/mbuffer/mbuffer-20220418.ebuild b/sys-block/mbuffer/mbuffer-20220418.ebuild new file mode 100644 index 000000000000..1fb048d9a999 --- /dev/null +++ b/sys-block/mbuffer/mbuffer-20220418.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2022 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 ~x86" +IUSE="debug ssl test" + +REQUIRED_USE="test? ( ssl )" + +RESTRICT="!test? ( test )" + +RDEPEND="ssl? ( + dev-libs/openssl:0= + )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-20180410-sysconfdir.patch" + "${FILESDIR}/${PN}-20200929-find-OBJDUMP.patch" +) + +src_prepare() { + ln -s "${DISTDIR}"/${P}.tgz test.tar #258881 + + default + + 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 +} |