diff options
author | Hendrik v. Raven <hendrik@consetetur.de> | 2018-09-20 08:39:33 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-09-21 17:45:58 +0200 |
commit | 528a0e46c9372308ce4390d000389bc9ea863965 (patch) | |
tree | 47a25774296903c2c4779ecd2f749dcfd05b2fbb /app-admin/passwordsafe/passwordsafe-1.06_beta-r1.ebuild | |
parent | profiles: arm: Update media-video/libav[frei0r] p.use.stable.mask (diff) | |
download | gentoo-528a0e46c9372308ce4390d000389bc9ea863965.tar.gz gentoo-528a0e46c9372308ce4390d000389bc9ea863965.tar.bz2 gentoo-528a0e46c9372308ce4390d000389bc9ea863965.zip |
app-admin/passwordsafe: correct install locations
xml and help files have been moved to /usr/share/passwordsafe.
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Closes: https://github.com/gentoo/gentoo/pull/9679
Diffstat (limited to 'app-admin/passwordsafe/passwordsafe-1.06_beta-r1.ebuild')
-rw-r--r-- | app-admin/passwordsafe/passwordsafe-1.06_beta-r1.ebuild | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/app-admin/passwordsafe/passwordsafe-1.06_beta-r1.ebuild b/app-admin/passwordsafe/passwordsafe-1.06_beta-r1.ebuild new file mode 100644 index 000000000000..1a344e260218 --- /dev/null +++ b/app-admin/passwordsafe/passwordsafe-1.06_beta-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WX_GTK_VER="3.0-gtk3" + +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} + +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_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) + -DSYSTEM_GTEST=ON + -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/* + + insinto /usr/share/${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/${PN} + doins -r xml + + newicon install/graphics/pwsafe.png ${PN}.png + newmenu install/desktop/pwsafe.desktop ${PN}.desktop +} |