blob: 5cdd875bc47a4ac4549662ceea2519600f355f1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
MY_PN="${PN}.py"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Emulate group accounts on Mastodon/Pleroma"
HOMEPAGE="
https://pypi.org/project/fedigroup.py/
https://github.com/uanet-exception/fedigroup.py
"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
acct-user/fedigroup
$(python_gen_cond_dep '
dev-python/mastodon-py[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
')
"
src_install() {
distutils-r1_src_install
newinitd "${FILESDIR}"/fedigroup.initd ${PN}
newconfd "${FILESDIR}"/fedigroup.confd ${PN}
diropts --owner fedigroup --group fedigroup
keepdir /var/lib/fedigroup
}
|