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