diff options
Diffstat (limited to 'app-misc/filebus')
-rw-r--r-- | app-misc/filebus/Manifest | 1 | ||||
-rw-r--r-- | app-misc/filebus/filebus-0.3.5.ebuild | 67 | ||||
-rw-r--r-- | app-misc/filebus/metadata.xml | 11 |
3 files changed, 79 insertions, 0 deletions
diff --git a/app-misc/filebus/Manifest b/app-misc/filebus/Manifest new file mode 100644 index 000000000000..01a5f498c9e0 --- /dev/null +++ b/app-misc/filebus/Manifest @@ -0,0 +1 @@ +DIST filebus-0.3.5.tar.gz 17373 BLAKE2B bd49f86e658bcc8dcdcc7cc0c5ca1a3c354a716137157753417b9b57294c14f058292650092e7e8bdb5563e041c009f36474508fb121e14487075cfc41b223bb SHA512 639b047be8fd3eba9cf97e57d7234f590aeb28e6e321195b435480ce0b334e14c236b888e79d14a824b16505e1c2d2c1fc04dd5d75b6f7ac1c8e9fbae6bf562f diff --git a/app-misc/filebus/filebus-0.3.5.ebuild b/app-misc/filebus/filebus-0.3.5.ebuild new file mode 100644 index 000000000000..71ab1c8994b0 --- /dev/null +++ b/app-misc/filebus/filebus-0.3.5.ebuild @@ -0,0 +1,67 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{10,11,12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 pypi + +DESCRIPTION="A user space multicast named pipe implementation backed by a regular file" +HOMEPAGE="https://github.com/pipebus/filebus" + +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="${DISTUTILS_DEPS} ${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 +} diff --git a/app-misc/filebus/metadata.xml b/app-misc/filebus/metadata.xml new file mode 100644 index 000000000000..65bfaa3b3b1c --- /dev/null +++ b/app-misc/filebus/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">pipebus/filebus</remote-id> + <remote-id type="pypi">filebus</remote-id> + </upstream> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> |