summaryrefslogtreecommitdiff
path: root/www-client/chromium-common/chromium-common-2.ebuild
blob: a16de5c60b248a53c88aa850bc731519b017a402 (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
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Common configuration files for Chromium slots"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Chromium/"
S="${WORKDIR}"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 arm64 ~ppc64 ~riscv"
RESTRICT="test" # There is no code, only Zuul.

# Non-slotted Chromium will conflict
RDEPEND="!www-client/chromium:0"

src_unpack() {
	:
}

src_configure() {
	:
}

src_compile() {
	sed -e "s:/usr/lib/:/usr/$(get_libdir)/:g" "${FILESDIR}/chromium-launcher.sh" \
		> chromium-launcher.sh || die
}

src_install() {
	exeinto /usr/libexec/chromium
	doexe chromium-launcher.sh

	insinto /etc/chromium
	newins "${FILESDIR}/chromium.default" default
}