aboutsummaryrefslogtreecommitdiff
blob: c490eae742bea046d9e7dbd2d1cee0f7cf4fb956 (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
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=flit
inherit distutils-r1 pypi systemd

DESCRIPTION="Configurable reposter from Mastodon-compatible Fediverse servers"
HOMEPAGE="
	https://pypi.org/project/mastoposter/
	https://github.com/hatkidchan/mastoposter
"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/beautifulsoup4[${PYTHON_USEDEP}]
	dev-python/emoji[${PYTHON_USEDEP}]
	dev-python/httpx[${PYTHON_USEDEP}]
	dev-python/jinja[${PYTHON_USEDEP}]
	dev-python/websockets[${PYTHON_USEDEP}]
"

src_install() {
	distutils-r1_src_install

	systemd_dounit "${FILESDIR}"/mastoposter.service
	newinitd "${FILESDIR}"/mastoposter.initd mastoposter
	newconfd "${FILESDIR}"/mastoposter.confd mastoposter

	insinto /etc/mastoposter
	insopts --mode 600
	doins config.ini
}