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