diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /app-admin/passwordsafe/passwordsafe-1.11.0.ebuild | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'app-admin/passwordsafe/passwordsafe-1.11.0.ebuild')
-rw-r--r-- | app-admin/passwordsafe/passwordsafe-1.11.0.ebuild | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/app-admin/passwordsafe/passwordsafe-1.11.0.ebuild b/app-admin/passwordsafe/passwordsafe-1.11.0.ebuild new file mode 100644 index 000000000000..3bf03766ff31 --- /dev/null +++ b/app-admin/passwordsafe/passwordsafe-1.11.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WX_GTK_VER="3.0-gtk3" + +inherit cmake desktop eutils flag-o-matic wxwidgets + +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" +IUSE="libressl qr test +xml yubikey" +RESTRICT="!test? ( test )" + +DEPEND=" + net-misc/curl + sys-apps/file + sys-apps/util-linux + x11-libs/libXt + x11-libs/libXtst + x11-libs/wxGTK:${WX_GTK_VER}[X] + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + 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.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 +} + +src_configure() { + setup-wxwidgets + + local mycmakeargs=( + -DNO_QR=$(usex !qr) + -DNO_GTEST=$(usex !test) + -DSYSTEM_GTEST=ON + -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 + + newicon install/graphics/pwsafe.png ${PN}.png + newmenu install/desktop/pwsafe.desktop ${PN}.desktop +} + +pkg_postinst() { + optfeature "on-screen keyboard for password entry" x11-misc/xvkbd +} |