Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/keepass/
Date: Thu, 28 Feb 2019 12:45:27
Message-Id: 1551357911.7ff419fb65f255464ca0a854146997e407ba85f9.kensington@gentoo
1 commit: 7ff419fb65f255464ca0a854146997e407ba85f9
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 28 12:44:34 2019 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 28 12:45:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff419fb
7
8 app-admin/keepass: remove 2.40
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 app-admin/keepass/Manifest | 1 -
14 app-admin/keepass/keepass-2.40-r1.ebuild | 113 -------------------------------
15 2 files changed, 114 deletions(-)
16
17 diff --git a/app-admin/keepass/Manifest b/app-admin/keepass/Manifest
18 index 521f2d8ea96..909171f8610 100644
19 --- a/app-admin/keepass/Manifest
20 +++ b/app-admin/keepass/Manifest
21 @@ -1,2 +1 @@
22 -DIST KeePass-2.40-Source.zip 5136918 BLAKE2B 7b5071cbe3bc5f20450a094a4b8969e2e25f6bba27d88ee5c2c25f2706ed3cf18e721ba53ff54c78db6ea1e167cef1108611fc8253a9d6e19eb3f9d1f3317c73 SHA512 222f7e7ef65be8b0d75baa0a6e871d5edad1b570b64f261405b843d7387ec1faeb4138afb8b31934d70eebe0add297681028cb4f3acfcbe4f518c763fe6c0145
23 DIST KeePass-2.41-Source.zip 5141195 BLAKE2B 7f61efa6d73fbfd5de283567a1673f5757619ebb81f3daa3fba82c887874f2cdb15f74221bf389013fe4cf19c83f00f87de2c596d22a22f5f38b5236dab01e44 SHA512 0d9398f529e004df6a4d3e0b8e34a1324b1806bf44987e9cb2d7535eaf02192662e72c89f1e41b7da01d23b0d686fbbca7a956ef7873fd8b1948847fbf5d27a5
24
25 diff --git a/app-admin/keepass/keepass-2.40-r1.ebuild b/app-admin/keepass/keepass-2.40-r1.ebuild
26 deleted file mode 100644
27 index 6a0068dce46..00000000000
28 --- a/app-admin/keepass/keepass-2.40-r1.ebuild
29 +++ /dev/null
30 @@ -1,113 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -inherit eutils gnome2-utils xdg-utils
37 -
38 -MY_PN="KeePass"
39 -DESCRIPTION="A free, open source, light-weight and easy-to-use password manager"
40 -HOMEPAGE="https://keepass.info/"
41 -SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -KEYWORDS="amd64 x86"
46 -IUSE="aot"
47 -
48 -COMMON_DEPEND="dev-lang/mono"
49 -DEPEND="${COMMON_DEPEND}
50 - app-arch/unzip
51 -"
52 -RDEPEND="${COMMON_DEPEND}
53 - dev-dotnet/libgdiplus[cairo]
54 -"
55 -
56 -S="${WORKDIR}"
57 -PATCHES=( "${FILESDIR}/${PN}-2.36-xsl-path-detection.patch" )
58 -
59 -src_prepare() {
60 - # KeePass looks for some XSL files in the same folder as the executable,
61 - # we prefer to have it in /usr/share/KeePass. Apply patch using base function.
62 - # This XSL file will not be upstreamed since the KeePass creator said that
63 - # including this patch would break the Portable USB version of KeePass
64 - # (which keeps/looks for xsl files in its own folder)
65 - default
66 -
67 - # Switch into build dir so the mono prepration script works correctly
68 - pushd Build || die
69 - source PrepMonoDev.sh || die
70 - popd || die
71 -}
72 -
73 -src_compile() {
74 - export MONO_REGISTRY_PATH=/dev/null # bug 659808
75 -
76 - # Build with Release target
77 - xbuild /target:KeePass /property:Configuration=Release || die
78 -
79 - # Run Ahead Of Time compiler on the binary
80 - if use aot; then
81 - cp Ext/KeePass.exe.config Build/KeePass/Release/ || die
82 - mono --aot -O=all Build/KeePass/Release/KeePass.exe || die
83 - fi
84 -}
85 -
86 -src_install() {
87 - # Wrapper script to launch mono
88 - make_wrapper "${PN}" "mono /usr/$(get_libdir)/${PN}/KeePass.exe"
89 -
90 - # Some XSL files
91 - insinto "/usr/share/${PN}/XSL"
92 - doins Ext/XSL/*
93 -
94 - insinto "/usr/$(get_libdir)/${PN}"
95 - exeinto "/usr/$(get_libdir)/${PN}"
96 -
97 - doins Ext/KeePass.exe.config
98 -
99 - # Default configuration, simply says to use user-specific configuration
100 - doins Ext/KeePass.config.xml
101 -
102 - # The actual executable
103 - doexe Build/KeePass/Release/KeePass.exe
104 -
105 - # Copy the AOT compilation result
106 - if use aot; then
107 - doexe Build/KeePass/Release/KeePass.exe.so
108 - fi
109 -
110 - # Prepare the icons
111 - newicon -s 256 Ext/Icons_04_CB/Finals/plockb.png "${PN}.png"
112 - newicon -s 256 -t gnome -c mimetypes Ext/Icons_04_CB/Finals/plockb.png "application-x-${PN}2.png"
113 -
114 - # Create a desktop entry and associate it with the KeePass mime type
115 - make_desktop_entry "${PN}" "${MY_PN}" "${PN}" "System;Security" "MimeType=application/x-keepass2;\nStartupWMClass=KeePass2;"
116 -
117 - # MIME descriptor for .kdbx files
118 - insinto /usr/share/mime/packages
119 - doins "${FILESDIR}/${PN}.xml"
120 -
121 - # sed, because patching this really sucks
122 - sed -i 's/mono/mono --verify-all/g' "${D}/usr/bin/keepass" || die
123 -}
124 -
125 -pkg_postinst() {
126 - gnome2_icon_cache_update
127 - xdg_desktop_database_update
128 - xdg_mimeinfo_database_update
129 -
130 - if ! has_version x11-misc/xdotool ; then
131 - elog "Optional dependencies:"
132 - elog " x11-misc/xdotool (enables autotype/autofill)"
133 - fi
134 -
135 - elog "Some systems may experience issues with copy and paste operations."
136 - elog "If you encounter this, please install x11-misc/xsel."
137 -}
138 -
139 -pkg_postrm() {
140 - gnome2_icon_cache_update
141 - xdg_desktop_database_update
142 - xdg_mimeinfo_database_update
143 -}