1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="KeePassXC - KeePass Cross-platform Community Edition"
9 HOMEPAGE="https://keepassxc.org"
11 if [[ "${PV}" != 9999 ]] ; then
12 if [[ "${PV}" == *_beta* ]] ; then
13 SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
14 S="${WORKDIR}/${P/_/-}"
16 #SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 SRC_URI="https://github.com/keepassxreboot/keepassxc/releases/download/${PV}/${P}-src.tar.xz"
22 EGIT_REPO_URI="https://github.com/keepassxreboot/${PN}"
25 LICENSE="LGPL-2.1 GPL-2 GPL-3"
27 IUSE="autotype browser ccache debug keeshare +network test yubikey"
32 >=dev-libs/libsodium-1.0.12:=
49 keeshare? ( dev-libs/quazip )
50 yubikey? ( sys-auth/ykpers )
55 dev-qt/linguist-tools:5
59 ccache? ( dev-util/ccache )
61 # Not a runtime dependency but still needed (see bug #667092)
66 RESTRICT="!test? ( test )"
69 "${FILESDIR}/${PN}-2.5.2-ccache_switch.patch"
74 sed -e "/^find_package(Qt5Test/d" -i CMakeLists.txt || die
81 -DWITH_CCACHE="$(usex ccache)"
83 -DWITH_TESTS="$(usex test)"
84 -DWITH_XC_AUTOTYPE="$(usex autotype)"
85 -DWITH_XC_BROWSER="$(usex browser)"
86 -DWITH_XC_FDOSECRETS=ON
87 -DWITH_XC_KEESHARE="$(usex keeshare)"
88 -DWITH_XC_NETWORKING="$(usex network)"
90 -DWITH_XC_UPDATECHECK=OFF
91 -DWITH_XC_YUBIKEY="$(usex yubikey)"
93 if [[ "${PV}" == *_beta* ]] ; then
94 mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" )