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: Wed, 09 Jun 2021 06:09:25
Message-Id: 1623218957.a13401f8653267f6bc6607aeaab3a92987f52867.zmedico@gentoo
1 commit: a13401f8653267f6bc6607aeaab3a92987f52867
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 9 06:06:39 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 9 06:09:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a13401f8
7
8 app-misc/filebus: Bump to version 0.3.2
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.2.ebuild | 68 +++++++++++++++++++++++++++++++++++
15 app-misc/filebus/metadata.xml | 2 +-
16 3 files changed, 70 insertions(+), 1 deletion(-)
17
18 diff --git a/app-misc/filebus/Manifest b/app-misc/filebus/Manifest
19 index 11546b7cb6b..f3d9ec635d0 100644
20 --- a/app-misc/filebus/Manifest
21 +++ b/app-misc/filebus/Manifest
22 @@ -1 +1,2 @@
23 DIST filebus-0.3.1.tar.gz 16926 BLAKE2B 87eea36a58895a89a70e236f505af09efabf37ce04ce58c713dc99222e415f0ecd9a55fc921a9b6336f4dea04c5e3860252425e257706f0e37be3d43d76668c0 SHA512 e0d4e30f478c9ae95b520122b5aa70bc792d7caad9f9dbde6a72dec9eff314ca884b0291ed9ad662998d1e0e91679dc96ec749b33f55188fab61e7b2b5baa792
24 +DIST filebus-0.3.2.tar.gz 17310 BLAKE2B 0f30aabcd316f52ea12d12b136befe643085dff5e283f65edf2a459b127cd3e2d48c472ae0dd8f302bb7211e4da5541a6fc7ac274573631ab03fc246bc8b566f SHA512 88ce3cd2d8aec7afd30d16315a6a8a37dee1b21d882571ef87c7dca56251e737d6500a5fad0124c62aea6383aae5ec30abd8abf86c2fac5d582f8fe96049eaa6
25
26 diff --git a/app-misc/filebus/filebus-0.3.2.ebuild b/app-misc/filebus/filebus-0.3.2.ebuild
27 new file mode 100644
28 index 00000000000..cfa1df91be4
29 --- /dev/null
30 +++ b/app-misc/filebus/filebus-0.3.2.ebuild
31 @@ -0,0 +1,68 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +DISTUTILS_OPTIONAL=1
37 +DISTUTILS_USE_SETUPTOOLS=manual
38 +PYTHON_COMPAT=( python3_{7,8,9} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="A user space multicast named pipe implementation backed by a regular file"
43 +HOMEPAGE="https://github.com/pipebus/filebus"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +KEYWORDS="~amd64"
48 +SLOT="0"
49 +IUSE="+inotify python test"
50 +RESTRICT="!test? ( test )"
51 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
52 +RDEPEND="
53 + python? (
54 + ${PYTHON_DEPS}
55 + dev-python/setuptools[${PYTHON_USEDEP}]
56 + dev-python/filelock[${PYTHON_USEDEP}]
57 + inotify? ( dev-python/watchdog[${PYTHON_USEDEP}] )
58 + )"
59 +BDEPEND="${RDEPEND}"
60 +
61 +src_prepare() {
62 + default
63 + if use python; then
64 + distutils-r1_src_prepare
65 + fi
66 +}
67 +
68 +src_compile() {
69 + if use python; then
70 + distutils-r1_src_compile
71 + fi
72 +}
73 +
74 +src_test() {
75 + "${BASH}" ./lib/bash/filebus-test.bash test || die
76 +
77 + if use python; then
78 + distutils-r1_src_test
79 + fi
80 +}
81 +
82 +python_test() {
83 + python test/test_filebus.py || die "tests failed for ${EPYTHON}"
84 +}
85 +
86 +src_install() {
87 + if use python; then
88 + distutils-r1_src_install
89 + else
90 + insinto /usr/libexec/filebus
91 + doins lib/bash/*.bash
92 + cat <<-EOF > "${T}/filebus"
93 + #!/bin/sh
94 + exec bash "${EPREFIX}/usr/libexec/filebus/filebus.bash" "\$@"
95 + EOF
96 + dobin "${T}/filebus"
97 + dosym filebus /usr/bin/pipebus
98 + fi
99 +}
100
101 diff --git a/app-misc/filebus/metadata.xml b/app-misc/filebus/metadata.xml
102 index e83dcf85167..063cf040c7b 100644
103 --- a/app-misc/filebus/metadata.xml
104 +++ b/app-misc/filebus/metadata.xml
105 @@ -2,7 +2,7 @@
106 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
107 <pkgmetadata>
108 <upstream>
109 - <remote-id type="github">zmedico/filebus</remote-id>
110 + <remote-id type="github">pipebus/filebus</remote-id>
111 <remote-id type="pypi">filebus</remote-id>
112 </upstream>
113 <maintainer type="person">