media-gfx/darktable: Switch from gnome2-utils to xdg, EAPI-7 bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Fri, 15 Feb 2019 20:54:52 +0000 (21:54 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Fri, 15 Feb 2019 23:07:32 +0000 (00:07 +0100)
Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-gfx/darktable/darktable-2.6.0.ebuild
media-gfx/darktable/darktable-9999.ebuild

index 73fbe3029258d421b43d5e0747ca426309f2f91a..15acacacaad5b724cfb929dc340deb7737d719e5 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-utils flag-o-matic gnome2-utils pax-utils toolchain-funcs xdg-utils
+inherit cmake-utils flag-o-matic pax-utils toolchain-funcs xdg
 
 DOC_PV="2.6.0"
 MY_PV="${PV/_/}"
@@ -26,7 +26,12 @@ ${LANGS// / l10n_}"
 # sse3 support is required to build darktable
 REQUIRED_USE="cpu_flags_x86_sse3"
 
-CDEPEND="
+BDEPEND="
+       dev-util/intltool
+       virtual/pkgconfig
+       nls? ( sys-devel/gettext )
+"
+COMMON_DEPEND="
        dev-db/sqlite:3
        dev-libs/json-glib
        dev-libs/libxml2:2
@@ -54,17 +59,17 @@ CDEPEND="
        jpeg2k? ( media-libs/openjpeg:2= )
        opencl? ( virtual/opencl )
        openexr? ( media-libs/openexr:0= )
-       webp? ( media-libs/libwebp:0= )"
-RDEPEND="${CDEPEND}
-       kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )"
-DEPEND="${CDEPEND}
-       dev-util/intltool
-       virtual/pkgconfig
-       nls? ( sys-devel/gettext )
+       webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${COMMON_DEPEND}
        opencl? (
                >=sys-devel/clang-4
                >=sys-devel/llvm-4
-       )"
+       )
+"
+RDEPEND="${COMMON_DEPEND}
+       kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )
+"
 
 PATCHES=( "${FILESDIR}"/"${PN}"-find-opencl-header.patch )
 
@@ -85,7 +90,6 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DBUILD_PRINT=$(usex cups)
-               -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
                -DCUSTOM_CFLAGS=ON
                -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
                -DUSE_COLORD=$(usex colord)
@@ -124,13 +128,8 @@ src_install() {
        fi
 }
 
-pkg_preinst() {
-       gnome2_icon_savelist
-}
-
 pkg_postinst() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
+       xdg_pkg_postinst
 
        elog "when updating from the currently stable 1.6 series,"
        elog "please bear in mind that your edits will be preserved during this process,"
@@ -138,8 +137,3 @@ pkg_postinst() {
        echo
        ewarn "It will not be possible to downgrade!"
 }
-
-pkg_postrm() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
-}
index f0209f39d59adc5a8b428e5eaeefa9d42376013a..60e7af7a7178af220f8188376156f7e0580b45a4 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-utils flag-o-matic git-r3 gnome2-utils pax-utils toolchain-funcs versionator xdg-utils
+inherit cmake-utils flag-o-matic git-r3 pax-utils toolchain-funcs xdg
 
 EGIT_REPO_URI="https://github.com/darktable-org/${PN}.git"
 
@@ -22,7 +22,12 @@ ${LANGS// / l10n_}"
 # sse3 support is required to build darktable
 REQUIRED_USE="cpu_flags_x86_sse3"
 
-CDEPEND="
+BDEPEND="
+       dev-util/intltool
+       virtual/pkgconfig
+       nls? ( sys-devel/gettext )
+"
+COMMON_DEPEND="
        dev-db/sqlite:3
        dev-libs/json-glib
        dev-libs/libxml2:2
@@ -50,17 +55,17 @@ CDEPEND="
        jpeg2k? ( media-libs/openjpeg:2= )
        opencl? ( virtual/opencl )
        openexr? ( media-libs/openexr:0= )
-       webp? ( media-libs/libwebp:0= )"
-RDEPEND="${CDEPEND}
-       kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )"
-DEPEND="${CDEPEND}
-       dev-util/intltool
-       virtual/pkgconfig
-       nls? ( sys-devel/gettext )
+       webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${COMMON_DEPEND}
        opencl? (
                >=sys-devel/clang-4
                >=sys-devel/llvm-4
-       )"
+       )
+"
+RDEPEND="${COMMON_DEPEND}
+       kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )
+"
 
 pkg_pretend() {
        if use openmp ; then
@@ -77,7 +82,6 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DBUILD_PRINT=$(usex cups)
-               -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
                -DCUSTOM_CFLAGS=ON
                -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
                -DUSE_COLORD=$(usex colord)
@@ -115,17 +119,3 @@ src_install() {
                eqawarn "please open a bug."
        fi
 }
-
-pkg_preinst() {
-       gnome2_icon_savelist
-}
-
-pkg_postinst() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
-}