summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2024-06-09 17:00:56 +0200
committerJoonas Niilola <juippis@gentoo.org>2024-10-17 11:13:46 +0300
commit8b4be9997c7babbf0ff2b46f47302bdf650d3601 (patch)
treedc7c06f96745a5c51dcbda05f877bf81de349a4b
parentnet-analyzer/trippy: add 0.11.0 (diff)
downloadgentoo-8b4be9997c7babbf0ff2b46f47302bdf650d3601.tar.gz
gentoo-8b4be9997c7babbf0ff2b46f47302bdf650d3601.tar.bz2
gentoo-8b4be9997c7babbf0ff2b46f47302bdf650d3601.zip
app-admin/passwordsafe: add 1.19.1
Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/37098 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--app-admin/passwordsafe/Manifest1
-rw-r--r--app-admin/passwordsafe/files/CMake.patch13
-rw-r--r--app-admin/passwordsafe/passwordsafe-1.19.1.ebuild68
3 files changed, 82 insertions, 0 deletions
diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest
index 0b3274f4ef64..ab78d0639894 100644
--- a/app-admin/passwordsafe/Manifest
+++ b/app-admin/passwordsafe/Manifest
@@ -1 +1,2 @@
DIST passwordsafe-1.18.2.tar.gz 15613801 BLAKE2B e4ad44fe3aae6230c6a1d07e644b7b02831ec5bc815decd85050099c6f43e83bc09cd7d8f88ddfa5b63e5636db774f4b295bb34739e15115ba55c5142d3b08ae SHA512 09fb19133ff325832fa5d284aa1b1e7eda1788c4298424701132ede27fbb17956d874c0007ac00a2b9367d279175666744e192523ec79786baf626fb461abec7
+DIST passwordsafe-1.19.1.tar.gz 15756663 BLAKE2B a6e9d4407dc845e889278dcc7a5ea1931461ae18ccb87155214ae93f1c48c4ecb88d8c8ae1be29a97053c61915694d69d83dc8fb9bf92edf3e532982ab3fa684 SHA512 04918d2a2155b6650f24da5883dd2ef3158d7c772ca0910912e3ab08687e06acdf2a3c83216f721699f5dec859aba7392dc5fecb74d2c8dc0a75cb7ee4be4993
diff --git a/app-admin/passwordsafe/files/CMake.patch b/app-admin/passwordsafe/files/CMake.patch
new file mode 100644
index 000000000000..a9c276322a27
--- /dev/null
+++ b/app-admin/passwordsafe/files/CMake.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -345,8 +345,8 @@
+ COMMAND ${GZIP} ARGS -9 -n -c ${PROJECT_SOURCE_DIR}/docs/pwsafe.1 > pwsafe.1.gz
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+ ADD_CUSTOM_TARGET(manpage ALL DEPENDS ${CMAKE_BINARY_DIR}/pwsafe.1.gz)
+- install (FILES ${CMAKE_BINARY_DIR}/pwsafe.1.gz TYPE MAN)
+- install (FILES "install/desktop/pwsafe.desktop" DESTINATION "share/applications")
++ install (FILES ${PROJECT_SOURCE_DIR}/docs/pwsafe.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 RENAME passwordsafe.1)
++ install (FILES "install/desktop/pwsafe.desktop" DESTINATION "share/applications" RENAME "passwordsafe.desktop")
+ install (FILES "install/metainfo/org.pwsafe.pwsafe.metainfo.xml" DESTINATION "share/metainfo")
+ install (FILES "install/graphics/48x48/pwsafe.png" DESTINATION "share/icons/hicolor/48x48/apps/")
+ install (FILES "install/graphics/128x128/pwsafe.png" DESTINATION "share/icons/hicolor/128x128/apps/")
diff --git a/app-admin/passwordsafe/passwordsafe-1.19.1.ebuild b/app-admin/passwordsafe/passwordsafe-1.19.1.ebuild
new file mode 100644
index 000000000000..6d04c9b86441
--- /dev/null
+++ b/app-admin/passwordsafe/passwordsafe-1.19.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2021-2024 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/util-linux
+ x11-libs/libXt
+ 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}/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
+}