gentoo-ebuilds/app-admin/qtpass/qtpass-1.4.0-r2.ebuild
Vladimir Pavljuchenkov 933307f7b8
app-admin/qtpass: fix profiles issue for Qt6
Co-authored-by: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/39918
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-01-01 11:41:00 +01:00

69 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop qmake-utils
DESCRIPTION="Multi-platform GUI for pass, the standard unix password manager"
HOMEPAGE="https://qtpass.org https://github.com/IJHack/qtpass"
SRC_URI="https://github.com/IJHack/qtpass/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/QtPass-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
|| (
app-admin/pass
app-admin/gopass
)
dev-qt/qtbase:6[gui,network,widgets]
net-misc/x11-ssh-askpass
"
DEPEND="${RDEPEND}
dev-qt/qtsvg:6
"
BDEPEND="dev-qt/qttools:6[linguist]"
DOCS=( {CHANGELOG,CONTRIBUTING,FAQ,README}.md )
PATCHES=(
"${FILESDIR}"/${P}-qt-6.8-buildfix.patch
"${FILESDIR}"/${P}-qt-6.8-profiles.patch
)
src_prepare() {
default
if ! use test ; then
sed -i '/SUBDIRS += src /s/tests //' \
qtpass.pro || die "sed for qtpass.pro failed"
fi
}
src_configure() {
eqmake6 PREFIX="${EPREFIX}"/usr
}
src_test() {
local -x QT_QPA_PLATFORM=offscreen
default
}
src_install() {
emake INSTALL_ROOT="${D}" install
einstalldocs
insinto /usr/share/qtpass/translations
doins src/.qm/*.qm
doman qtpass.1
domenu qtpass.desktop
newicon artwork/icon.png qtpass-icon.png
insinto /usr/share/metainfo
doins qtpass.appdata.xml
}