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