summaryrefslogtreecommitdiff
path: root/net-im/mastoposter/mastoposter-0.2.ebuild
blob: 536b570e476bfff2b9d4a825bda1612faac485cd (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
42
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..14} )
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="
	acct-user/mastoposter
	dev-python/beautifulsoup4[${PYTHON_USEDEP}]
	dev-python/emoji[${PYTHON_USEDEP}]
	dev-python/httpx[${PYTHON_USEDEP}]
	dev-python/jinja2[${PYTHON_USEDEP}]
	dev-python/lxml[${PYTHON_USEDEP}]
	dev-python/websockets[${PYTHON_USEDEP}]
"

distutils_enable_tests pytest

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 --owner=${PN} --group=${PN}
	doins config.ini
}