# 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 }