ceres-ebuilds/www-client/zen-browser/zen-browser-9999.ebuild
2025-08-20 13:59:17 +01:00

45 lines
No EOL
968 B
Bash

# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EPYTHON=/usr/bin/python
PYTHON_COMPAT=( python3_{10..13} )
inherit git-r3
RESTRICT=network-sandbox
DESCRIPTION="Welcome to a calmer internet "
HOMEPAGE="https://zen-browser.app"
EGIT_REPO_URI="https://github.com/zen-browser/desktop.git"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
DEPEND=""
RDEPEND=${DEPEND}
BDEPEND="dev-vcs/git
net-misc/curl
dev-lang/python
dev-python/pip
net-libs/nodejs[npm]
dev-util/cbindgen
dev-util/bindgen"
src_prepare() {
git config --global user.email "rr151panda@outlook.com"
git config --global user.name "Paddy Milner"
npm i || die
npm run init || die
python ./scripts/update_en_US_packs.py || die
npm run bootstrap || die
eapply_user
}
src_compile() {
npm run build --with-libclang-path="$(llvm-config --libdir)" || die
}