diff options
Diffstat (limited to 'media-gfx/gmic/gmic-2.7.1.ebuild')
-rw-r--r-- | media-gfx/gmic/gmic-2.7.1.ebuild | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/media-gfx/gmic/gmic-2.7.1.ebuild b/media-gfx/gmic/gmic-2.7.1.ebuild index 81708eba2f72..2a575ef1eb65 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} |