Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-crypt/tomb/
Date: Sat, 17 Apr 2021 20:00:33
Message-Id: 1618619216.d87046c51059bed0f6dfb5f4fe13c91244b86d59.andrewammerlaan@gentoo
1 commit: d87046c51059bed0f6dfb5f4fe13c91244b86d59
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 17 00:26:02 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sat Apr 17 00:26:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d87046c5
7
8 app-crypt/tomb: freedesktop stuff
9
10 please review, not sure about all that xdg things
11
12 Package-Manager: Portage-3.0.18, Repoman-3.0.3
13 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
14
15 .../{tomb-2.9-r2.ebuild => tomb-2.9-r3.ebuild} | 39 +++++++++++++++++++++-
16 1 file changed, 38 insertions(+), 1 deletion(-)
17
18 diff --git a/app-crypt/tomb/tomb-2.9-r2.ebuild b/app-crypt/tomb/tomb-2.9-r3.ebuild
19 similarity index 72%
20 rename from app-crypt/tomb/tomb-2.9-r2.ebuild
21 rename to app-crypt/tomb/tomb-2.9-r3.ebuild
22 index 226d8e67c..5dd083f3d 100644
23 --- a/app-crypt/tomb/tomb-2.9-r2.ebuild
24 +++ b/app-crypt/tomb/tomb-2.9-r3.ebuild
25 @@ -3,7 +3,7 @@
26
27 EAPI="7"
28
29 -inherit qmake-utils
30 +inherit qmake-utils xdg
31
32 MYP="${P^}"
33 DESCRIPTION="Tomb :: File Encryption on GNU/Linux"
34 @@ -102,16 +102,45 @@ src_install() {
35 popd || die
36 fi
37
38 + #qt tray
39 if use tray ; then
40 pushd extras/qt-tray || die
41 dobin tomb-qt-tray
42 popd || die
43 fi
44
45 + #kdf programs
46 pushd extras/kdf-keys || die
47 emake install
48 popd || die
49
50 + #is there an eclass for this?
51 + #pixmap
52 + insinto /usr/share/pixmaps
53 + doins extras/gtk-tray/monmort.xpm
54 + pushd extras/desktop
55 + #copied from install.zsh
56 + #mime types
57 + xdg-mime install dyne-tomb.xml
58 + xdg-icon-resource install --context mimetypes --size 32 monmort.xpm monmort
59 + xdg-icon-resource install --size 32 monmort.xpm dyne-monmort
60 + #desktop
61 + insinto /usr/share/applications
62 + doins tomb.desktop
63 + #menu
64 + insinto /etc/menu
65 + doins tomb
66 + #mime info
67 + insinto /usr/share/mime-info
68 + doins tomb.mime
69 + doins tomb.keys
70 + insinto /usr/lib/mime/packages
71 + newins tomb.mimepkg tomb
72 + #application entry
73 + insinto /usr/share/application-registry
74 + doins tomb.applications
75 + popd
76 +
77 #documentation
78 einstalldocs
79 cd doc/literate || die
80 @@ -125,3 +154,11 @@ src_test() {
81 pushd extras/kdf-keys || die
82 emake test
83 }
84 +
85 +pkg_postinst() {
86 + xdg_pkg_postinst
87 +}
88 +
89 +pkg_postrm() {
90 + xdg_pkg_postrm
91 +}