commit:     ed8a7589d969116554385475c25348b41a98b9e5
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Sun Jul 27 16:05:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug  1 04:25:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed8a7589

app-admin/passwordsafe: add 1.22.0

Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/43185
Closes: https://github.com/gentoo/gentoo/pull/43185
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-admin/passwordsafe/Manifest                   |  1 +
 app-admin/passwordsafe/passwordsafe-1.22.0.ebuild | 69 +++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest
index f5b3ff071ac9..7ec52392100a 100644
--- a/app-admin/passwordsafe/Manifest
+++ b/app-admin/passwordsafe/Manifest
@@ -1 +1,2 @@
 DIST passwordsafe-1.20.0.tar.gz 15752332 BLAKE2B 
519437928d402790b4db72e251355479341fdf0fb49f2dd5705357cce7051f12ab952d7da7c23b5b304b7ab0da0cbd9a0a26c2a13a18db8e5472c834026a5e3d
 SHA512 
5cfc2f497747fbdf69f6d7a1b96b0309ff87e9ca32a92d012de68d51b1e93df527b11968466c1834a17a815917023fe3e36b7ec7ae1aeb372070f86af96e782d
+DIST passwordsafe-1.22.0.tar.gz 17674235 BLAKE2B 
af9adf2040c42a853aad18d2e9bcf7216f0a7f5364c730b2d7bcbcabcc762fc31f82d52d898a326efdb67d86069b6dfa6229101d51e8d82f40338ef7daf6efaa
 SHA512 
ff787b08653a923b6f542754e1d9cadc60fb37892a428ac5206cf05ab5a8f29e66c8c2791c826f40c2f27cabcdd704f54a4fbdd330177b7b1825e3e72698860e

diff --git a/app-admin/passwordsafe/passwordsafe-1.22.0.ebuild 
b/app-admin/passwordsafe/passwordsafe-1.22.0.ebuild
new file mode 100644
index 000000000000..cc527dcdecd5
--- /dev/null
+++ b/app-admin/passwordsafe/passwordsafe-1.22.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+WX_GTK_VER="3.2-gtk3"
+
+inherit cmake optfeature wxwidgets xdg
+
+MY_PV="${PV/_beta/BETA}"
+DESCRIPTION="Password manager with wxGTK based frontend"
+HOMEPAGE="https://pwsafe.org/ https://github.com/pwsafe/pwsafe/";
+SRC_URI="https://github.com/pwsafe/pwsafe/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/pwsafe-${MY_PV}"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="qr test +xml yubikey"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       net-misc/curl
+       sys-apps/file
+       sys-apps/util-linux
+       x11-libs/libX11
+       x11-libs/libXtst
+       x11-libs/wxGTK:${WX_GTK_VER}=[X]
+       qr? ( media-gfx/qrencode:= )
+       xml? ( dev-libs/xerces-c:= )
+       yubikey? ( sys-auth/ykpers )"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+BDEPEND="
+       app-arch/zip
+       dev-lang/perl
+       sys-devel/gettext
+       virtual/pkgconfig
+       test? ( dev-cpp/gtest )"
+
+PATCHES=( "${FILESDIR}/passwordsafe-1.20.0-CMake.patch" )
+
+src_configure() {
+       setup-wxwidgets
+
+       local mycmakeargs=(
+               -DNO_QR=$(usex !qr)
+               -DNO_GTEST=$(usex !test)
+               -DGTEST_BUILD=OFF
+               -DXML_XERCESC=$(usex xml)
+               -DNO_YUBI=$(usex !yubikey)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       pushd "${BUILD_DIR}" || die
+       dosym pwsafe /usr/bin/${PN}
+       dosym pwsafe-cli /usr/bin/${PN}-cli
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+       optfeature "on-screen keyboard for password entry" x11-misc/xvkbd
+}

Reply via email to