Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mrueg:master commit in: app-admin/passwordsafe/files/, app-admin/passwordsafe/
Date: Sun, 06 Mar 2016 15:02:23
Message-Id: 1457276527.e3f5626fc90cc7b53338c64b5f3020aff82f6fb3.mrueg@gentoo
1 commit: e3f5626fc90cc7b53338c64b5f3020aff82f6fb3
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 6 15:02:07 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 6 15:02:07 2016 +0000
6 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=e3f5626f
7
8 app-admin/passwordsafe: Remove old
9
10 Package-Manager: portage-2.2.27
11
12 app-admin/passwordsafe/Manifest | 1 -
13 .../passwordsafe-0.98_beta-fix-noyubikey.patch | 37 ---------
14 .../files/passwordsafe-0.98_beta-fix-yubikey.patch | 23 ------
15 .../passwordsafe/passwordsafe-0.98_beta.ebuild | 90 ----------------------
16 4 files changed, 151 deletions(-)
17
18 diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest
19 index e82926c..6e8cf27 100644
20 --- a/app-admin/passwordsafe/Manifest
21 +++ b/app-admin/passwordsafe/Manifest
22 @@ -1,2 +1 @@
23 DIST passwordsafe-0.98.1_beta.tar.gz 13836527 SHA256 d44bd032ac92503b118e59c19d6d8cccae85e4abe3561f72a4ae58bffd33e2a5 SHA512 42eecb9d2f3ccfaab2dff3b4dedee3fcb97645632f7596c724dc0eeacef55d88fad7438b863990cb2964b3fdf6272aec2bb53be53bb185d9fe593eb351a459ab WHIRLPOOL 0303c5c7d092290143925ba8edf6972dfc901e27bdb6f02f2e14a3e234b8dd47eeb131be015356a2378254d6ea76ae2020c04149a9b9c65139b16c48ff78429f
24 -DIST passwordsafe-0.98_beta.tar.gz 13833262 SHA256 a15afcd6a6b3a13ba9651cd488d7268044fbb9db3bc002972cc845c5ba85ec56 SHA512 dc15906638e71c9feceb68c6e1bf9c2682e26dba8e35e7fc4b64ccb997b8b3d8e97af7938cc224ea9ed7e3910b657f4f7900d3768c6d25ffd26c65e3fd3c9cf9 WHIRLPOOL bdc016a2c0cdda1ba0a96e6118d2e9c28c6cd3ae521377ebed04c7e00cd590059a900b6999d0d30729a45b157c1bc37e3734b08a38a7ee4acc46582b16452c41
25
26 diff --git a/app-admin/passwordsafe/files/passwordsafe-0.98_beta-fix-noyubikey.patch b/app-admin/passwordsafe/files/passwordsafe-0.98_beta-fix-noyubikey.patch
27 deleted file mode 100644
28 index 0cd407c..0000000
29 --- a/app-admin/passwordsafe/files/passwordsafe-0.98_beta-fix-noyubikey.patch
30 +++ /dev/null
31 @@ -1,37 +0,0 @@
32 -From e12b2f64717efa18589784f78894303ebaedf2a5 Mon Sep 17 00:00:00 2001
33 -From: Vladimir Timofeev <vovkasm@×××××.com>
34 -Date: Fri, 29 Jan 2016 02:44:12 +0300
35 -Subject: [PATCH] Fix cmake build on Linux without yubikey lib (NO_YUBI option)
36 -
37 ----
38 - src/os/CMakeLists.txt | 6 +++++-
39 - 1 file changed, 5 insertions(+), 1 deletion(-)
40 -
41 -diff --git a/src/os/CMakeLists.txt b/src/os/CMakeLists.txt
42 -index dfdcd6a..652bd47 100644
43 ---- a/src/os/CMakeLists.txt
44 -+++ b/src/os/CMakeLists.txt
45 -@@ -46,7 +46,6 @@ if (WIN32)
46 - elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
47 - set (OS_SRCS
48 - linux/KeySend.cpp
49 -- linux/PWYubi.cpp
50 - linux/UUID.cpp
51 - linux/debug.cpp
52 - linux/dir.cpp
53 -@@ -65,10 +64,15 @@ if (WIN32)
54 - linux/utf8conv.cpp
55 - linux/xsendstring.cpp
56 - )
57 -+ set (OS_YUBI_SRC linux/PWYubi.cpp)
58 - else()
59 - message (FATAL_ERROR "Unsupported OS "
60 - ${CMAKE_SYSTEM_NAME}
61 - " - can't build OS library")
62 - endif()
63 -
64 -+if(HAVE_YKPERS_H)
65 -+ list(APPEND OS_SRC ${OS_YUBI_SRC})
66 -+endif()
67 -+
68 - add_library(os ${OS_SRCS})
69
70 diff --git a/app-admin/passwordsafe/files/passwordsafe-0.98_beta-fix-yubikey.patch b/app-admin/passwordsafe/files/passwordsafe-0.98_beta-fix-yubikey.patch
71 deleted file mode 100644
72 index 4b1e70b..0000000
73 --- a/app-admin/passwordsafe/files/passwordsafe-0.98_beta-fix-yubikey.patch
74 +++ /dev/null
75 @@ -1,23 +0,0 @@
76 -From 747a241892b1deb8ba12216ac23656dea8b4400d Mon Sep 17 00:00:00 2001
77 -From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@××××.eu>
78 -Date: Tue, 2 Feb 2016 19:42:07 +0100
79 -Subject: [PATCH] Fix cmake build on Linux with yubikey lib
80 -
81 -Commit e12b2f64717efa18589784f78894303ebaedf2a5 included a typo that resulted in a failing build of pwsafe with Yubikey support on Linux.
82 ----
83 - src/os/CMakeLists.txt | 2 +-
84 - 1 file changed, 1 insertion(+), 1 deletion(-)
85 -
86 -diff --git a/src/os/CMakeLists.txt b/src/os/CMakeLists.txt
87 -index 652bd47..a5597b0 100644
88 ---- a/src/os/CMakeLists.txt
89 -+++ b/src/os/CMakeLists.txt
90 -@@ -72,7 +72,7 @@ else()
91 - endif()
92 -
93 - if(HAVE_YKPERS_H)
94 -- list(APPEND OS_SRC ${OS_YUBI_SRC})
95 -+ list(APPEND OS_SRCS ${OS_YUBI_SRC})
96 - endif()
97 -
98 - add_library(os ${OS_SRCS})
99
100 diff --git a/app-admin/passwordsafe/passwordsafe-0.98_beta.ebuild b/app-admin/passwordsafe/passwordsafe-0.98_beta.ebuild
101 deleted file mode 100644
102 index 51be156..0000000
103 --- a/app-admin/passwordsafe/passwordsafe-0.98_beta.ebuild
104 +++ /dev/null
105 @@ -1,90 +0,0 @@
106 -# Copyright 1999-2016 Gentoo Foundation
107 -# Distributed under the terms of the GNU General Public License v2
108 -# $Id$
109 -
110 -EAPI=5
111 -
112 -WX_GTK_VER="3.0"
113 -
114 -inherit eutils flag-o-matic wxwidgets cmake-utils
115 -
116 -MY_PV="${PV/_beta/BETA}"
117 -DESCRIPTION="Password manager with wxGTK based frontend"
118 -HOMEPAGE="http://pwsafe.org/ https://github.com/pwsafe/pwsafe/"
119 -SRC_URI="https://github.com/pwsafe/pwsafe/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
120 -
121 -LICENSE="Artistic-2"
122 -SLOT="0"
123 -KEYWORDS="~amd64"
124 -IUSE="minimal test yubikey +xml"
125 -
126 -RDEPEND="xml? ( dev-libs/xerces-c )
127 - sys-apps/util-linux
128 - x11-libs/libXt
129 - x11-libs/libXtst
130 - x11-libs/wxGTK:${WX_GTK_VER}[X]
131 - !minimal? ( !!app-misc/pwsafe )
132 - yubikey? ( sys-auth/ykpers )"
133 -DEPEND="${RDEPEND}
134 - sys-devel/gettext
135 - test? ( dev-cpp/gtest )"
136 -
137 -S=${WORKDIR}/pwsafe-${MY_PV}
138 -
139 -pkg_pretend() {
140 - einfo "Checking for -std=c++11 support in compiler"
141 - test-flags-CXX -std=c++11 > /dev/null || die
142 -}
143 -
144 -src_prepare() {
145 - # binary name pwsafe is in use by app-misc/pwsafe, we use passwordsafe
146 - # instead. Perform required changes in linking files
147 - sed -i install/desktop/pwsafe.desktop -e "s/pwsafe/${PN}/g" || die
148 - sed -i docs/pwsafe.1 \
149 - -e 's/PWSAFE/PASSWORDSAFE/' \
150 - -e "s/^.B pwsafe/.B ${PN}/" || die
151 - use test || sed -i -e '/find_package(GTest REQUIRED)/s/^/#/' \
152 - -e '/add_subdirectory (src\/test)/s/^/#/' CMakeLists.txt || die
153 - epatch "${FILESDIR}"/${P}-fix-noyubikey.patch\
154 - "${FILESDIR}"/${P}-fix-yubikey.patch
155 -}
156 -
157 -src_configure() {
158 - need-wxwidgets unicode
159 -
160 - local mycmakeargs=( $(usex yubikey '' '-DNO_YUBI=ON')
161 - $(usex xml '' '-DNO_XML=ON') )
162 -
163 - cmake-utils_src_configure
164 -}
165 -
166 -src_install() {
167 - pushd "${BUILD_DIR}" || die
168 - if use minimal; then
169 - newbin pwsafe ${PN}
170 - else
171 - dobin pwsafe
172 - dosym pwsafe /usr/bin/${PN}
173 - fi
174 - insinto /usr/share/locale
175 - doins -r src/ui/wxWidgets/I18N/mos/*
176 -
177 - # The upstream Makefile builds this .zip file from html source material for
178 - # use by the package's internal help system. Must prevent
179 - # Portage from applying additional compression.
180 - docompress -x /usr/share/doc/${PN}/help
181 - insinto /usr/share/doc/${PN}/help
182 - doins help/*.zip
183 -
184 - popd || die
185 -
186 - newman docs/pwsafe.1 ${PN}.1
187 -
188 - dodoc README.txt docs/{ReleaseNotes.txt,ChangeLog.txt}
189 -
190 - insinto /usr/share/pwsafe/xml
191 - doins xml/*
192 -
193 - newicon install/graphics/pwsafe.png ${PN}.png
194 - newmenu install/desktop/pwsafe.desktop ${PN}.desktop
195 -}