diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-30 19:22:57 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-31 18:19:21 +0100 |
commit | d7500b6e39eb8b24bd63a8cc2daebb7f2078b7ae (patch) | |
tree | 59bbc37e50369e582eb856d2ad017e47ed7cc6bd /media-gfx/gmic | |
parent | xfce-extra/xfce4-hdaps: remove "unused" xfce4-hdaps-0.0.9-r4.ebuild. (diff) | |
download | gentoo-d7500b6e39eb8b24bd63a8cc2daebb7f2078b7ae.tar.gz gentoo-d7500b6e39eb8b24bd63a8cc2daebb7f2078b7ae.tar.bz2 gentoo-d7500b6e39eb8b24bd63a8cc2daebb7f2078b7ae.zip |
*/*: Switch graphics proj packages to cmake.eclass
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-gfx/gmic')
-rw-r--r-- | media-gfx/gmic/gmic-2.7.0.ebuild | 26 | ||||
-rw-r--r-- | media-gfx/gmic/gmic-2.7.1.ebuild | 26 | ||||
-rw-r--r-- | media-gfx/gmic/gmic-2.7.2.ebuild | 26 |
3 files changed, 36 insertions, 42 deletions
diff --git a/media-gfx/gmic/gmic-2.7.0.ebuild b/media-gfx/gmic/gmic-2.7.0.ebuild index d4bacf387446..a96eb924674f 100644 --- a/media-gfx/gmic/gmic-2.7.0.ebuild +++ b/media-gfx/gmic/gmic-2.7.0.ebuild @@ -4,9 +4,7 @@ EAPI=7 CMAKE_BUILD_TYPE=Release -CMAKE_MIN_VERSION=3.9 - -inherit cmake-utils bash-completion-r1 +inherit cmake bash-completion-r1 if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="https://github.com/dtschump/gmic.git" @@ -81,14 +79,14 @@ pkg_pretend() { src_prepare() { local PATCHES=( "${FILESDIR}"/${PN}-2.4.3-curl.patch ) - cmake-utils_src_prepare + cmake_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-utils_src_prepare + cmake_src_prepare fi } @@ -115,7 +113,7 @@ src_configure() { -DENABLE_DYNAMIC_LINKING=ON ) - cmake-utils_src_configure + cmake_src_configure # configure gmic-qt frontends local CMAKE_USE_DIR="${S}/gmic-qt" @@ -128,32 +126,32 @@ src_configure() { if use gimp; then mycmakeargs+=( -DGMIC_QT_HOST=gimp ) - BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_configure fi if use krita; then mycmakeargs+=( -DGMIC_QT_HOST=krita ) - BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/krita cmake_src_configure fi if use qt5; then mycmakeargs+=( -DGMIC_QT_HOST=none ) - BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_configure fi } src_compile() { - cmake-utils_src_compile + cmake_src_compile # build gmic-qt frontends local S="${S}/gmic-qt" - 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" ; } + 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" ; } } src_install() { - cmake-utils_src_install + cmake_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 bd8a5d1a186b..81708eba2f72 100644 --- a/media-gfx/gmic/gmic-2.7.1.ebuild +++ b/media-gfx/gmic/gmic-2.7.1.ebuild @@ -4,9 +4,7 @@ EAPI=7 CMAKE_BUILD_TYPE=Release -CMAKE_MIN_VERSION=3.9 - -inherit cmake-utils bash-completion-r1 +inherit cmake bash-completion-r1 if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="https://github.com/dtschump/gmic.git" @@ -81,14 +79,14 @@ pkg_pretend() { src_prepare() { local PATCHES=( "${FILESDIR}"/${PN}-2.4.3-curl.patch ) - cmake-utils_src_prepare + cmake_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-utils_src_prepare + cmake_src_prepare fi } @@ -115,7 +113,7 @@ src_configure() { -DENABLE_DYNAMIC_LINKING=ON ) - cmake-utils_src_configure + cmake_src_configure # configure gmic-qt frontends local CMAKE_USE_DIR="${S}/gmic-qt" @@ -128,32 +126,32 @@ src_configure() { if use gimp; then mycmakeargs+=( -DGMIC_QT_HOST=gimp ) - BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_configure fi if use krita; then mycmakeargs+=( -DGMIC_QT_HOST=krita ) - BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/krita cmake_src_configure fi if use qt5; then mycmakeargs+=( -DGMIC_QT_HOST=none ) - BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_configure fi } src_compile() { - cmake-utils_src_compile + cmake_src_compile # build gmic-qt frontends local S="${S}/gmic-qt" - 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" ; } + 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" ; } } src_install() { - cmake-utils_src_install + cmake_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 bd8a5d1a186b..81708eba2f72 100644 --- a/media-gfx/gmic/gmic-2.7.2.ebuild +++ b/media-gfx/gmic/gmic-2.7.2.ebuild @@ -4,9 +4,7 @@ EAPI=7 CMAKE_BUILD_TYPE=Release -CMAKE_MIN_VERSION=3.9 - -inherit cmake-utils bash-completion-r1 +inherit cmake bash-completion-r1 if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="https://github.com/dtschump/gmic.git" @@ -81,14 +79,14 @@ pkg_pretend() { src_prepare() { local PATCHES=( "${FILESDIR}"/${PN}-2.4.3-curl.patch ) - cmake-utils_src_prepare + cmake_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-utils_src_prepare + cmake_src_prepare fi } @@ -115,7 +113,7 @@ src_configure() { -DENABLE_DYNAMIC_LINKING=ON ) - cmake-utils_src_configure + cmake_src_configure # configure gmic-qt frontends local CMAKE_USE_DIR="${S}/gmic-qt" @@ -128,32 +126,32 @@ src_configure() { if use gimp; then mycmakeargs+=( -DGMIC_QT_HOST=gimp ) - BUILD_DIR="${BUILD_DIR}"/gimp cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/gimp cmake_src_configure fi if use krita; then mycmakeargs+=( -DGMIC_QT_HOST=krita ) - BUILD_DIR="${BUILD_DIR}"/krita cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/krita cmake_src_configure fi if use qt5; then mycmakeargs+=( -DGMIC_QT_HOST=none ) - BUILD_DIR="${BUILD_DIR}"/qt5 cmake-utils_src_configure + BUILD_DIR="${BUILD_DIR}"/qt5 cmake_src_configure fi } src_compile() { - cmake-utils_src_compile + cmake_src_compile # build gmic-qt frontends local S="${S}/gmic-qt" - 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" ; } + 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" ; } } src_install() { - cmake-utils_src_install + cmake_src_install dodoc README use cli && newbashcomp "${BUILD_DIR}"/resources/gmic_bashcompletion.sh ${PN} |