Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/keepassxc/
Date: Fri, 28 Jan 2022 14:57:02
Message-Id: 1643381810.63f24afd03d1d57d60231717b4fcde28fa00a32e.polynomial-c@gentoo
1 commit: 63f24afd03d1d57d60231717b4fcde28fa00a32e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 14:47:05 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 14:56:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63f24afd
7
8 app-admin/keepassxc: Add 2.6.x live ebuild
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 app-admin/keepassxc/keepassxc-2.6.9999.ebuild | 99 +++++++++++++++++++++++++++
13 1 file changed, 99 insertions(+)
14
15 diff --git a/app-admin/keepassxc/keepassxc-2.6.9999.ebuild b/app-admin/keepassxc/keepassxc-2.6.9999.ebuild
16 new file mode 100644
17 index 000000000000..e2016b26a2c8
18 --- /dev/null
19 +++ b/app-admin/keepassxc/keepassxc-2.6.9999.ebuild
20 @@ -0,0 +1,99 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit cmake flag-o-matic xdg
27 +
28 +DESCRIPTION="KeePassXC - KeePass Cross-platform Community Edition"
29 +HOMEPAGE="https://keepassxc.org"
30 +
31 +if [[ "${PV}" != *9999 ]] ; then
32 + if [[ "${PV}" == *_beta* ]] ; then
33 + SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
34 + S="${WORKDIR}/${P/_/-}"
35 + else
36 + #SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 + SRC_URI="https://github.com/keepassxreboot/keepassxc/releases/download/${PV}/${P}-src.tar.xz"
38 + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
39 + fi
40 +else
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/keepassxreboot/${PN}"
43 + [[ "${PV}" != 9999 ]] && EGIT_BRANCH="master"
44 +fi
45 +
46 +LICENSE="LGPL-2.1 GPL-2 GPL-3"
47 +SLOT="0"
48 +IUSE="autotype browser ccache doc keeshare +network test yubikey"
49 +
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + app-crypt/argon2:=
54 + dev-libs/libgcrypt:=
55 + >=dev-libs/libsodium-1.0.12:=
56 + dev-qt/qtconcurrent:5
57 + dev-qt/qtcore:5
58 + dev-qt/qtdbus:5
59 + dev-qt/qtgui:5
60 + dev-qt/qtnetwork:5
61 + dev-qt/qtsvg:5
62 + dev-qt/qtwidgets:5
63 + media-gfx/qrencode:=
64 + sys-libs/readline:0=
65 + sys-libs/zlib:=
66 + autotype? (
67 + dev-qt/qtx11extras:5
68 + x11-libs/libX11
69 + x11-libs/libXi
70 + x11-libs/libXtst
71 + )
72 + keeshare? ( sys-libs/zlib:=[minizip] )
73 + yubikey? ( sys-auth/ykpers )
74 +"
75 +
76 +DEPEND="
77 + ${RDEPEND}
78 + dev-qt/linguist-tools:5
79 + dev-qt/qttest:5
80 +"
81 +BDEPEND="
82 + ccache? ( dev-util/ccache )
83 + doc? ( dev-ruby/asciidoctor )
84 +"
85 +
86 +src_prepare() {
87 + if [[ "${PV}" != *_beta* ]] && [[ "${PV}" != *9999 ]] && [[ ! -f .version ]] ; then
88 + printf '%s' "${PV}" > .version || die
89 + fi
90 +
91 + cmake_src_prepare
92 +}
93 +
94 +src_configure() {
95 + # https://github.com/keepassxreboot/keepassxc/issues/5801
96 + filter-flags -flto*
97 +
98 + local mycmakeargs=(
99 + -DWITH_CCACHE="$(usex ccache)"
100 + -DWITH_GUI_TESTS=OFF
101 + -DWITH_TESTS="$(usex test)"
102 + -DWITH_XC_AUTOTYPE="$(usex autotype)"
103 + -DWITH_XC_DOCS="$(usex doc)"
104 + -DWITH_XC_BROWSER="$(usex browser)"
105 + -DWITH_XC_FDOSECRETS=ON
106 + -DWITH_XC_KEESHARE="$(usex keeshare)"
107 + -DWITH_XC_NETWORKING="$(usex network)"
108 + -DWITH_XC_SSHAGENT=ON
109 + -DWITH_XC_UPDATECHECK=OFF
110 + -DWITH_XC_YUBIKEY="$(usex yubikey)"
111 + )
112 + if [[ "${PV}" == *_beta* ]] ; then
113 + mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" )
114 + fi
115 + if [[ "${PV}" != 9999 ]] ; then
116 + mycmakeargs+=( -DWITH_XC_KEESHARE_SECURE="$(usex keeshare)" )
117 + fi
118 + cmake_src_configure
119 +}