1 |
commit: 31d82fd523531c48db76b9aad9790a1fa42321c3 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 23 02:05:25 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 23 02:08:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31d82fd5 |
7 |
|
8 |
app-admin/keepass: remove 2.35-r1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
app-admin/keepass/Manifest | 1 - |
13 |
.../files/keepass-2.20-xsl-path-detection.patch | 45 -------- |
14 |
.../files/keepass-2.35-new-monoprep-script.sh | 59 ---------- |
15 |
app-admin/keepass/keepass-2.35-r1.ebuild | 120 --------------------- |
16 |
4 files changed, 225 deletions(-) |
17 |
|
18 |
diff --git a/app-admin/keepass/Manifest b/app-admin/keepass/Manifest |
19 |
index a40911b337b..f9b9d9129eb 100644 |
20 |
--- a/app-admin/keepass/Manifest |
21 |
+++ b/app-admin/keepass/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST KeePass-2.35-Source.zip 4840873 SHA256 5faad9381af2f9d808d65ee3d880ff3bca9352c7ce886fea95d54f9169e863df SHA512 9f9bb0875c3261e004f655356e8302858afebb7d41a4e4619affaa5e8e5375ffe4fc2b251db10d1d18ef94e07d60dd9bd8812ecedcd5de4c4fbe641c6a37dede WHIRLPOOL db1d270ac5402021add60739ca4916d9dd81999c53b095d143a34a2886f47c354170e41fee63027be83866c541022c79c3c21111a501cd51bafb972e5fe277e2 |
24 |
DIST KeePass-2.36-Source.zip 5063221 SHA256 de7e3e9d9bedab13e4d66b0ee941b2ebedaa08d8090f7cd78bd0fc019187d8c8 SHA512 16d51ed6bc437172765f69d1d67862afe7219a0898d13b4609198bbd7b5107620f1be418f5ea6ba23a5e3c7ca12d45ba3f0f3778c516eea6b2b953bc291cfe41 WHIRLPOOL 1d9fbf662757e09c4854010da9f6960fe4bf794eb694b37a9f63d813c1e1d1471257a66f01eac761fed5b06831f659cb81f11eba8858ee4e128cd578a19fcae8 |
25 |
|
26 |
diff --git a/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch b/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch |
27 |
deleted file mode 100644 |
28 |
index d3805feb0d9..00000000000 |
29 |
--- a/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch |
30 |
+++ /dev/null |
31 |
@@ -1,45 +0,0 @@ |
32 |
-KeePass looks for some resources (XSL files) in the executable directory, |
33 |
-however under UNIX system this not a good idea, so we look into the |
34 |
-CommonApplicationData SpecialFolder, which usually maps to "/usr/share/". |
35 |
-So the final search path should be "/usr/share/KeePass/XSL/". |
36 |
- |
37 |
-diff --git a/KeePass/Forms/AboutForm.cs b/KeePass/Forms/AboutForm.cs |
38 |
-index 8a04c87..6083c00 100644 |
39 |
---- a/KeePass/Forms/AboutForm.cs |
40 |
-+++ b/KeePass/Forms/AboutForm.cs |
41 |
-@@ -31,9 +31,11 @@ using KeePass.UI; |
42 |
- using KeePass.Resources; |
43 |
- using KeePass.Util; |
44 |
- using KeePass.DataExchange; |
45 |
-+using KeePass.Native; |
46 |
- |
47 |
- using KeePassLib; |
48 |
- using KeePassLib.Utility; |
49 |
-+using KeePassLib.Native; |
50 |
- |
51 |
- namespace KeePass.Forms |
52 |
- { |
53 |
-@@ -92,8 +94,21 @@ namespace KeePass.Forms |
54 |
- m_lvComponents.Items.Add(lvi); |
55 |
- |
56 |
- lvi = new ListViewItem(KPRes.XslStylesheetsKdbx); |
57 |
-- string strPath = WinUtil.GetExecutable(); |
58 |
-- strPath = UrlUtil.GetFileDirectory(strPath, true, false); |
59 |
-+ |
60 |
-+ string strPath; |
61 |
-+ if (NativeLib.IsUnix()) |
62 |
-+ { |
63 |
-+ strPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); |
64 |
-+ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); |
65 |
-+ strPath += PwDefs.ShortProductName.ToLower(); |
66 |
-+ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); |
67 |
-+ } |
68 |
-+ else |
69 |
-+ { |
70 |
-+ strPath = WinUtil.GetExecutable(); |
71 |
-+ strPath = UrlUtil.GetFileDirectory(strPath, true, false); |
72 |
-+ } |
73 |
-+ |
74 |
- strPath += AppDefs.XslFilesDir; |
75 |
- strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); |
76 |
- bool bInstalled = File.Exists(strPath + AppDefs.XslFileHtmlLite); |
77 |
|
78 |
diff --git a/app-admin/keepass/files/keepass-2.35-new-monoprep-script.sh b/app-admin/keepass/files/keepass-2.35-new-monoprep-script.sh |
79 |
deleted file mode 100644 |
80 |
index c6fc41f839c..00000000000 |
81 |
--- a/app-admin/keepass/files/keepass-2.35-new-monoprep-script.sh |
82 |
+++ /dev/null |
83 |
@@ -1,59 +0,0 @@ |
84 |
-#!/bin/sh |
85 |
- |
86 |
-buildDir="$(pwd)" |
87 |
-keePassRootDir="${buildDir}/.." |
88 |
- |
89 |
-copyKeePassIcons() |
90 |
-{ |
91 |
- cd "${buildDir}" |
92 |
- cp -f ../Ext/Icons_04_CB/Finals2/plockb.ico ../KeePass/KeePass.ico |
93 |
- cp -f ../Ext/Icons_04_CB/Finals2/plockb.ico ../KeePass/Resources/Images/KeePass.ico |
94 |
-} |
95 |
- |
96 |
-sanitizeKeePassProjectFiles() |
97 |
-{ |
98 |
- cd "${keePassRootDir}/KeePass" |
99 |
- |
100 |
- local keePassProjectFile="KeePass.csproj" |
101 |
- local keePassProjectSolution="KeePass.sln" |
102 |
- |
103 |
- sed -i 's!<SignAssembly>true</SignAssembly>!<SignAssembly>false</SignAssembly>!g' "${keePassProjectFile}" |
104 |
- sed -i 's! ToolsVersion="3.5"!!g' "${keePassProjectFile}" |
105 |
- sed -i '/sgen\.exe/d' "${keePassProjectFile}" |
106 |
- |
107 |
- # Update solution .NET format to 11 (This targets Mono 4 rather than 3.5) |
108 |
- cd "${keePassRootDir}" |
109 |
- sed -i 's!Format Version 10.00!Format Version 11.00!g' "${keePassProjectSolution}" |
110 |
- |
111 |
- cd "${buildDir}" |
112 |
-} |
113 |
- |
114 |
-sanitizeKeePassLibProjectFile() |
115 |
-{ |
116 |
- cd "${keePassRootDir}/KeePassLib" |
117 |
- |
118 |
- local keePassProjectLibFile="KeePassLib.csproj" |
119 |
- sed -i 's!<SignAssembly>true</SignAssembly>!<SignAssembly>false</SignAssembly>!g' "${keePassProjectLibFile}" |
120 |
- sed -i 's! ToolsVersion="3.5"!!g' "${keePassProjectLibFile}" |
121 |
- |
122 |
- cd "${buildDir}" |
123 |
-} |
124 |
- |
125 |
- |
126 |
-sanitizeTrlUtilProjectFile() |
127 |
-{ |
128 |
- cd "${keePassRootDir}/Translation/TrlUtil" |
129 |
- |
130 |
- local trlUtilProjectFile="TrlUtil.csproj" |
131 |
- sed -i 's! ToolsVersion="3.5"!!g' "${trlUtilProjectFile}" |
132 |
- |
133 |
- cd "${buildDir}" |
134 |
-} |
135 |
- |
136 |
-# Start |
137 |
-copyKeePassIcons |
138 |
- |
139 |
-# Remove ToolsVersion 3.5 References so that newer Mono compilers can be used |
140 |
-sanitizeKeePassProjectFiles |
141 |
-sanitizeKeePassLibProjectFile |
142 |
-sanitizeTrlUtilProjectFile |
143 |
|
144 |
diff --git a/app-admin/keepass/keepass-2.35-r1.ebuild b/app-admin/keepass/keepass-2.35-r1.ebuild |
145 |
deleted file mode 100644 |
146 |
index 0a4b7fe32aa..00000000000 |
147 |
--- a/app-admin/keepass/keepass-2.35-r1.ebuild |
148 |
+++ /dev/null |
149 |
@@ -1,120 +0,0 @@ |
150 |
-# Copyright 1999-2017 Gentoo Foundation |
151 |
-# Distributed under the terms of the GNU General Public License v2 |
152 |
- |
153 |
-EAPI=6 |
154 |
- |
155 |
-inherit eutils fdo-mime gnome2-utils multilib |
156 |
- |
157 |
-MY_PN="KeePass" |
158 |
-DESCRIPTION="A free, open source, light-weight and easy-to-use password manager" |
159 |
-HOMEPAGE="http://keepass.info/" |
160 |
-SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip" |
161 |
- |
162 |
-LICENSE="GPL-2" |
163 |
-SLOT="0" |
164 |
-KEYWORDS="amd64 x86" |
165 |
-IUSE="aot" |
166 |
- |
167 |
-COMMON_DEPEND="dev-lang/mono" |
168 |
-DEPEND="${COMMON_DEPEND} |
169 |
- app-arch/unzip" |
170 |
-RDEPEND="${COMMON_DEPEND} |
171 |
- dev-dotnet/libgdiplus[cairo]" |
172 |
- |
173 |
-S="${WORKDIR}" |
174 |
-PATCHES=( "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch" ) |
175 |
- |
176 |
-src_prepare() { |
177 |
- # KeePass looks for some XSL files in the same folder as the executable, |
178 |
- # we prefer to have it in /usr/share/KeePass. Apply patch using base function. |
179 |
- # This XSL file will not be upstreamed since the KeePass creator said that |
180 |
- # including this patch would break the Portable USB version of KeePass |
181 |
- # (which keeps/looks for xsl files in its own folder) |
182 |
- default |
183 |
- |
184 |
- # New Mono Prep Script until keepass 2.36+ comes out. |
185 |
- # This script has been upstreamed, still waiting for final confirmation. |
186 |
- local newMonoPrepScript="${FILESDIR}/keepass-2.35-new-monoprep-script.sh" |
187 |
- |
188 |
- # Switch into build dir so the mono prepration script works correctly |
189 |
- cd Build || die |
190 |
- cp -f "${newMonoPrepScript}" PrepMonoDev.sh |
191 |
- source PrepMonoDev.sh || die |
192 |
- cd ../ || die |
193 |
-} |
194 |
- |
195 |
-src_compile() { |
196 |
- # Build with Release target |
197 |
- xbuild /target:KeePass /property:Configuration=Release || die |
198 |
- |
199 |
- # Run Ahead Of Time compiler on the binary |
200 |
- if use aot; then |
201 |
- cp Ext/KeePass.exe.config Build/KeePass/Release/ || die |
202 |
- mono --aot -O=all Build/KeePass/Release/KeePass.exe || die |
203 |
- fi |
204 |
-} |
205 |
- |
206 |
-src_install() { |
207 |
- # Wrapper script to launch mono |
208 |
- make_wrapper "${PN}" "mono /usr/$(get_libdir)/${PN}/KeePass.exe" |
209 |
- |
210 |
- # Some XSL files |
211 |
- insinto "/usr/share/${PN}/XSL" |
212 |
- doins Ext/XSL/* |
213 |
- |
214 |
- insinto "/usr/$(get_libdir)/${PN}/" |
215 |
- exeinto "/usr/$(get_libdir)/${PN}/" |
216 |
- |
217 |
- doins Ext/KeePass.exe.config |
218 |
- |
219 |
- # Default configuration, simply says to use user-specific configuration |
220 |
- doins Ext/KeePass.config.xml |
221 |
- |
222 |
- # The actual executable |
223 |
- doexe Build/KeePass/Release/KeePass.exe |
224 |
- |
225 |
- # Copy the AOT compilation result |
226 |
- if use aot; then |
227 |
- doexe Build/KeePass/Release/KeePass.exe.so |
228 |
- fi |
229 |
- |
230 |
- # Prepare the icons |
231 |
- newicon -s 256 Ext/Icons_04_CB/Finals/plockb.png "${PN}.png" |
232 |
- newicon -s 256 -t gnome -c mimetypes Ext/Icons_04_CB/Finals/plockb.png "application-x-${PN}2.png" |
233 |
- |
234 |
- # Create a desktop entry and associate it with the KeePass mime type |
235 |
- make_desktop_entry "${PN}" "${MY_PN}" "${PN}" "System;Security" "MimeType=application/x-keepass2;" |
236 |
- |
237 |
- # MIME descriptor for .kdbx files |
238 |
- insinto /usr/share/mime/packages/ |
239 |
- doins "${FILESDIR}/${PN}.xml" |
240 |
- |
241 |
- # sed, because patching this really sucks |
242 |
- sed -i 's/mono/mono --verify-all/g' "${D}/usr/bin/keepass" |
243 |
-} |
244 |
- |
245 |
-pkg_preinst() { |
246 |
- gnome2_icon_savelist |
247 |
-} |
248 |
- |
249 |
-pkg_postinst() { |
250 |
- _update_caches |
251 |
- |
252 |
- if ! has_version x11-misc/xdotool ; then |
253 |
- elog "Optional dependencies:" |
254 |
- elog " x11-misc/xdotool (enables autotype/autofill)" |
255 |
- fi |
256 |
- |
257 |
- elog "Some systems may experience issues with copy and paste operations." |
258 |
- elog "If you encounter this, please install x11-misc/xsel." |
259 |
-} |
260 |
- |
261 |
-pkg_postrm() { |
262 |
- _update_caches |
263 |
-} |
264 |
- |
265 |
-_update_caches() { |
266 |
- gnome2_icon_cache_update |
267 |
- fdo-mime_mime_database_update |
268 |
- fdo-mime_desktop_database_update |
269 |
-} |