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