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, 13 Apr 2019 09:18:21
Message-Id: 1555147090.e6484c0a4467207b8912afc50db6f14dc5309b6c.polynomial-c@gentoo
1 commit: e6484c0a4467207b8912afc50db6f14dc5309b6c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 13 09:16:24 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 13 09:18:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6484c0a
7
8 app-admin/keepassxc: Bump to version 2.4.1
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-admin/keepassxc/Manifest | 1 +
14 app-admin/keepassxc/keepassxc-2.4.1.ebuild | 96 ++++++++++++++++++++++++++++++
15 2 files changed, 97 insertions(+)
16
17 diff --git a/app-admin/keepassxc/Manifest b/app-admin/keepassxc/Manifest
18 index 0e963d06d41..0f7251343dd 100644
19 --- a/app-admin/keepassxc/Manifest
20 +++ b/app-admin/keepassxc/Manifest
21 @@ -1,2 +1,3 @@
22 DIST keepassxc-2.3.4-src.tar.xz 4137176 BLAKE2B bbf8dbef5fb365f3c0d9332454b2b3bce7d4e411f43939ae683428ca669a459f1662bb8b1a1da228bc9447ee15349a5cd558e4fdfcc5194f22401f56003fd0f0 SHA512 edca22ef9d7c553d21d8ea6115a5635265176acc56fdf055f1961a3e65046de49ed5b67eb68ecf4f925226fb5bca140d5d473a5082301168f6a8bb7979f562a8
23 DIST keepassxc-2.4.0-src.tar.xz 3252104 BLAKE2B 7c82822f6fb0eaf6b5d086aebdf4927af215339f92e7f52104e05d5ff301461a1ad816d8a39b377c717e975001c9295ec6d8b2f2003a2215c05931eb9acb5c73 SHA512 b7295f5983237606efd236955dc73d477992d944e547eeb2c3a267d846e70ce6f83e489f58e3bd9b5bb21decabd9052a4ea7b98bd98e8283abbb678ae19e5559
24 +DIST keepassxc-2.4.1-src.tar.xz 3277856 BLAKE2B 64ed15987f26fd884db8fec9dc8e5d9ecd1ab9c298c2c35ee41f5aacd51bf3cd512c8ca0370ccc294d4f1ac6214678d2a3a4d8c47441c01ae8e858252018ec97 SHA512 4369043700d3de4fece0a1dd0f8aab3f621df379bc9d0214b4c70ab72d081f978104aa09fd39c4b4bf8b8df8f78266835dc206c31e7174bdf872a977c0d79502
25
26 diff --git a/app-admin/keepassxc/keepassxc-2.4.1.ebuild b/app-admin/keepassxc/keepassxc-2.4.1.ebuild
27 new file mode 100644
28 index 00000000000..5b33ef6ebd1
29 --- /dev/null
30 +++ b/app-admin/keepassxc/keepassxc-2.4.1.ebuild
31 @@ -0,0 +1,96 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake-utils 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 ~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 debug +network test yubikey"
59 +
60 +RDEPEND="
61 + app-crypt/argon2:=
62 + dev-libs/libgcrypt:=
63 + dev-qt/qtcore:5
64 + dev-qt/qtdbus:5
65 + dev-qt/qtgui:5
66 + dev-qt/qtnetwork:5
67 + dev-qt/qtsvg:5
68 + dev-qt/qtwidgets:5
69 + media-gfx/qrencode:=
70 + sys-libs/zlib
71 + autotype? (
72 + dev-qt/qtx11extras:5
73 + x11-libs/libX11
74 + x11-libs/libXi
75 + x11-libs/libXtst
76 + )
77 + browser? ( >=dev-libs/libsodium-1.0.12 )
78 + yubikey? ( sys-auth/ykpers )
79 +"
80 +
81 +DEPEND="
82 + ${RDEPEND}
83 + dev-qt/linguist-tools:5
84 + dev-qt/qttest:5
85 + dev-qt/qtconcurrent:5
86 +"
87 +
88 +# Not a runtime dependency but still needed (see bug #667092)
89 +PDEPEND="
90 + x11-misc/xsel
91 +"
92 +
93 +src_prepare() {
94 + use test || \
95 + sed -e "/^find_package(Qt5Test/d" -i CMakeLists.txt || die
96 +
97 + cmake-utils_src_prepare
98 +}
99 +
100 +src_configure() {
101 + local mycmakeargs=(
102 + -DWITH_GUI_TESTS=OFF
103 + -DWITH_TESTS="$(usex test)"
104 + -DWITH_XC_AUTOTYPE="$(usex autotype)"
105 + -DWITH_XC_BROWSER="$(usex browser)"
106 + -DWITH_XC_NETWORKING="$(usex network)"
107 + -DWITH_XC_SSHAGENT=ON
108 + -DWITH_XC_UPDATECHECK=OFF
109 + -DWITH_XC_YUBIKEY="$(usex yubikey)"
110 + )
111 + if [[ "${PV}" == *_beta* ]] ; then
112 + mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" )
113 + fi
114 + cmake-utils_src_configure
115 +}
116 +
117 +pkg_preinst() {
118 + xdg_pkg_preinst
119 +}
120 +
121 +pkg_postinst() {
122 + xdg_pkg_postinst
123 +}
124 +
125 +pkg_postrm() {
126 + xdg_pkg_postrm
127 +}