1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils gnome2-utils xdg-utils
8 DESCRIPTION="KeePassXC - KeePass Cross-platform Community Edition"
9 HOMEPAGE="https://keepassxc.org"
11 if [[ "${PV}" != 9999 ]] ; then
12 #SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV}.tar.gz -> ${P}.tar.gz"
13 SRC_URI="https://github.com/keepassxreboot/keepassxc/releases/download/${PV}/${P}-src.tar.xz"
14 KEYWORDS="~amd64 ~x86"
17 EGIT_REPO_URI="https://github.com/keepassxreboot/${PN}"
20 LICENSE="LGPL-2.1 GPL-2 GPL-3"
22 IUSE="autotype browser debug network test yubikey"
39 browser? ( >=dev-libs/libsodium-1.0.12 )
40 yubikey? ( sys-auth/ykpers )
45 dev-qt/linguist-tools:5
52 sed -e "/^find_package(Qt5Test/d" -i CMakeLists.txt || die
54 cmake-utils_src_prepare
60 -DWITH_TESTS="$(usex test)"
61 -DWITH_XC_AUTOTYPE="$(usex autotype)"
62 -DWITH_XC_BROWSER="$(usex browser)"
64 -DWITH_XC_NETWORKING="$(usex network)"
66 -DWITH_XC_YUBIKEY="$(usex yubikey)"
68 cmake-utils_src_configure
72 gnome2_icon_cache_update
73 xdg_desktop_database_update
74 xdg_mimeinfo_database_update
78 gnome2_icon_cache_update
79 xdg_desktop_database_update
80 xdg_mimeinfo_database_update