summaryrefslogtreecommitdiff
path: root/dev-db/powa-web/powa-web-5.1.5.ebuild
blob: d80711321a298ddf88d8d0c947d23edefa969cca (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
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{13..14} )

inherit distutils-r1 systemd

DESCRIPTION="PostgreSQL Workload Analyzer user interface"
HOMEPAGE="https://github.com/powa-team/powa-web"
SRC_URI="https://github.com/powa-team/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="POSTGRESQL"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	acct-group/powa
	acct-user/powa
	dev-python/psycopg:2[${PYTHON_USEDEP}]
	dev-python/tornado[${PYTHON_USEDEP}]
"

python_install_all() {
	distutils-r1_python_install_all

	insinto /etc
	newins powa-web.conf-dist powa-web.conf

	newinitd "${FILESDIR}/powa-web.initd" powa-web
	systemd_dounit "${FILESDIR}/powa-web.service"
}