diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-05-04 00:51:27 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-05-04 00:52:29 +0200 |
commit | abb59e1418a0001e2961cd584850ca7172741085 (patch) | |
tree | 71c4e7e1bf31bb3d15de7e17273d887134c0e897 /sys-block/mbuffer/mbuffer-20180410.ebuild | |
parent | profiles.desc: Promote default/linux/arm64/17.0/systemd from exp to dev (diff) | |
download | gentoo-abb59e1418a0001e2961cd584850ca7172741085.tar.gz gentoo-abb59e1418a0001e2961cd584850ca7172741085.tar.bz2 gentoo-abb59e1418a0001e2961cd584850ca7172741085.zip |
sys-block/mbuffer: Bump to v20180410
Package-Manager: Portage-2.3.33, Repoman-2.3.9
Diffstat (limited to 'sys-block/mbuffer/mbuffer-20180410.ebuild')
-rw-r--r-- | sys-block/mbuffer/mbuffer-20180410.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sys-block/mbuffer/mbuffer-20180410.ebuild b/sys-block/mbuffer/mbuffer-20180410.ebuild new file mode 100644 index 000000000000..3b1fd2aa6a99 --- /dev/null +++ b/sys-block/mbuffer/mbuffer-20180410.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="M(easuring)buffer is a replacement for buffer with additional functionality" +HOMEPAGE="http://www.maier-komor.de/mbuffer.html" +SRC_URI="http://www.maier-komor.de/software/mbuffer/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug ssl test" + +RDEPEND="ssl? ( dev-libs/openssl:0= )" +DEPEND="${RDEPEND} + test? ( dev-libs/openssl:0 )" + +REQUIRED_USE="test? ( ssl )" + +PATCHES=( + "${FILESDIR}/${PN}-20180410-sysconfdir.patch" +) + +src_prepare() { + ln -s "${DISTDIR}"/${P}.tgz test.tar #258881 + + # Enforce MAKEOPTS=-j1 because src_test() spawns multiple listener + # using same port and src_install may have problems (with /etc folder) + export MAKEOPTS=-j1 + + 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 + + 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 +} |