Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-admin/gnome-passwordsafe/
Date: Fri, 08 Jan 2021 10:39:57
Message-Id: 1610102306.8494722b6cda4f4aa659ef069a78c464250d1725.telans@gentoo
1 commit: 8494722b6cda4f4aa659ef069a78c464250d1725
2 Author: Theo Anderson <telans <AT> posteo <DOT> de>
3 AuthorDate: Fri Jan 8 10:38:26 2021 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Fri Jan 8 10:38:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8494722b
7
8 app-admin/gnome-passwordsafe: bump to 4.1
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Theo Anderson <telans <AT> posteo.de>
12
13 app-admin/gnome-passwordsafe/Manifest | 1 +
14 .../gnome-passwordsafe-4.1.ebuild | 63 ++++++++++++++++++++++
15 2 files changed, 64 insertions(+)
16
17 diff --git a/app-admin/gnome-passwordsafe/Manifest b/app-admin/gnome-passwordsafe/Manifest
18 index 48925ccc..01e29c8a 100644
19 --- a/app-admin/gnome-passwordsafe/Manifest
20 +++ b/app-admin/gnome-passwordsafe/Manifest
21 @@ -1,2 +1,3 @@
22 DIST PasswordSafe-3.99.2.tar.bz2 530191 BLAKE2B 06e46052c765dd4b2633cec02b6d6712d3d0b516965ea8100366b865bf50ee63e6c555d10a259afe2c88ec26781c062c34928b66efa77cb7d6737a30c47ab8da SHA512 f3f45c68806481e863baaeac566321349374e0fed9b960e41791e858329e859c76209bcf3b1f0483cae4e932103caf5abf263b53966174e3ddafb083d8d424e7
23 DIST PasswordSafe-4.0.tar.bz2 707474 BLAKE2B 4b1eaa09aecfd40d49886d72dad0b9043074d58d7918593c25645d1c9cc081cd7ade42f8cb957b2eef33d188c882b5cd7c3e9e9b3109cf6f53500d66f981be74 SHA512 9c5deaac73193368dac419b3f74d7a1d3c48674a6360afd036bdc6164cfd0d439d0f2fbb955e30e00e7958add41bde905cc6a9bb12a80b400c3cbbf1e276b98e
24 +DIST PasswordSafe-4.1.tar.bz2 707696 BLAKE2B e185f44c505c54a59e611f990094cb43bd989f510218d4ea9050696af1620b92e72e5e0171c93f1e42f694a08fe8cca99ab48838f3b87471543597dafd413865 SHA512 69416d335de33d171df314e769c59aa08d7d445e3d822d1b0045cb28625dfc1e5e201a2975c28ad95703d1c4d84ca5ecde2e9901555f4d5ee947fe7b13b8875f
25
26 diff --git a/app-admin/gnome-passwordsafe/gnome-passwordsafe-4.1.ebuild b/app-admin/gnome-passwordsafe/gnome-passwordsafe-4.1.ebuild
27 new file mode 100644
28 index 00000000..e42208d2
29 --- /dev/null
30 +++ b/app-admin/gnome-passwordsafe/gnome-passwordsafe-4.1.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit gnome2-utils meson xdg python-any-r1
40 +
41 +DESCRIPTION="A password manager for GNOME"
42 +HOMEPAGE="https://gitlab.gnome.org/World/PasswordSafe"
43 +SRC_URI="https://gitlab.gnome.org/World/PasswordSafe/-/archive/${PV}/PasswordSafe-${PV}.tar.bz2"
44 +
45 +LICENSE="GPL-2+"
46 +IUSE="debug +introspection"
47 +KEYWORDS="~amd64 ~x86"
48 +SLOT="0"
49 +
50 +S="${WORKDIR}/PasswordSafe-${PV}"
51 +
52 +DEPEND="
53 + $(python_gen_any_dep '
54 + dev-python/pycryptodome[${PYTHON_USEDEP}]
55 + >=dev-python/pykeepass-3.2.0[${PYTHON_USEDEP}]
56 + ')
57 + gui-libs/libhandy:1=[introspection?]
58 + >=dev-libs/libpwquality-1.4.0[python]
59 + >=x11-libs/gtk+-3.24.1:3[introspection?]
60 + introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
61 +"
62 +RDEPEND="${DEPEND}"
63 +
64 +src_prepare() {
65 + default
66 + # Use python from PATH instead of binary found during install
67 + sed -i "s:@PYTHON@:/usr/bin/env python:" passwordsafe.in || die
68 + # pycryptodomex to pycryptodome conversion
69 + sed -i 's/Cryptodome/Crypto/g' passwordsafe/keyfile_generator.py || die
70 +}
71 +
72 +src_configure() {
73 + local emesonargs=(
74 + -Dprofile=$(usex debug development default)
75 + )
76 + meson_src_configure
77 +}
78 +
79 +src_install() {
80 + meson_src_install
81 + python_optimize
82 +}
83 +
84 +pkg_postinst() {
85 + gnome2_gconf_install
86 + gnome2_schemas_update
87 + xdg_pkg_postinst
88 +}
89 +
90 +pkg_postrm() {
91 + gnome2_gconf_uninstall
92 + gnome2_schemas_update
93 + xdg_pkg_postrm
94 +}