commit: 8494722b6cda4f4aa659ef069a78c464250d1725
Author: Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Fri Jan 8 10:38:26 2021 +0000
Commit: Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Fri Jan 8 10:38:26 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8494722b
app-admin/gnome-passwordsafe: bump to 4.1
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans <AT> posteo.de>
app-admin/gnome-passwordsafe/Manifest | 1 +
.../gnome-passwordsafe-4.1.ebuild | 63 ++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/app-admin/gnome-passwordsafe/Manifest
b/app-admin/gnome-passwordsafe/Manifest
index 48925ccc..01e29c8a 100644
--- a/app-admin/gnome-passwordsafe/Manifest
+++ b/app-admin/gnome-passwordsafe/Manifest
@@ -1,2 +1,3 @@
DIST PasswordSafe-3.99.2.tar.bz2 530191 BLAKE2B
06e46052c765dd4b2633cec02b6d6712d3d0b516965ea8100366b865bf50ee63e6c555d10a259afe2c88ec26781c062c34928b66efa77cb7d6737a30c47ab8da
SHA512
f3f45c68806481e863baaeac566321349374e0fed9b960e41791e858329e859c76209bcf3b1f0483cae4e932103caf5abf263b53966174e3ddafb083d8d424e7
DIST PasswordSafe-4.0.tar.bz2 707474 BLAKE2B
4b1eaa09aecfd40d49886d72dad0b9043074d58d7918593c25645d1c9cc081cd7ade42f8cb957b2eef33d188c882b5cd7c3e9e9b3109cf6f53500d66f981be74
SHA512
9c5deaac73193368dac419b3f74d7a1d3c48674a6360afd036bdc6164cfd0d439d0f2fbb955e30e00e7958add41bde905cc6a9bb12a80b400c3cbbf1e276b98e
+DIST PasswordSafe-4.1.tar.bz2 707696 BLAKE2B
e185f44c505c54a59e611f990094cb43bd989f510218d4ea9050696af1620b92e72e5e0171c93f1e42f694a08fe8cca99ab48838f3b87471543597dafd413865
SHA512
69416d335de33d171df314e769c59aa08d7d445e3d822d1b0045cb28625dfc1e5e201a2975c28ad95703d1c4d84ca5ecde2e9901555f4d5ee947fe7b13b8875f
diff --git a/app-admin/gnome-passwordsafe/gnome-passwordsafe-4.1.ebuild
b/app-admin/gnome-passwordsafe/gnome-passwordsafe-4.1.ebuild
new file mode 100644
index 00000000..e42208d2
--- /dev/null
+++ b/app-admin/gnome-passwordsafe/gnome-passwordsafe-4.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit gnome2-utils meson xdg python-any-r1
+
+DESCRIPTION="A password manager for GNOME"
+HOMEPAGE="https://gitlab.gnome.org/World/PasswordSafe"
+SRC_URI="https://gitlab.gnome.org/World/PasswordSafe/-/archive/${PV}/PasswordSafe-${PV}.tar.bz2"
+
+LICENSE="GPL-2+"
+IUSE="debug +introspection"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+S="${WORKDIR}/PasswordSafe-${PV}"
+
+DEPEND="
+ $(python_gen_any_dep '
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ >=dev-python/pykeepass-3.2.0[${PYTHON_USEDEP}]
+ ')
+ gui-libs/libhandy:1=[introspection?]
+ >=dev-libs/libpwquality-1.4.0[python]
+ >=x11-libs/gtk+-3.24.1:3[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ # Use python from PATH instead of binary found during install
+ sed -i "s:@PYTHON@:/usr/bin/env python:" passwordsafe.in || die
+ # pycryptodomex to pycryptodome conversion
+ sed -i 's/Cryptodome/Crypto/g' passwordsafe/keyfile_generator.py || die
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dprofile=$(usex debug development default)
+ )
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ python_optimize
+}
+
+pkg_postinst() {
+ gnome2_gconf_install
+ gnome2_schemas_update
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_gconf_uninstall
+ gnome2_schemas_update
+ xdg_pkg_postrm
+}