Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/passwordsafe/
Date: Thu, 07 Jul 2016 17:58:41
Message-Id: 1467892894.fab5fcc6cbc209f49f1ec6776bd3b0e28ecc246e.mrueg@gentoo
1 commit: fab5fcc6cbc209f49f1ec6776bd3b0e28ecc246e
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 7 12:01:34 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 7 12:01:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fab5fcc6
7
8 app-admin/passwordsafe: Version bump to 0.99_beta
9
10 Package-Manager: portage-2.2.28
11
12 app-admin/passwordsafe/Manifest | 1 +
13 .../passwordsafe/passwordsafe-0.99_beta.ebuild | 88 ++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest
17 index 6e8cf27..b082324 100644
18 --- a/app-admin/passwordsafe/Manifest
19 +++ b/app-admin/passwordsafe/Manifest
20 @@ -1 +1,2 @@
21 DIST passwordsafe-0.98.1_beta.tar.gz 13836527 SHA256 d44bd032ac92503b118e59c19d6d8cccae85e4abe3561f72a4ae58bffd33e2a5 SHA512 42eecb9d2f3ccfaab2dff3b4dedee3fcb97645632f7596c724dc0eeacef55d88fad7438b863990cb2964b3fdf6272aec2bb53be53bb185d9fe593eb351a459ab WHIRLPOOL 0303c5c7d092290143925ba8edf6972dfc901e27bdb6f02f2e14a3e234b8dd47eeb131be015356a2378254d6ea76ae2020c04149a9b9c65139b16c48ff78429f
22 +DIST passwordsafe-0.99_beta.tar.gz 13867271 SHA256 d5369fe83e44dc5a3feb850b8bfb91d42a9ca11256470a561dd91c37c952571f SHA512 338317c0a618686d646a6e2ea50887429aab08e7b6f263a03a2befcaf23e3b706147a5e36a0c5b4b73bc1c762b31407ab797795a9229370a603459236d974694 WHIRLPOOL b7620ee0156d843d1c80ce46ae098cd8920d1eb023f45f0d566e8a32fd0323dc3e4cca99e9b2249969df6481af145ff50c98e4e4972590ffd41373a1fbeb1bda
23
24 diff --git a/app-admin/passwordsafe/passwordsafe-0.99_beta.ebuild b/app-admin/passwordsafe/passwordsafe-0.99_beta.ebuild
25 new file mode 100644
26 index 0000000..3634dff
27 --- /dev/null
28 +++ b/app-admin/passwordsafe/passwordsafe-0.99_beta.ebuild
29 @@ -0,0 +1,88 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +WX_GTK_VER="3.0"
37 +
38 +inherit eutils flag-o-matic wxwidgets cmake-utils
39 +
40 +MY_PV="${PV/_beta/BETA}"
41 +DESCRIPTION="Password manager with wxGTK based frontend"
42 +HOMEPAGE="https://pwsafe.org/ https://github.com/pwsafe/pwsafe/"
43 +SRC_URI="https://github.com/pwsafe/pwsafe/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Artistic-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="minimal test yubikey +xml"
49 +
50 +RDEPEND="xml? ( dev-libs/xerces-c )
51 + sys-apps/util-linux
52 + x11-libs/libXt
53 + x11-libs/libXtst
54 + x11-libs/wxGTK:${WX_GTK_VER}[X]
55 + !minimal? ( !!app-misc/pwsafe )
56 + yubikey? ( sys-auth/ykpers )"
57 +DEPEND="${RDEPEND}
58 + sys-devel/gettext
59 + test? ( dev-cpp/gtest )"
60 +
61 +S=${WORKDIR}/pwsafe-${MY_PV}
62 +
63 +pkg_pretend() {
64 + einfo "Checking for -std=c++11 support in compiler"
65 + test-flags-CXX -std=c++11 > /dev/null || die
66 +}
67 +
68 +src_prepare() {
69 + # binary name pwsafe is in use by app-misc/pwsafe, we use passwordsafe
70 + # instead. Perform required changes in linking files
71 + sed -i install/desktop/pwsafe.desktop -e "s/pwsafe/${PN}/g" || die
72 + sed -i docs/pwsafe.1 \
73 + -e 's/PWSAFE/PASSWORDSAFE/' \
74 + -e "s/^.B pwsafe/.B ${PN}/" || die
75 + use test || sed -i -e '/find_package(GTest REQUIRED)/s/^/#/' \
76 + -e '/add_subdirectory (src\/test)/s/^/#/' CMakeLists.txt || die
77 +}
78 +
79 +src_configure() {
80 + need-wxwidgets unicode
81 +
82 + local mycmakeargs=( $(usex yubikey '' '-DNO_YUBI=ON')
83 + $(usex xml '' '-DNO_XML=ON') )
84 +
85 + cmake-utils_src_configure
86 +}
87 +
88 +src_install() {
89 + pushd "${BUILD_DIR}" || die
90 + if use minimal; then
91 + newbin pwsafe ${PN}
92 + else
93 + dobin pwsafe
94 + dosym pwsafe /usr/bin/${PN}
95 + fi
96 + insinto /usr/share/locale
97 + doins -r src/ui/wxWidgets/I18N/mos/*
98 +
99 + # The upstream Makefile builds this .zip file from html source material for
100 + # use by the package's internal help system. Must prevent
101 + # Portage from applying additional compression.
102 + docompress -x /usr/share/doc/${PN}/help
103 + insinto /usr/share/doc/${PN}/help
104 + doins help/*.zip
105 +
106 + popd || die
107 +
108 + newman docs/pwsafe.1 ${PN}.1
109 +
110 + dodoc README.txt docs/{ReleaseNotes.txt,ChangeLog.txt}
111 +
112 + insinto /usr/share/pwsafe/xml
113 + doins xml/*
114 +
115 + newicon install/graphics/pwsafe.png ${PN}.png
116 + newmenu install/desktop/pwsafe.desktop ${PN}.desktop
117 +}