commit:     a6ae8d1452396e5c06820e26565d1a1b5ccec6e3
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 29 19:04:58 2017 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 19:06:35 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6ae8d14

media-gfx/freecad-9999: several fixes

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-gfx/freecad/freecad-9999.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/media-gfx/freecad/freecad-9999.ebuild 
b/media-gfx/freecad/freecad-9999.ebuild
index d6e044a1e51..13355e49800 100644
--- a/media-gfx/freecad/freecad-9999.ebuild
+++ b/media-gfx/freecad/freecad-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=6
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit cmake-utils eutils xdg-utils fortran-2 python-single-r1
+inherit cmake-utils eutils xdg-utils gnome2-utils fortran-2 python-single-r1
 
 DESCRIPTION="Qt based Computer Aided Design application"
 HOMEPAGE="https://www.freecadweb.org/";
@@ -80,9 +80,9 @@ src_configure() {
        local mycmakeargs=(
                -DOCC_INCLUDE_DIR="${CASROOT}"/inc
                -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
-               -DCMAKE_INSTALL_DATADIR=share/${P}
-               -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
-               -DCMAKE_INSTALL_INCLUDEDIR=include/${P}
+               -DCMAKE_INSTALL_DATADIR=/usr/share/${P}
+               -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
+               -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/${P}
                -DFREECAD_USE_EXTERNAL_KDL="ON"
        )
 
@@ -121,8 +121,14 @@ src_install() {
 
 pkg_postinst() {
        xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+
+       gnome2_icon_cache_update
 }
 
 pkg_postrm() {
        xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+
+       gnome2_icon_cache_update
 }

Reply via email to