blob: 26924ae6ee868feff65635baa0e35eeeee4d215c (
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
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit webapp
DESCRIPTION="Privacy-respecting metasearch engine"
HOMEPAGE="https://searx.github.io/searx/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/iv-org/${PN}.git"
else
SRC_URI="https://github.com/iv-org/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="AGPL-3"
SLOT="0"
IUSE="+postgres"
DEPEND="postgres? ( dev-db/postgresql )
dev-db/sqlite
=dev-lang/crystal-1.2.2*
dev-libs/gmp
dev-libs/libevent
dev-libs/libpcre
dev-libs/libxml2
dev-libs/libyaml
dev-libs/openssl
gnome-base/librsvg
sys-libs/readline
sys-libs/zlib"
RDEPEND="${DEPEND}"
BDEPEND=""
pkg_setup() {
webapp_pkg_setup
}
src_install() {
webapp_src_preinst
2nsinto "${MY_HTDOCSDIR}"
doins -r .
shards install --production
crystal build "${MY_HTDOCSDIR}"/src/invidious.cr --release
webapp_src_install
}
|