blob: ac06d8b4cad46e847b99de9271e9679aa3a19600 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 go-module optfeature systemd
BOOTSTRAPVER="4.1.1"
DESCRIPTION="The central authentication and account service for sr.ht"
HOMEPAGE="https://git.sr.ht/~sircmpwn/meta.sr.ht"
SRC_URI="http://git.sr.ht/~sircmpwn/meta.sr.ht/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="network-sandbox"
RDEPEND=""
DEPEND="${RDEPEND}
acct-user/srht
acct-group/srht
dev-db/redis
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/bcrypt[${PYTHON_USEDEP}]
dev-python/scmsrht[${PYTHON_USEDEP}]
dev-python/qrcode[${PYTHON_USEDEP}]
dev-python/redis-py[${PYTHON_USEDEP}]
dev-python/python-sshpubkeys[${PYTHON_USEDEP}]
dev-python/zxcvbn[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
"
BDEPEND="net-libs/nodejs
dev-lang/sassc
dev-lang/go
"
S="${WORKDIR}/meta.sr.ht-${PV}"
src_unpack() {
default_src_unpack
}
src_compile() {
distutils-r1_src_compile
cd "${S}/api" || die
ego build -o metasrht-api
}
src_install() {
distutils-r1_src_install
dobin "${S}/api/metasrht-api"
dodir "/etc/sr.ht"
insinto "/etc/sr.ht/"
newins "${S}/config.example.ini" "config.ini"
}
plg_postinst() {
optfeature "billing support" "dev-python/stripe dev-python/weasyprint"
}
|