commit: d87046c51059bed0f6dfb5f4fe13c91244b86d59
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Apr 17 00:26:02 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Apr 17 00:26:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d87046c5
app-crypt/tomb: freedesktop stuff
please review, not sure about all that xdg things
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
.../{tomb-2.9-r2.ebuild => tomb-2.9-r3.ebuild} | 39 +++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/app-crypt/tomb/tomb-2.9-r2.ebuild
b/app-crypt/tomb/tomb-2.9-r3.ebuild
similarity index 72%
rename from app-crypt/tomb/tomb-2.9-r2.ebuild
rename to app-crypt/tomb/tomb-2.9-r3.ebuild
index 226d8e67c..5dd083f3d 100644
--- a/app-crypt/tomb/tomb-2.9-r2.ebuild
+++ b/app-crypt/tomb/tomb-2.9-r3.ebuild
@@ -3,7 +3,7 @@
EAPI="7"
-inherit qmake-utils
+inherit qmake-utils xdg
MYP="${P^}"
DESCRIPTION="Tomb :: File Encryption on GNU/Linux"
@@ -102,16 +102,45 @@ src_install() {
popd || die
fi
+ #qt tray
if use tray ; then
pushd extras/qt-tray || die
dobin tomb-qt-tray
popd || die
fi
+ #kdf programs
pushd extras/kdf-keys || die
emake install
popd || die
+ #is there an eclass for this?
+ #pixmap
+ insinto /usr/share/pixmaps
+ doins extras/gtk-tray/monmort.xpm
+ pushd extras/desktop
+ #copied from install.zsh
+ #mime types
+ xdg-mime install dyne-tomb.xml
+ xdg-icon-resource install --context mimetypes --size 32 monmort.xpm
monmort
+ xdg-icon-resource install --size 32 monmort.xpm dyne-monmort
+ #desktop
+ insinto /usr/share/applications
+ doins tomb.desktop
+ #menu
+ insinto /etc/menu
+ doins tomb
+ #mime info
+ insinto /usr/share/mime-info
+ doins tomb.mime
+ doins tomb.keys
+ insinto /usr/lib/mime/packages
+ newins tomb.mimepkg tomb
+ #application entry
+ insinto /usr/share/application-registry
+ doins tomb.applications
+ popd
+
#documentation
einstalldocs
cd doc/literate || die
@@ -125,3 +154,11 @@ src_test() {
pushd extras/kdf-keys || die
emake test
}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+}