Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/filebus/
Date: Mon, 07 Jun 2021 07:17:22
Message-Id: 1623050234.f426020abb94df394a7b1680ea445f99e2f38d1b.zmedico@gentoo
1 commit: f426020abb94df394a7b1680ea445f99e2f38d1b
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 7 07:03:01 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 7 07:17:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f426020a
7
8 app-misc/filebus: Bump to version 0.3.0
9
10 Package-Manager: Portage-3.0.19, Repoman-3.0.3
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-misc/filebus/Manifest | 1 +
14 app-misc/filebus/filebus-0.3.0.ebuild | 67 +++++++++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/app-misc/filebus/Manifest b/app-misc/filebus/Manifest
18 index deea6326c41..ba72570b6db 100644
19 --- a/app-misc/filebus/Manifest
20 +++ b/app-misc/filebus/Manifest
21 @@ -1 +1,2 @@
22 DIST filebus-0.2.0.tar.gz 7895 BLAKE2B d113ab7e57ee24371dc9adbeb4767f533007d36cee2a3f55ee7bbcf13c31980355cfee2db748ef6c485bad3cb8c68ba1c31f9829b0c6365fa3b63c4899fb8b02 SHA512 fc7083444a67e36778d15a8af38487024ab661d32b891cfc735fd31cce2ddecfff3ef63c591106d97250373dac9aeef8dd0e8cf0ec260b2d67031018fe66249f
23 +DIST filebus-0.3.0.tar.gz 16921 BLAKE2B 60ec7eb3fb584c053f00301898b914ba9034e3aaa79a79eecdc31f8e1abd1db5c473486e02761adee537faca6725916cf327e38376bdbbeac2c8548be427089b SHA512 a7dd4cbe96e6e691794ea21b23f79caee518855235c1ee35f857fe2938f437095a9199eb9bf309087cef523b6dfa963f3635d94e9b7ece15bbe1b4284fca793c
24
25 diff --git a/app-misc/filebus/filebus-0.3.0.ebuild b/app-misc/filebus/filebus-0.3.0.ebuild
26 new file mode 100644
27 index 00000000000..7df930651d1
28 --- /dev/null
29 +++ b/app-misc/filebus/filebus-0.3.0.ebuild
30 @@ -0,0 +1,67 @@
31 +# Copyright 2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +DISTUTILS_OPTIONAL=1
36 +DISTUTILS_USE_SETUPTOOLS=manual
37 +PYTHON_COMPAT=( python3_{7,8,9} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="A user space multicast named pipe implementation backed by a regular file"
42 +HOMEPAGE="https://github.com/zmedico/filebus"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +KEYWORDS="~amd64"
47 +SLOT="0"
48 +IUSE="+inotify python test"
49 +RESTRICT="!test? ( test )"
50 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
51 +RDEPEND="
52 + python? (
53 + ${PYTHON_DEPS}
54 + dev-python/setuptools[${PYTHON_USEDEP}]
55 + dev-python/filelock[${PYTHON_USEDEP}]
56 + inotify? ( dev-python/watchdog[${PYTHON_USEDEP}] )
57 + )"
58 +BDEPEND="${RDEPEND}"
59 +
60 +src_prepare() {
61 + default
62 + if use python; then
63 + distutils-r1_src_prepare
64 + fi
65 +}
66 +
67 +src_compile() {
68 + if use python; then
69 + distutils-r1_src_compile
70 + fi
71 +}
72 +
73 +src_test() {
74 + "${BASH}" ./lib/bash/filebus-test.bash test || die
75 +
76 + if use python; then
77 + distutils-r1_src_test
78 + fi
79 +}
80 +
81 +python_test() {
82 + python test/test_filebus.py || die "tests failed for ${EPYTHON}"
83 +}
84 +
85 +src_install() {
86 + if use python; then
87 + distutils-r1_src_install
88 + else
89 + insinto /usr/libexec/filebus
90 + doins lib/bash/*.bash
91 + cat <<-EOF > "${T}/filebus"
92 + #!/bin/sh
93 + exec bash "${EPREFIX}/usr/libexec/filebus/filebus.bash" "\$@"
94 + EOF
95 + dobin "${T}/filebus"
96 + fi
97 +}