commit:     088d47495b72cf9d001f170887ad1e574b01da97
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  2 22:35:56 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan  2 22:36:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=088d4749

media-gfx/gmic: Revert back to cmake-utils.eclass

Sorry for breaking. It is weird, but not for me to figure out.

Bug: https://bugs.gentoo.org/704524
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/gmic/gmic-2.7.0.ebuild | 28 +++++++++++++++-------------
 media-gfx/gmic/gmic-2.7.1.ebuild | 28 +++++++++++++++-------------
 media-gfx/gmic/gmic-2.7.2.ebuild | 28 +++++++++++++++-------------
 3 files changed, 45 insertions(+), 39 deletions(-)

diff --git a/media-gfx/gmic/gmic-2.7.0.ebuild b/media-gfx/gmic/gmic-2.7.0.ebuild
index a96eb924674..1edb9254ff0 100644
--- a/media-gfx/gmic/gmic-2.7.0.ebuild
+++ b/media-gfx/gmic/gmic-2.7.0.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 CMAKE_BUILD_TYPE=Release
-inherit cmake bash-completion-r1
+CMAKE_MIN_VERSION=3.9
+
+inherit cmake-utils bash-completion-r1
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="https://github.com/dtschump/gmic.git";
@@ -79,14 +81,14 @@ pkg_pretend() {
 
 src_prepare() {
        local PATCHES=( "${FILESDIR}"/${PN}-2.4.3-curl.patch )
-       cmake_src_prepare
+       cmake-utils_src_prepare
        sed -i '/CMAKE_CXX_FLAGS/s/-g //' CMakeLists.txt || die
 
        if use gimp || use krita || use qt5; then
                sed -i '/CMAKE_CXX_FLAGS_RELEASE/d' gmic-qt/CMakeLists.txt || 
die
                local S="${S}/gmic-qt"
                PATCHES=( "${FILESDIR}"/${PN}-2.6.7-qt-cmake.patch )
-               cmake_src_prepare
+               cmake-utils_src_prepare
        fi
 }
 
@@ -113,7 +115,7 @@ src_configure() {
                -DENABLE_DYNAMIC_LINKING=ON
        )
 
-       cmake_src_configure
+       cmake-utils_src_configure
 
        # configure gmic-qt frontends
        local CMAKE_USE_DIR="${S}/gmic-qt"
@@ -126,32 +128,32 @@ src_configure() {
 
        if use gimp; then
                mycmakeargs+=( -DGMIC_QT_HOST=gimp )
-               BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_configure
        fi
 
        if use krita; then
                mycmakeargs+=( -DGMIC_QT_HOST=krita )
-               BUILD_DIR="${BUILD_DIR}"/krita cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_configure
        fi
 
        if use qt5; then
                mycmakeargs+=( -DGMIC_QT_HOST=none )
-               BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_configure
        fi
 }
 
 src_compile() {
-       cmake_src_compile
+       cmake-utils_src_compile
 
        # build gmic-qt frontends
        local S="${S}/gmic-qt"
-       use gimp && { BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_compile || die 
"failed building gimp plugin" ; }
-       use krita && { BUILD_DIR="${BUILD_DIR}"/krita cmake_src_compile || die 
"failed building krita plugin" ; }
-       use qt5 && { BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_compile || die 
"failed building qt5 GUI" ; }
+       use gimp && { BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_compile || 
die "failed building gimp plugin" ; }
+       use krita && { BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_compile 
|| die "failed building krita plugin" ; }
+       use qt5 && { BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_compile || 
die "failed building qt5 GUI" ; }
 }
 
 src_install() {
-       cmake_src_install
+       cmake-utils_src_install
        dodoc README
        use cli && newbashcomp "${BUILD_DIR}"/resources/gmic_bashcompletion.sh 
${PN}
 

diff --git a/media-gfx/gmic/gmic-2.7.1.ebuild b/media-gfx/gmic/gmic-2.7.1.ebuild
index 81708eba2f7..2a575ef1eb6 100644
--- a/media-gfx/gmic/gmic-2.7.1.ebuild
+++ b/media-gfx/gmic/gmic-2.7.1.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 CMAKE_BUILD_TYPE=Release
-inherit cmake bash-completion-r1
+CMAKE_MIN_VERSION=3.9
+
+inherit cmake-utils bash-completion-r1
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="https://github.com/dtschump/gmic.git";
@@ -79,14 +81,14 @@ pkg_pretend() {
 
 src_prepare() {
        local PATCHES=( "${FILESDIR}"/${PN}-2.4.3-curl.patch )
-       cmake_src_prepare
+       cmake-utils_src_prepare
        sed -i '/CMAKE_CXX_FLAGS/s/-g //' CMakeLists.txt || die
 
        if use gimp || use krita || use qt5; then
                sed -i '/CMAKE_CXX_FLAGS_RELEASE/d' gmic-qt/CMakeLists.txt || 
die
                local S="${S}/gmic-qt"
                PATCHES=( "${FILESDIR}"/${PN}-2.7.1-qt-cmake.patch )
-               cmake_src_prepare
+               cmake-utils_src_prepare
        fi
 }
 
@@ -113,7 +115,7 @@ src_configure() {
                -DENABLE_DYNAMIC_LINKING=ON
        )
 
-       cmake_src_configure
+       cmake-utils_src_configure
 
        # configure gmic-qt frontends
        local CMAKE_USE_DIR="${S}/gmic-qt"
@@ -126,32 +128,32 @@ src_configure() {
 
        if use gimp; then
                mycmakeargs+=( -DGMIC_QT_HOST=gimp )
-               BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_configure
        fi
 
        if use krita; then
                mycmakeargs+=( -DGMIC_QT_HOST=krita )
-               BUILD_DIR="${BUILD_DIR}"/krita cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_configure
        fi
 
        if use qt5; then
                mycmakeargs+=( -DGMIC_QT_HOST=none )
-               BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_configure
        fi
 }
 
 src_compile() {
-       cmake_src_compile
+       cmake-utils_src_compile
 
        # build gmic-qt frontends
        local S="${S}/gmic-qt"
-       use gimp && { BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_compile || die 
"failed building gimp plugin" ; }
-       use krita && { BUILD_DIR="${BUILD_DIR}"/krita cmake_src_compile || die 
"failed building krita plugin" ; }
-       use qt5 && { BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_compile || die 
"failed building qt5 GUI" ; }
+       use gimp && { BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_compile || 
die "failed building gimp plugin" ; }
+       use krita && { BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_compile 
|| die "failed building krita plugin" ; }
+       use qt5 && { BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_compile || 
die "failed building qt5 GUI" ; }
 }
 
 src_install() {
-       cmake_src_install
+       cmake-utils_src_install
        dodoc README
        use cli && newbashcomp "${BUILD_DIR}"/resources/gmic_bashcompletion.sh 
${PN}
 

diff --git a/media-gfx/gmic/gmic-2.7.2.ebuild b/media-gfx/gmic/gmic-2.7.2.ebuild
index 81708eba2f7..2a575ef1eb6 100644
--- a/media-gfx/gmic/gmic-2.7.2.ebuild
+++ b/media-gfx/gmic/gmic-2.7.2.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 CMAKE_BUILD_TYPE=Release
-inherit cmake bash-completion-r1
+CMAKE_MIN_VERSION=3.9
+
+inherit cmake-utils bash-completion-r1
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="https://github.com/dtschump/gmic.git";
@@ -79,14 +81,14 @@ pkg_pretend() {
 
 src_prepare() {
        local PATCHES=( "${FILESDIR}"/${PN}-2.4.3-curl.patch )
-       cmake_src_prepare
+       cmake-utils_src_prepare
        sed -i '/CMAKE_CXX_FLAGS/s/-g //' CMakeLists.txt || die
 
        if use gimp || use krita || use qt5; then
                sed -i '/CMAKE_CXX_FLAGS_RELEASE/d' gmic-qt/CMakeLists.txt || 
die
                local S="${S}/gmic-qt"
                PATCHES=( "${FILESDIR}"/${PN}-2.7.1-qt-cmake.patch )
-               cmake_src_prepare
+               cmake-utils_src_prepare
        fi
 }
 
@@ -113,7 +115,7 @@ src_configure() {
                -DENABLE_DYNAMIC_LINKING=ON
        )
 
-       cmake_src_configure
+       cmake-utils_src_configure
 
        # configure gmic-qt frontends
        local CMAKE_USE_DIR="${S}/gmic-qt"
@@ -126,32 +128,32 @@ src_configure() {
 
        if use gimp; then
                mycmakeargs+=( -DGMIC_QT_HOST=gimp )
-               BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_configure
        fi
 
        if use krita; then
                mycmakeargs+=( -DGMIC_QT_HOST=krita )
-               BUILD_DIR="${BUILD_DIR}"/krita cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_configure
        fi
 
        if use qt5; then
                mycmakeargs+=( -DGMIC_QT_HOST=none )
-               BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_configure
+               BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_configure
        fi
 }
 
 src_compile() {
-       cmake_src_compile
+       cmake-utils_src_compile
 
        # build gmic-qt frontends
        local S="${S}/gmic-qt"
-       use gimp && { BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_compile || die 
"failed building gimp plugin" ; }
-       use krita && { BUILD_DIR="${BUILD_DIR}"/krita cmake_src_compile || die 
"failed building krita plugin" ; }
-       use qt5 && { BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_compile || die 
"failed building qt5 GUI" ; }
+       use gimp && { BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_compile || 
die "failed building gimp plugin" ; }
+       use krita && { BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_compile 
|| die "failed building krita plugin" ; }
+       use qt5 && { BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_compile || 
die "failed building qt5 GUI" ; }
 }
 
 src_install() {
-       cmake_src_install
+       cmake-utils_src_install
        dodoc README
        use cli && newbashcomp "${BUILD_DIR}"/resources/gmic_bashcompletion.sh 
${PN}
 

Reply via email to