diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-11-18 20:21:25 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-11-18 20:23:09 -0800 |
commit | 042b4f4c193c43e79bfccb202a07faa8f0fe56c6 (patch) | |
tree | 75f5c37ef1011a0adc40fa194545b6517077db29 /app-misc/filebus/filebus-0.3.4.ebuild | |
parent | kde-apps/ark: add test dep on dev-libs/libzip (diff) | |
download | gentoo-042b4f4c193c43e79bfccb202a07faa8f0fe56c6.tar.gz gentoo-042b4f4c193c43e79bfccb202a07faa8f0fe56c6.tar.bz2 gentoo-042b4f4c193c43e79bfccb202a07faa8f0fe56c6.zip |
app-misc/filebus: Bump to version 0.3.4
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-misc/filebus/filebus-0.3.4.ebuild')
-rw-r--r-- | app-misc/filebus/filebus-0.3.4.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app-misc/filebus/filebus-0.3.4.ebuild b/app-misc/filebus/filebus-0.3.4.ebuild new file mode 100644 index 000000000000..aa9148dd2099 --- /dev/null +++ b/app-misc/filebus/filebus-0.3.4.ebuild @@ -0,0 +1,68 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="A user space multicast named pipe implementation backed by a regular file" +HOMEPAGE="https://github.com/pipebus/filebus" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +KEYWORDS="~amd64" +SLOT="0" +IUSE="+inotify python test" +RESTRICT="!test? ( test )" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RDEPEND=" + python? ( + ${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + inotify? ( dev-python/watchdog[${PYTHON_USEDEP}] ) + )" +BDEPEND="${RDEPEND}" + +src_prepare() { + default + if use python; then + distutils-r1_src_prepare + fi +} + +src_compile() { + if use python; then + distutils-r1_src_compile + fi +} + +src_test() { + "${BASH}" ./lib/bash/filebus-test.bash test || die + + if use python; then + distutils-r1_src_test + fi +} + +python_test() { + python test/test_filebus.py || die "tests failed for ${EPYTHON}" +} + +src_install() { + if use python; then + distutils-r1_src_install + else + insinto /usr/libexec/filebus + doins lib/bash/*.bash + cat <<-EOF > "${T}/filebus" + #!/bin/sh + exec bash "${EPREFIX}/usr/libexec/filebus/filebus.bash" "\$@" + EOF + dobin "${T}/filebus" + dosym filebus /usr/bin/pipebus + fi +} |