Files
guru/gui-apps/1password/1password-8.10.28.ebuild
Jay Faulkner a5317d8f33 gui-apps/1password-8.10.28: Fix systemd-utils dep
Before this change, this was uninstallable on systemd profiles.

Signed-off-by: Jay Faulkner <jay@jvf.cc>
2024-03-28 15:32:42 -07:00

76 lines
1.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature rpm xdg
DESCRIPTION="The worlds most-loved password manager"
HOMEPAGE="https://1password.com"
SRC_URI="amd64? ( https://downloads.1password.com/linux/rpm/stable/x86_64/${P}.x86_64.rpm )"
S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror strip test bindist"
DEPEND="
x11-misc/xdg-utils
acct-group/1password
"
RDEPEND="
${DEPEND}
app-accessibility/at-spi2-core:2
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/mesa
net-print/cups
sys-apps/dbus
|| (
sys-apps/systemd-utils
sys-apps/systemd
)
sys-libs/zlib
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libdrm
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libxkbcommon
x11-libs/libXrandr
x11-libs/pango
"
src_unpack() {
rpm_unpack ${P}.x86_64.rpm
}
QA_PREBUILT="opt/1Password/*"
src_install() {
cp -ar opt "${ED}" || die "Install failed!"
cp -ar usr "${ED}" || die "Install failed!"
fowners root:1password /opt/1Password/1Password-BrowserSupport || die
fperms 4755 /opt/1Password/chrome-sandbox
fperms 2755 /opt/1Password/1Password-BrowserSupport
dosym -r /opt/1Password/1password /usr/bin/1password
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "cli support" app-misc/1password-cli
optfeature "policykit support" sys-auth/polkit
}