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: Sat, 12 Jun 2021 10:35:11
Message-Id: 1623494098.ff75ed1a73c8fc68981a4b61215ba55a298771f4.polynomial-c@gentoo
1 commit: ff75ed1a73c8fc68981a4b61215ba55a298771f4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 12 09:49:03 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 10:34:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff75ed1a
7
8 app-admin/keepassxc: Bump to version 2.6.6
9
10 Closes: https://bugs.gentoo.org/795462
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-admin/keepassxc/Manifest | 1 +
14 app-admin/keepassxc/keepassxc-2.6.6.ebuild | 99 ++++++++++++++++++++++++++++++
15 2 files changed, 100 insertions(+)
16
17 diff --git a/app-admin/keepassxc/Manifest b/app-admin/keepassxc/Manifest
18 index a6baba9d3d9..46a0d186df9 100644
19 --- a/app-admin/keepassxc/Manifest
20 +++ b/app-admin/keepassxc/Manifest
21 @@ -1,2 +1,3 @@
22 DIST keepassxc-2.6.4-src.tar.xz 7575164 BLAKE2B ca02e59c7355f7f7e14bb4fa318fab66d354e84d1025847b413b7e838dc5a42024b963dea1e3ba2060c51da7daed2ee5b220e5dab72b5813d39c04b49c6ba9ba SHA512 3bde0c8670ba14be80c6f3676bd447b0855a2af2915a395ee236c2d4c6e4b859936351643d679480aae1fcf55ed4315447ae927ac9bdedeb0332593cb4e9fedb
23 DIST keepassxc-2.6.5.tar.gz 9809372 BLAKE2B d51782c65fffc4499d85cfa893a908b1f5964fc018a8b878ee61896684e55c8f3d935f7c14d38ba75f26fda3b59b6e408b77b68e11504b9fb95d82fdcc02bf5a SHA512 a5993170ff7e28cb56fc14fbbb7e93a5821b2edefd6d8cd6ce798f810c8045595913a8508c9a256363028be93aaad6ff2f13904ebc19229309d356e119ed0dce
24 +DIST keepassxc-2.6.6.tar.gz 9809433 BLAKE2B cfaadae509ff2a4fb4190dde8672201af128c2ae17950b7a4effa694ed3dc00f0a7d275d5031175191ce0f4bd7e323d29cfb3fa586653f3d3cd31f1747ef8c2f SHA512 fb41d25b9b4ac97feddf9632e7a26140d7a9fbba4256ac0394814fd9097d0d30f810cb48939325b4b858cac1378747aadd1987eb468657c929e0008b736eddd7
25
26 diff --git a/app-admin/keepassxc/keepassxc-2.6.6.ebuild b/app-admin/keepassxc/keepassxc-2.6.6.ebuild
27 new file mode 100644
28 index 00000000000..f6bd89c1df7
29 --- /dev/null
30 +++ b/app-admin/keepassxc/keepassxc-2.6.6.ebuild
31 @@ -0,0 +1,99 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake flag-o-matic xdg
38 +
39 +DESCRIPTION="KeePassXC - KeePass Cross-platform Community Edition"
40 +HOMEPAGE="https://keepassxc.org"
41 +
42 +if [[ "${PV}" != 9999 ]] ; then
43 + if [[ "${PV}" == *_beta* ]] ; then
44 + SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
45 + S="${WORKDIR}/${P/_/-}"
46 + else
47 + SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 + #SRC_URI="https://github.com/keepassxreboot/keepassxc/releases/download/${PV}/${P}-src.tar.xz"
49 + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
50 + fi
51 +else
52 + inherit git-r3
53 + EGIT_REPO_URI="https://github.com/keepassxreboot/${PN}"
54 +fi
55 +
56 +LICENSE="LGPL-2.1 GPL-2 GPL-3"
57 +SLOT="0"
58 +IUSE="autotype browser ccache doc keeshare +network test yubikey"
59 +
60 +RESTRICT="!test? ( test )"
61 +
62 +RDEPEND="
63 + app-crypt/argon2:=
64 + dev-libs/libgcrypt:=
65 + >=dev-libs/libsodium-1.0.12:=
66 + dev-qt/qtconcurrent:5
67 + dev-qt/qtcore:5
68 + dev-qt/qtdbus:5
69 + dev-qt/qtgui:5
70 + dev-qt/qtnetwork:5
71 + dev-qt/qtsvg:5
72 + dev-qt/qtwidgets:5
73 + media-gfx/qrencode:=
74 + sys-libs/readline:0=
75 + sys-libs/zlib:=
76 + autotype? (
77 + dev-qt/qtx11extras:5
78 + x11-libs/libX11
79 + x11-libs/libXi
80 + x11-libs/libXtst
81 + )
82 + keeshare? ( dev-libs/quazip:0= )
83 + yubikey? ( sys-auth/ykpers )
84 +"
85 +
86 +DEPEND="
87 + ${RDEPEND}
88 + dev-qt/linguist-tools:5
89 + dev-qt/qttest:5
90 +"
91 +BDEPEND="
92 + ccache? ( dev-util/ccache )
93 + doc? ( dev-ruby/asciidoctor )
94 +"
95 +
96 +src_prepare() {
97 + use test || \
98 + sed -e "/^find_package(Qt5Test/d" -i CMakeLists.txt || die
99 +
100 + if [[ "${PV}" != *_beta* ]] && [[ "${PV}" != 9999 ]] && [[ ! -f .version ]] ; then
101 + printf '%s' "${PV}" > .version || die
102 + fi
103 +
104 + cmake_src_prepare
105 +}
106 +
107 +src_configure() {
108 + # https://github.com/keepassxreboot/keepassxc/issues/5801
109 + filter-flags -flto*
110 +
111 + local mycmakeargs=(
112 + -DWITH_CCACHE="$(usex ccache)"
113 + -DWITH_GUI_TESTS=OFF
114 + -DWITH_TESTS="$(usex test)"
115 + -DWITH_XC_AUTOTYPE="$(usex autotype)"
116 + -DWITH_XC_DOCS="$(usex doc)"
117 + -DWITH_XC_BROWSER="$(usex browser)"
118 + -DWITH_XC_FDOSECRETS=ON
119 + -DWITH_XC_KEESHARE="$(usex keeshare)"
120 + -DWITH_XC_KEESHARE_SECURE="$(usex keeshare)"
121 + -DWITH_XC_NETWORKING="$(usex network)"
122 + -DWITH_XC_SSHAGENT=ON
123 + -DWITH_XC_UPDATECHECK=OFF
124 + -DWITH_XC_YUBIKEY="$(usex yubikey)"
125 + )
126 + if [[ "${PV}" == *_beta* ]] ; then
127 + mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" )
128 + fi
129 + cmake_src_configure
130 +}