public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-admin/passwordsafe/files/, app-admin/passwordsafe/
@ 2018-08-23 15:46 Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2018-08-23 15:46 UTC (permalink / raw
  To: gentoo-commits

commit:     9213b5fb674960bc0c855ff780f69df9e35f4ed1
Author:     Hendrik v. Raven <hendrik <AT> consetetur <DOT> de>
AuthorDate: Wed Aug 22 09:00:27 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 23 15:31:45 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9213b5fb

app-admin/passwordsafe: force system gtest

this has been changed in the latest release to download gtest. I missed
this change when bumping to the latest release.

Closes: https://bugs.gentoo.org/664200
Closes: https://github.com/gentoo/gentoo/pull/9660
Package-Manager: Portage-2.3.38, Repoman-2.3.9

 .../passwordsafe-1.06_beta-system-gtest.patch      | 69 ++++++++++++++++++++++
 .../passwordsafe/passwordsafe-1.06_beta.ebuild     |  5 ++
 2 files changed, 74 insertions(+)

diff --git a/app-admin/passwordsafe/files/passwordsafe-1.06_beta-system-gtest.patch b/app-admin/passwordsafe/files/passwordsafe-1.06_beta-system-gtest.patch
new file mode 100644
index 00000000000..b17385bdcd8
--- /dev/null
+++ b/app-admin/passwordsafe/files/passwordsafe-1.06_beta-system-gtest.patch
@@ -0,0 +1,69 @@
+--- a/CMakeLists.txt	2018-08-11 09:54:05.000000000 +0200
++++ b/CMakeLists.txt	2018-08-22 10:48:06.422755215 +0200
+@@ -91,6 +91,7 @@
+ # Configurable options:
+ option (NO_YUBI "Set ON to disable YubiKey support" OFF)
+ option (NO_GTEST "Set ON to disable gtest unit testing" OFF)
++option (SYSTEM_GTEST "Set ON to use gtest provided by the system" OFF)
+ 
+ if (WIN32)
+   option (WX_WINDOWS "Build wxWidget under Windows" OFF)
+@@ -256,31 +257,36 @@
+ endif (MSVC)
+ 
+ if (NOT NO_GTEST)
+-   # Download and unpack googletest at configure time
+-   # See https://crascit.com/2015/07/25/cmake-gtest/
+-   configure_file(Misc/CMakeLists.gtest.txt.in googletest-download/CMakeLists.txt)
+-   execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
++  if (NOT SYSTEM_GTEST)
++    # Download and unpack googletest at configure time
++    # See https://crascit.com/2015/07/25/cmake-gtest/
++    configure_file(Misc/CMakeLists.gtest.txt.in googletest-download/CMakeLists.txt)
++    execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
+        WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download" )
+-   execute_process(COMMAND "${CMAKE_COMMAND}" --build .
++     execute_process(COMMAND "${CMAKE_COMMAND}" --build .
+        WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download" )
++    # Prevent GoogleTest from overriding our compiler/linker options
++    # when building with Visual Studio
++    set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
++    # Set some other gtest configurations:
++    set(BUILD_GMOCK OFF CACHE BOOL "" FORCE)
++    set(BUILD_GTEST ON CACHE BOOL "" FORCE)
++    set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
++
++    # Add googletest directly to our build. This adds
++    # the following targets: gtest, gtest_main, gmock
++    # and gmock_main
++    add_subdirectory("${CMAKE_BINARY_DIR}/googletest-src"
++                     "${CMAKE_BINARY_DIR}/googletest-build")
++
++    include_directories("${gtest_SOURCE_DIR}/include"
++#                        "${gmock_SOURCE_DIR}/include"
++                        )
++  else (NOT SYSTEM_GTEST)
++    find_package(GTest REQUIRED)
++    set(GTEST_LIBRARIES ${GTEST_BOTH_LIBRARIES})
++  endif(NOT SYSTEM_GTEST)
+ 
+-   # Prevent GoogleTest from overriding our compiler/linker options
+-   # when building with Visual Studio
+-   set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
+-   # Set some other gtest configurations:
+-   set(BUILD_GMOCK OFF CACHE BOOL "" FORCE)
+-   set(BUILD_GTEST ON CACHE BOOL "" FORCE)
+-   set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
+-
+-   # Add googletest directly to our build. This adds
+-   # the following targets: gtest, gtest_main, gmock
+-   # and gmock_main
+-   add_subdirectory("${CMAKE_BINARY_DIR}/googletest-src"
+-                    "${CMAKE_BINARY_DIR}/googletest-build")
+-
+-   include_directories("${gtest_SOURCE_DIR}/include"
+-#                       "${gmock_SOURCE_DIR}/include"
+-                       )
+ endif(NOT NO_GTEST)
+ 
+ if (WIN32 AND NOT WX_WINDOWS)

diff --git a/app-admin/passwordsafe/passwordsafe-1.06_beta.ebuild b/app-admin/passwordsafe/passwordsafe-1.06_beta.ebuild
index 14da0d36f2c..2a8d7c88495 100644
--- a/app-admin/passwordsafe/passwordsafe-1.06_beta.ebuild
+++ b/app-admin/passwordsafe/passwordsafe-1.06_beta.ebuild
@@ -32,6 +32,10 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/pwsafe-${MY_PV}
 
+PATCHES=(
+	"${FILESDIR}/${PN}-1.06_beta-system-gtest.patch"
+)
+
 pkg_pretend() {
 	einfo "Checking for -std=c++11 support in compiler"
 	test-flags-CXX -std=c++11 > /dev/null || die
@@ -54,6 +58,7 @@ src_configure() {
 	local mycmakeargs=(
 		-DNO_QR=$(usex !qr)
 		-DNO_GTEST=$(usex !test)
+		-DSYSTEM_GTEST=ON
 		-DXML_XERCESC=$(usex xml)
 		-DNO_YUBI=$(usex !yubikey)
 	)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-admin/passwordsafe/files/, app-admin/passwordsafe/
@ 2022-06-30 21:32 Sam James
  0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2022-06-30 21:32 UTC (permalink / raw
  To: gentoo-commits

commit:     1cb089fd5ce61c66ead34b6fbd57e6d8f61336ea
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 21:32:25 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 21:32:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cb089fd

app-admin/passwordsafe: fix build with GCC 12

Closes: https://bugs.gentoo.org/854144
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch | 13 +++++++++++++
 app-admin/passwordsafe/passwordsafe-1.15.0.ebuild           |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch b/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch
new file mode 100644
index 000000000000..0852e2888fdf
--- /dev/null
+++ b/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/854144
+--- a/src/os/unix/pws_time.h
++++ b/src/os/unix/pws_time.h
+@@ -10,9 +10,7 @@
+ 
+ #include "../typedefs.h"
+ #include <stdint.h>
+-#ifdef __FreeBSD__
+ #include <time.h>
+-#endif
+ 
+ #ifndef __TIME64_T_TYPE
+ #define __TIME64_T_TYPE uint64_t

diff --git a/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild b/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild
index 209366001f8a..da104b993d4c 100644
--- a/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild
+++ b/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild
@@ -37,6 +37,10 @@ BDEPEND="
 
 S="${WORKDIR}/pwsafe-${MY_PV}"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.15.0-gcc12-time.patch
+)
+
 pkg_pretend() {
 	einfo "Checking for -std=c++11 support in compiler"
 	test-flags-CXX -std=c++11 > /dev/null || die


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-admin/passwordsafe/files/, app-admin/passwordsafe/
@ 2024-02-15 13:17 Joonas Niilola
  0 siblings, 0 replies; 4+ messages in thread
From: Joonas Niilola @ 2024-02-15 13:17 UTC (permalink / raw
  To: gentoo-commits

commit:     45a5c00ad9bf875dd1387e61cfb692ab404d637e
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Sun Jan 28 19:28:07 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Feb 15 13:17:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a5c00a

app-admin/passwordsafe: drop 1.15.0, 1.16.0

Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-admin/passwordsafe/Manifest                    |  2 -
 .../files/passwordsafe-1.15.0-gcc12-time.patch     | 14 ----
 .../passwordsafe-1.15.0-gtest-no-gnu++11.patch     | 13 ----
 app-admin/passwordsafe/passwordsafe-1.15.0.ebuild  | 90 ----------------------
 app-admin/passwordsafe/passwordsafe-1.16.0.ebuild  | 87 ---------------------
 5 files changed, 206 deletions(-)

diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest
index 59d05c9d28aa..3d4f03870363 100644
--- a/app-admin/passwordsafe/Manifest
+++ b/app-admin/passwordsafe/Manifest
@@ -1,3 +1 @@
-DIST passwordsafe-1.15.0.tar.gz 15354159 BLAKE2B 699f80325884cba9bc6e5ffb33bea5c0b2c01f12ed7e4ea1226c4a64c761a8f20b8272e771261ca59aeeb49bfaa4ea83edc9af6c0aa9ae853e537b0f76f28aaa SHA512 803572afc479d608899e1166ef032a2a660fce122e03f89f59f8e9da9f7439e0eb1d602f77283200626f49d7e146e82edf8edee40060ff4cf6163e81bdf5f738
-DIST passwordsafe-1.16.0.tar.gz 15369804 BLAKE2B 344e77f74e588f41ba3696f5ea05cf054fca9f285437294033284561cbb83c76dc1311033b78673db0049132b7c9f37493c3698bb3b66e8e0a91ae63f7a83cdf SHA512 839de5072d6c9ec8fb82456e4516e51408be271ac8041b6dd9cf30990ac88914a139d96b40ee09764892acd8320abb2950d7f159a5b18c3d1549e58b922aa024
 DIST passwordsafe-1.17.0.tar.gz 15463920 BLAKE2B e64c73139c829b16b5f825d3c078f1cb3285cb15400be988e35b64e4ce701a5241e099a09092a576e487f709464b6fa5d5911f5f68e096d194329cd0214ac8cd SHA512 de1ef537c2f6c17e35d93a53cf46e86b7c1f1a4439282f8c2b98443845e3d381e113448acd739fc6ccdb5eee8ff7ebfd8c0e4306cda517ab623eaf5b9354d39d

diff --git a/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch b/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch
deleted file mode 100644
index c960c9ca2688..000000000000
--- a/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-https://github.com/pwsafe/pwsafe/pull/865
-https://bugs.gentoo.org/854144
---- a/src/os/unix/pws_time.h
-+++ b/src/os/unix/pws_time.h
-@@ -10,9 +10,7 @@
- 
- #include "../typedefs.h"
- #include <stdint.h>
--#ifdef __FreeBSD__
- #include <time.h>
--#endif
- 
- #ifndef __TIME64_T_TYPE
- #define __TIME64_T_TYPE uint64_t

diff --git a/app-admin/passwordsafe/files/passwordsafe-1.15.0-gtest-no-gnu++11.patch b/app-admin/passwordsafe/files/passwordsafe-1.15.0-gtest-no-gnu++11.patch
deleted file mode 100644
index fe39281f29b1..000000000000
--- a/app-admin/passwordsafe/files/passwordsafe-1.15.0-gtest-no-gnu++11.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Bug: https://bugs.gentoo.org/893464
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -248,7 +248,7 @@
- 
- else ()
- set(CMAKE_CXX_FLAGS
--  "${CMAKE_CXX_FLAGS} -fPIC -Wall -std=gnu++11 -DUNICODE -DWCHAR_INCOMPATIBLE_XMLCH ${CMAKE_WXWINDOWS_CXX_FLAGS}")
-+  "${CMAKE_CXX_FLAGS} -fPIC -Wall  -DUNICODE -DWCHAR_INCOMPATIBLE_XMLCH ${CMAKE_WXWINDOWS_CXX_FLAGS}")
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -DDEBUG")
- if (USE_ASAN)
-   set(CMAKE_CXX_FLAGS_DEBUG

diff --git a/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild b/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild
deleted file mode 100644
index 43dc7b3551fa..000000000000
--- a/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 2021-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-WX_GTK_VER="3.0-gtk3"
-
-inherit cmake desktop 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"
-
-LICENSE="Artistic-2"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-IUSE="qr test +xml yubikey"
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	dev-libs/openssl:0=
-	net-misc/curl
-	sys-apps/file
-	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 )"
-RDEPEND="${DEPEND}"
-BDEPEND="
-	app-arch/zip
-	sys-devel/gettext
-	test? ( dev-cpp/gtest )"
-
-S="${WORKDIR}/pwsafe-${MY_PV}"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-1.15.0-gcc12-time.patch
-	"${FILESDIR}"/${PN}-1.15.0-gtest-no-gnu++11.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() {
-	pushd "${BUILD_DIR}" || die
-
-	dobin pwsafe
-	dobin cli/pwsafe-cli
-	dosym pwsafe /usr/bin/${PN}
-	dosym pwsafe-cli /usr/bin/${PN}-cli
-
-	insinto /usr/share/locale
-	doins -r src/ui/wxWidgets/I18N/mos/*
-
-	insinto /usr/share/${PN}/help
-	doins help/*.zip
-
-	popd || die
-
-	newman docs/pwsafe.1 ${PN}.1
-
-	dodoc README.md README.LINUX.* SECURITY.md docs/{ReleaseNotes.md,ChangeLog.txt}
-
-	insinto /usr/share/${PN}
-	doins -r xml
-
-	doicon -s 48 install/graphics/pwsafe.png
-	newmenu install/desktop/pwsafe.desktop ${PN}.desktop
-}
-
-pkg_postinst() {
-	xdg_desktop_database_update
-	xdg_icon_cache_update
-	optfeature "on-screen keyboard for password entry" x11-misc/xvkbd
-}

diff --git a/app-admin/passwordsafe/passwordsafe-1.16.0.ebuild b/app-admin/passwordsafe/passwordsafe-1.16.0.ebuild
deleted file mode 100644
index cb8c08081f13..000000000000
--- a/app-admin/passwordsafe/passwordsafe-1.16.0.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 2021-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-WX_GTK_VER="3.0-gtk3"
-
-inherit cmake desktop 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}"/${PN}-1.15.0-gtest-no-gnu++11.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() {
-	pushd "${BUILD_DIR}" || die
-
-	dobin pwsafe
-	dobin cli/pwsafe-cli
-	dosym pwsafe /usr/bin/${PN}
-	dosym pwsafe-cli /usr/bin/${PN}-cli
-
-	insinto /usr/share/locale
-	doins -r src/ui/wxWidgets/I18N/mos/*
-
-	insinto /usr/share/${PN}/help
-	doins help/*.zip
-
-	popd || die
-
-	newman docs/pwsafe.1 ${PN}.1
-
-	dodoc README.md README.LINUX.* SECURITY.md docs/{ReleaseNotes.md,ChangeLog.txt}
-
-	insinto /usr/share/${PN}
-	doins -r xml
-
-	doicon -s 48 install/graphics/pwsafe.png
-	newmenu install/desktop/pwsafe.desktop ${PN}.desktop
-}
-
-pkg_postinst() {
-	xdg_desktop_database_update
-	xdg_icon_cache_update
-	optfeature "on-screen keyboard for password entry" x11-misc/xvkbd
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-admin/passwordsafe/files/, app-admin/passwordsafe/
@ 2024-10-17  8:13 Joonas Niilola
  0 siblings, 0 replies; 4+ messages in thread
From: Joonas Niilola @ 2024-10-17  8:13 UTC (permalink / raw
  To: gentoo-commits

commit:     8b4be9997c7babbf0ff2b46f47302bdf650d3601
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Sun Jun  9 15:00:56 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 08:13:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b4be999

app-admin/passwordsafe: add 1.19.1

Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/37098
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-admin/passwordsafe/Manifest                   |  1 +
 app-admin/passwordsafe/files/CMake.patch          | 13 +++++
 app-admin/passwordsafe/passwordsafe-1.19.1.ebuild | 68 +++++++++++++++++++++++
 3 files changed, 82 insertions(+)

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
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-17  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-17  8:13 [gentoo-commits] repo/gentoo:master commit in: app-admin/passwordsafe/files/, app-admin/passwordsafe/ Joonas Niilola
  -- strict thread matches above, loose matches on Subject: below --
2024-02-15 13:17 Joonas Niilola
2022-06-30 21:32 Sam James
2018-08-23 15:46 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox