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