net-misc/x2goserver: use xdg eclass
authorBernard Cafarelli <voyageur@gentoo.org>
Tue, 10 Dec 2019 21:34:44 +0000 (22:34 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Tue, 10 Dec 2019 21:34:56 +0000 (22:34 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
net-misc/x2goserver/x2goserver-4.1.0.2.ebuild
net-misc/x2goserver/x2goserver-4.1.0.3.ebuild

index 62fa686aadcd8d8a3028f0c1631533dc0f109a8d..63bc43289678fd0f997e0280f64d7a6b011ab7fa 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit multilib systemd toolchain-funcs user xdg-utils
+inherit multilib systemd toolchain-funcs user xdg
 
 DESCRIPTION="The X2Go server"
 HOMEPAGE="http://www.x2go.org"
@@ -81,6 +81,7 @@ src_install() {
 }
 
 pkg_postinst() {
+       xdg_pkg_postinst
        if use sqlite ; then
                if [[ -f "${EROOT}"/var/lib/x2go/x2go_sessions ]] ; then
                        elog "To use sqlite and update your existing database, run:"
@@ -99,12 +100,4 @@ pkg_postinst() {
        elog "For password authentication, you need to enable PasswordAuthentication"
        elog "in /etc/ssh/sshd_config (disabled by default in Gentoo)"
        elog "An init script was installed for x2gocleansessions"
-
-       xdg_mimeinfo_database_update
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       xdg_mimeinfo_database_update
-       xdg_desktop_database_update
 }
index 710f925aa26849a33228188cd3d07325fd7a35d2..01bc3f6c2225d7366a60a49a27d0e0ce994aa29b 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit multilib systemd toolchain-funcs user xdg-utils
+inherit multilib systemd toolchain-funcs user xdg
 
 DESCRIPTION="The X2Go server"
 HOMEPAGE="http://www.x2go.org"
@@ -84,6 +84,7 @@ src_install() {
 }
 
 pkg_postinst() {
+       xdg_pkg_postinst
        if use sqlite ; then
                if [[ -f "${EROOT}"/var/lib/x2go/x2go_sessions ]] ; then
                        elog "To use sqlite and update your existing database, run:"
@@ -102,12 +103,4 @@ pkg_postinst() {
        elog "For password authentication, you need to enable PasswordAuthentication"
        elog "in /etc/ssh/sshd_config (disabled by default in Gentoo)"
        elog "An init script was installed for x2gocleansessions"
-
-       xdg_mimeinfo_database_update
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       xdg_mimeinfo_database_update
-       xdg_desktop_database_update
 }