diff options
author | Hendrik v. Raven <hendrik@consetetur.de> | 2018-01-15 15:09:54 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-01-25 23:50:57 +0100 |
commit | da5d2d3abee4be337cb9e1dbd397d47fdb97cd41 (patch) | |
tree | 988e93ff7148242b801833050847f77d45f959d8 /app-admin/passwordsafe | |
parent | dev-python/construct: version bump to 2.8.21. (diff) | |
download | gentoo-da5d2d3abee4be337cb9e1dbd397d47fdb97cd41.tar.gz gentoo-da5d2d3abee4be337cb9e1dbd397d47fdb97cd41.tar.bz2 gentoo-da5d2d3abee4be337cb9e1dbd397d47fdb97cd41.zip |
app-admin/passwordsafe: version bump.
Add QR code support.
Reported-by: Hans F. Nordhaug <hansfn@gmail.com>
Closes: https://bugs.gentoo.org/644640
Closes: https://github.com/gentoo/gentoo/pull/6869
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-admin/passwordsafe')
-rw-r--r-- | app-admin/passwordsafe/Manifest | 1 | ||||
-rw-r--r-- | app-admin/passwordsafe/metadata.xml | 2 | ||||
-rw-r--r-- | app-admin/passwordsafe/passwordsafe-1.04_beta.ebuild | 93 |
3 files changed, 96 insertions, 0 deletions
diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest index bc8f77e84548..3936e9d4112f 100644 --- a/app-admin/passwordsafe/Manifest +++ b/app-admin/passwordsafe/Manifest @@ -1 +1,2 @@ DIST passwordsafe-1.02.1_beta.tar.gz 14068085 BLAKE2B 7a1bff0f2db798e08377436020473a8c6c46f9e64fa85629b6545f70954a3ad05735ee101bea021308589d523724f70fce24447837ee25cf1b897a7703873757 SHA512 c83a0c757f9f74906ffaebf650fd3f422a29f838c7f5430b3d3e32852b35dd92dc413a1c920320af9812d7960f0648e8df8a9d145828f8669e824e9972038067 +DIST passwordsafe-1.04_beta.tar.gz 14329263 BLAKE2B 17f4b0cd0b34f8907530a7da43dfbceab56c9aefd65f2d0ba0356b5a1820e8b4273c68655229a07947693fd6d320bc654065f790c86daff31679b565a57145fe SHA512 5f2d0634be3d3932991f77e96b7b40fee3984407ec8620d82caea089bba49df69444cdf8d2cf431aace43636c5034892a672c338ee98df06473d2569953bdab3 diff --git a/app-admin/passwordsafe/metadata.xml b/app-admin/passwordsafe/metadata.xml index 36988d4359d5..cd092820b048 100644 --- a/app-admin/passwordsafe/metadata.xml +++ b/app-admin/passwordsafe/metadata.xml @@ -11,10 +11,12 @@ </maintainer> <use> <flag name="minimal">Avoid collision with <pkg>app-misc/pwsafe</pkg></flag> + <flag name="qr">Enable QR code password display</flag> <flag name="yubikey">Enable support for Yubikey</flag> <flag name="xml">Enable XML import support</flag> </use> <upstream> <remote-id type="github">pwsafe/pwsafe</remote-id> + <remote-id type="sourceforge">passwordsafe</remote-id> </upstream> </pkgmetadata> diff --git a/app-admin/passwordsafe/passwordsafe-1.04_beta.ebuild b/app-admin/passwordsafe/passwordsafe-1.04_beta.ebuild new file mode 100644 index 000000000000..75748b6b1870 --- /dev/null +++ b/app-admin/passwordsafe/passwordsafe-1.04_beta.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WX_GTK_VER="3.0" + +inherit eutils flag-o-matic wxwidgets cmake-utils + +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="minimal test qr yubikey +xml" + +RDEPEND="xml? ( dev-libs/xerces-c ) + qr? ( media-gfx/qrencode ) + sys-apps/util-linux + x11-libs/libXt + x11-libs/libXtst + x11-libs/wxGTK:${WX_GTK_VER}[X] + !minimal? ( !!app-misc/pwsafe ) + yubikey? ( sys-auth/ykpers )" +DEPEND="${RDEPEND} + app-arch/zip + sys-devel/gettext + test? ( dev-cpp/gtest )" + +S=${WORKDIR}/pwsafe-${MY_PV} + +pkg_pretend() { + einfo "Checking for -std=c++11 support in compiler" + test-flags-CXX -std=c++11 > /dev/null || die +} + +src_prepare() { + cmake-utils_src_prepare + + # binary name pwsafe is in use by app-misc/pwsafe, we use passwordsafe + # instead. Perform required changes in linking files + sed -i install/desktop/pwsafe.desktop -e "s/pwsafe/${PN}/g" || die + sed -i docs/pwsafe.1 \ + -e 's/PWSAFE/PASSWORDSAFE/' \ + -e "s/^.B pwsafe/.B ${PN}/" || die +} + +src_configure() { + need-wxwidgets unicode + + local mycmakeargs=( + -DNO_QR=$(usex !qr) + -DNO_GTEST=$(usex !test) + -DXML_XERCESC=$(usex xml) + -DNO_YUBI=$(usex !yubikey) + ) + + cmake-utils_src_configure +} + +src_install() { + pushd "${BUILD_DIR}" || die + if use minimal; then + newbin pwsafe ${PN} + else + dobin pwsafe + dosym pwsafe /usr/bin/${PN} + fi + insinto /usr/share/locale + doins -r src/ui/wxWidgets/I18N/mos/* + + # The upstream Makefile builds this .zip file from html source material for + # use by the package's internal help system. Must prevent + # Portage from applying additional compression. + docompress -x /usr/share/doc/${PN}/help + insinto /usr/share/doc/${PN}/help + doins help/*.zip + + popd || die + + newman docs/pwsafe.1 ${PN}.1 + + dodoc README.md README.LINUX.* docs/{ReleaseNotes.txt,ChangeLog.txt} + + insinto /usr/share/pwsafe/xml + doins xml/* + + newicon install/graphics/pwsafe.png ${PN}.png + newmenu install/desktop/pwsafe.desktop ${PN}.desktop +} |