Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 371723
Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +10 lines)
Line  Link Here
0
-- keepass-2.19.ebuild
0
++ keepass-2.19.ebuild
Lines 14-20 Link Here
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~amd64 ~x86"
16
KEYWORDS="~amd64 ~x86"
17
IUSE="aot autotype"
17
IUSE="aot"
18
18
19
RDEPEND=">=dev-lang/mono-2.10.5"
19
RDEPEND=">=dev-lang/mono-2.10.5"
20
DEPEND="${RDEPEND}
20
DEPEND="${RDEPEND}
Lines 30-35 Link Here
30
30
31
	# sgen not available on mono
31
	# sgen not available on mono
32
	epatch "${FILESDIR}/${PN}-2.19-skip-sgen-if-unix.patch"
32
	epatch "${FILESDIR}/${PN}-2.19-skip-sgen-if-unix.patch"
33
33
	# KeePass looks for some XSL files in the same folder as the executable,
34
	# KeePass looks for some XSL files in the same folder as the executable,
34
	# we prefer to have it in /usr/share/KeePass
35
	# we prefer to have it in /usr/share/KeePass
35
	epatch "${FILESDIR}/${PN}-2.19-xsl-path-detection.patch"
36
	epatch "${FILESDIR}/${PN}-2.19-xsl-path-detection.patch"
Lines 63-78 Link Here
63
	doexe Build/KeePass/Release/KeePass.exe
64
	doexe Build/KeePass/Release/KeePass.exe
64
65
65
	# Copy the AOT compilation result
66
	# Copy the AOT compilation result
66
        if use aot; then
67
	if use aot; then
67
                doexe Build/KeePass/Release/KeePass.exe.so
68
		doexe Build/KeePass/Release/KeePass.exe.so
68
        fi
69
	fi
69
70
70
	# Prepare the icons
71
	# Prepare the icons
71
	newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png"
72
	newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png"
72
	newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png"
73
	newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png"
73
74
74
	# Create a desktop entry and associate it with the KeePass mime type
75
	# Create a desktop entry and associate it with the KeePass mime type
75
	make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2"
76
	make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2;"
76
77
77
	# MIME descriptor for .kdbx files
78
	# MIME descriptor for .kdbx files
78
	insinto /usr/share/mime/packages/
79
	insinto /usr/share/mime/packages/
Lines 86-92 Link Here
86
pkg_postinst() {
87
pkg_postinst() {
87
	gnome2_icon_cache_update
88
	gnome2_icon_cache_update
88
	fdo-mime_mime_database_update
89
	fdo-mime_mime_database_update
89
        fdo-mime_desktop_database_update
90
	fdo-mime_desktop_database_update
90
91
91
	elog "Optional dependencies:"
92
	elog "Optional dependencies:"
92
	elog "	x11-misc/xdotool (enables autotype)"
93
	elog "	x11-misc/xdotool (enables autotype)"
Lines 94-97 Link Here
94
95
95
pkg_postrm() {
96
pkg_postrm() {
96
	gnome2_icon_cache_update
97
	gnome2_icon_cache_update
98
	fdo-mime_mime_database_update
99
	fdo-mime_desktop_database_update
97
}
100
}

Return to bug 371723