mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
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@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user