app-admin/gnome-passwordsafe: treeclean

Closes: https://bugs.gentoo.org/832849
Closes: https://bugs.gentoo.org/897360
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-05-02 00:36:40 +05:00
parent ca8a78531e
commit fc2cbd79d8
6 changed files with 0 additions and 174 deletions

View File

@@ -1,2 +0,0 @@
DIST PasswordSafe-4.0.tar.bz2 708173 BLAKE2B b795c0c898aa79a7b80d3defab86a6ce8e457919db6e87a7505a60419123aa338f018d804f562fda12110a2530b839fd672997c9a0dd9e8e3b8ccc7861439d26 SHA512 19cab57785f9d98285099d4e15a1aa8580ac12b05df0ae5a5be63c51aea07b146952d19da889cf1398fbe3ba10c9055754ecd3f4ca4a1e74acbe08731f3ae661
DIST PasswordSafe-4.1.tar.bz2 708057 BLAKE2B aff935fa9e6e03ef0a644ea82a642bdfee5ea4d5eb9d28baf36a8a82b096d57f89ea9d15a87730e32e68c8e416b0b3e80872693487d26f67cb7af4be799360c2 SHA512 27ef0abb5e1d25f3bb9dc47845a4cb783ef02f3f2c7df1e9b2d5751b8446dc083f7007967aed984c71033bbe6a4474de90ffccddb1a0db615a689b75914c272d

View File

@@ -1,34 +0,0 @@
diff --git a/meson.build b/meson.build
index 9eb076b..f16419d 100644
--- a/meson.build
+++ b/meson.build
@@ -98,5 +98,3 @@ configure_file(
configuration: conf,
install_dir: bindir
)
-
-meson.add_install_script('meson_post_install.py')
diff --git a/passwordsafe.in b/passwordsafe.in
index acc8b3a..de801bb 100755
--- a/passwordsafe.in
+++ b/passwordsafe.in
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#! /usr/bin/env python
import sys
import os
diff --git a/passwordsafe/keyfile_generator.py b/passwordsafe/keyfile_generator.py
index 02582fc..e29b25a 100644
--- a/passwordsafe/keyfile_generator.py
+++ b/passwordsafe/keyfile_generator.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-3.0-only
import secrets
-from Cryptodome.Cipher import AES
-from Cryptodome.Random import get_random_bytes
+from Crypto.Cipher import AES
+from Crypto.Random import get_random_bytes
from gi.repository import GLib

View File

@@ -1,68 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_9 )
inherit gnome2-utils meson xdg python-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+"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug +introspection"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
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="
${PYTHON_DEPS}
${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
}

View File

@@ -1,63 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_9 )
inherit gnome2-utils meson xdg python-single-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+"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug +introspection"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
S="${WORKDIR}/PasswordSafe-${PV}"
DEPEND="
$(python_gen_cond_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="
${PYTHON_DEPS}
${DEPEND}
"
PATCHES=( "${FILESDIR}/${PN}-4.1.patch" )
src_configure() {
local emesonargs=(
-Dprofile=$(usex debug development default)
)
meson_src_configure
}
src_install() {
meson_src_install
python_doscript "${ED}"/usr/bin/gnome-passwordsafe
python_optimize
}
pkg_postinst() {
gnome2_gconf_install
gnome2_schemas_update
xdg_pkg_postinst
}
pkg_postrm() {
gnome2_gconf_uninstall
gnome2_schemas_update
xdg_pkg_postrm
}

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>

View File

@@ -22,7 +22,6 @@ sys-cluster/pcs
# Anna Vyalkova <cyber+gentoo@sysrq.in> (2023-05-01)
# No supported Pythom implementations set in ebuild.
# Masked for removal in 30 days.
app-admin/gnome-passwordsafe
dev-embedded/yosys
dev-lang/wren
dev-python/asciimatics