From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C921B138334 for ; Tue, 24 Dec 2019 21:35:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 698B9E0E15; Tue, 24 Dec 2019 21:35:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1DF7E0DFE for ; Tue, 24 Dec 2019 21:35:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4DD3B34DB28 for ; Tue, 24 Dec 2019 21:35:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5ADE82C for ; Tue, 24 Dec 2019 21:35:32 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1577223035.122b7843e32b058b9958d7f77d14b80032abe85d.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde5.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 122b7843e32b058b9958d7f77d14b80032abe85d X-VCS-Branch: master Date: Tue, 24 Dec 2019 21:35:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7016a150-cf0c-4e44-aff5-94687e52d0ad X-Archives-Hash: ec7f780f887256617760a7379b4c9cf2 commit: 122b7843e32b058b9958d7f77d14b80032abe85d Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Dec 24 21:27:03 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Dec 24 21:30:35 2019 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=122b7843 kde5.eclass: Drop obsolete eclass No more development, remaining ebuilds in Gentoo repo only. Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/kde5.eclass | 422 ----------------------------------------------------- 1 file changed, 422 deletions(-) diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass deleted file mode 100644 index 0227900e26..0000000000 --- a/eclass/kde5.eclass +++ /dev/null @@ -1,422 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: kde5.eclass -# @MAINTAINER: -# kde@gentoo.org -# @SUPPORTED_EAPIS: 7 -# @BLURB: Support eclass for packages that follow KDE packaging conventions. -# @DESCRIPTION: -# This eclass is *deprecated*. Please read the PORTING notes for switching to -# ecm.eclass in case the package is using extra-cmake-modules, otherwise just -# use cmake-utils.eclass instead. For projects hosted on kde.org infrastructure, -# inherit kde.org.eclass to fetch and unpack sources independent of the build -# system being used. -# -# This eclass unconditionally inherits kde5-functions.eclass and all its public -# functions and variables may be considered as part of this eclass's API. -# -# This eclass inherits either ecm.eclass if KDE_AUTODEPS=true (default) or -# cmake-utils.eclass if false. All its public variables and helper functions -# (not phase functions) may be considered as part of this eclass's API. -# -# This eclass's phase functions are not intended to be mixed and matched, so if -# any phase functions are overridden the version here should also be called. - -if [[ -z ${_KDE5_ECLASS} ]]; then -_KDE5_ECLASS=1 - -# Propagate KMNAME to kde.org.eclass -# PORTING: Use KDE_ORG_NAME from kde.org.eclass instead -if [[ -z ${KDE_ORG_NAME} ]]; then - KDE_ORG_NAME=${KMNAME:=$PN} -fi - -inherit flag-o-matic kde.org kde5-functions xdg - -# @ECLASS-VARIABLE: KDE_AUTODEPS -# @DESCRIPTION: -# If set to "false", do nothing. -# For any other value, add dependencies on dev-qt/qtcore:5, kde-frameworks/kf-env -# and kde-frameworks/extra-cmake-modules:5. Additionally, required blockers may -# be set depending on the value of CATEGORY. -# PORTING: no replacement -: ${KDE_AUTODEPS:=true} - -# @ECLASS-VARIABLE: KDE_DEBUG -# @DESCRIPTION: -# If set to "false", add -DNDEBUG (via cmake-utils_src_configure) and -DQT_NO_DEBUG -# to CPPFLAGS. -# Otherwise, add debug to IUSE. -# PORTING: ECM_DEBUG in ecm.eclass -: ${KDE_DEBUG:=true} - -# @ECLASS-VARIABLE: KDE_DESIGNERPLUGIN -# @DESCRIPTION: -# If set to "false", do nothing. -# Otherwise, add "designer" to IUSE to toggle build of designer plugins -# and add the necessary DEPENDs. -# PORTING: ECM_DESIGNERPLUGIN in ecm.eclass -: ${KDE_DESIGNERPLUGIN:=false} - -# @ECLASS-VARIABLE: KDE_EXAMPLES -# @DESCRIPTION: -# If set to "false", unconditionally ignore a top-level examples subdirectory. -# Otherwise, add "examples" to IUSE to toggle adding that subdirectory. -# PORTING: ECM_EXAMPLES in ecm.eclass -: ${KDE_EXAMPLES:=false} - -# @ECLASS-VARIABLE: KDE_HANDBOOK -# @DESCRIPTION: -# If set to "false", do nothing. -# Otherwise, add "+handbook" to IUSE, add the appropriate dependency, and -# generate and install KDE handbook. -# If set to "optional", config with -DCMAKE_DISABLE_FIND_PACKAGE_KF5DocTools=ON -# when USE=!handbook. In case package requires KF5KDELibs4Support, see next: -# If set to "forceoptional", remove a KF5DocTools dependency from the root -# CMakeLists.txt in addition to the above. -# PORTING: ECM_HANDBOOK in ecm.eclass -: ${KDE_HANDBOOK:=false} - -# @ECLASS-VARIABLE: KDE_DOC_DIR -# @DESCRIPTION: -# Specifies the location of the KDE handbook if not the default. -# PORTING: ECM_HANDBOOK_DIR in ecm.eclass -: ${KDE_DOC_DIR:=doc} - -# @ECLASS-VARIABLE: KDE_PO_DIRS -# @DESCRIPTION: -# Specifies the possible locations of KDE l10n files if not the default. -# PORTING: ECM_PO_DIRS in ecm.eclass -: ${KDE_PO_DIRS:="po poqm"} - -# @ECLASS-VARIABLE: KDE_QTHELP -# @DESCRIPTION: -# If set to "false", do nothing. -# Otherwise, add "doc" to IUSE, add the appropriate dependency, generate -# and install Qt compressed help files with -DBUILD_QCH=ON when USE=doc. -# PORTING: ECM_QTHELP in ecm.eclass -if [[ ${CATEGORY} = kde-frameworks ]]; then - : ${KDE_QTHELP:=true} -fi -: ${KDE_QTHELP:=false} - -# @ECLASS-VARIABLE: KDE_TEST -# @DESCRIPTION: -# If set to "false", do nothing. -# For any other value, add test to IUSE and add a dependency on dev-qt/qttest:5. -# If set to "optional", configure with -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=ON -# when USE=!test. -# If set to "forceoptional", remove a Qt5Test dependency and comment test -# subdirs from the root CMakeLists.txt in addition to the above. -# If set to "forceoptional-recursive", remove Qt5Test dependencies and make -# autotest(s), unittest(s) and test(s) subdirs from *any* CMakeLists.txt in ${S} -# and below conditional on BUILD_TESTING. This is always meant as a short-term -# fix and creates ${T}/${P}-tests-optional.patch to refine and submit upstream. -# PORTING: ECM_TEST in ecm.eclass -if [[ ${CATEGORY} = kde-frameworks ]]; then - : ${KDE_TEST:=true} -fi -: ${KDE_TEST:=false} - -# @ECLASS-VARIABLE: KDE_SUBSLOT -# @DESCRIPTION: -# If set to "false", do nothing. -# If set to "true", add a subslot to the package, where subslot is either -# defined as major.minor version for kde-*/ categories or ${PV} if other. -# For any other value, that value will be used as subslot. -# PORTING: no replacement, define in ebuild -: ${KDE_SUBSLOT:=false} - -# PORTING: LICENSE no longer set by eclass, define in ebuild -LICENSE="GPL-2" -# PORTING: SLOT no longer set by eclass except for kde-frameworks -[[ ${CATEGORY} = kde-frameworks ]] || SLOT=5 - -case ${KDE_SUBSLOT} in - false) ;; - true) - case ${CATEGORY} in - kde-frameworks | \ - kde-plasma | \ - kde-apps) - SLOT+="/$(ver_cut 1-2)" - ;; - *) - SLOT+="/${PV}" - ;; - esac - ;; - *) - SLOT+="/${KDE_SUBSLOT}" - ;; -esac - -case ${KDE_AUTODEPS} in - false) - inherit cmake-utils - # @ECLASS-VARIABLE: ECM_KDEINSTALLDIRS - # @DESCRIPTION: - # If set to "false", do nothing. - # For any other value, assume the package is using KDEInstallDirs macro and switch - # KDE_INSTALL_USE_QT_SYS_PATHS to ON. - : ${ECM_KDEINSTALLDIRS:=true} - - case ${KDE_DEBUG} in - false) ;; - *) - IUSE+=" debug" - ;; - esac - - case ${KDE_TEST} in - false) ;; - *) - IUSE+=" test" - DEPEND+=" test? ( dev-qt/qttest:5 )" - ;; - esac - ;; - *) - # all packages need breeze/oxygen icons for basic iconset, bug #564838 - if [[ ${PN} != breeze-icons && ${PN} != oxygen-icons ]]; then - ECM_NONGUI=false - fi - # propagate deprecated variables to ecm.eclass - if [[ -z ${ECM_DESIGNERPLUGIN} && ${CATEGORY} != kde-apps ]]; then - ECM_DESIGNERPLUGIN=${KDE_DESIGNERPLUGIN} - KDE_DESIGNERPLUGIN=false # use fallback var only for kde-apps - fi - [[ -z ${ECM_DEBUG} ]] && ECM_DEBUG=${KDE_DEBUG} - [[ -z ${ECM_EXAMPLES} ]] && ECM_EXAMPLES=${KDE_EXAMPLES} - [[ -z ${ECM_HANDBOOK} ]] && ECM_HANDBOOK=${KDE_HANDBOOK} - [[ -z ${ECM_HANDBOOK_DIR} ]] && ECM_HANDBOOK_DIR=${KDE_DOC_DIR} - [[ -z ${ECM_PO_DIRS} ]] && ECM_PO_DIRS=${KDE_PO_DIRS} - [[ -z ${ECM_QTHELP} ]] && ECM_QTHELP=${KDE_QTHELP} - [[ -z ${ECM_TEST} ]] && ECM_TEST=${KDE_TEST} - [[ -z ${KFMIN} ]] && KFMIN=${FRAMEWORKS_MINIMAL} - inherit ecm - ;; -esac - -EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm - -# @FUNCTION: _kde5_strip_handbook_translations -# @INTERNAL -# @DESCRIPTION: -# If LINGUAS is defined, enable only the requested translations when required. -_kde5_strip_handbook_translations() { - if ! [[ -v LINGUAS ]]; then - return - fi - - local lang po - for po in ${ECM_PO_DIRS}; do - if [[ -d ${po} ]] ; then - pushd ${po} > /dev/null || die - local lang - for lang in *; do - if [[ -e ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then - case ${lang} in - cmake_modules | \ - CMakeLists.txt | \ - ${PN}.pot) ;; - *) rm -r ${lang} || die ;; - esac - if [[ -e CMakeLists.txt ]] ; then - cmake_comment_add_subdirectory ${lang} - sed -e "/add_subdirectory([[:space:]]*${lang}\/.*[[:space:]]*)/d" \ - -i CMakeLists.txt || die - fi - fi - done - popd > /dev/null || die - fi - done -} - -# @FUNCTION: kde5_pkg_pretend -# @DESCRIPTION: -# Checks if the active compiler meets the minimum version requirements. -# phase function is only exported if KDE_GCC_MINIMAL is defined. -kde5_pkg_pretend() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) ;; - *) ecm_pkg_pretend ;; - esac -} - -# @FUNCTION: kde5_pkg_setup -# @DESCRIPTION: -# Checks if the active compiler meets the minimum version requirements. -kde5_pkg_setup() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) ;; - *) ecm_pkg_setup ;; - esac -} - -# @FUNCTION: kde5_src_unpack -# @DESCRIPTION: -# Unpack the sources, automatically handling both release and live ebuilds. -kde5_src_unpack() { - debug-print-function ${FUNCNAME} "$@" - kde.org_src_unpack -} - -# @FUNCTION: kde5_src_prepare -# @DESCRIPTION: -# Wrapper for cmake-utils_src_prepare with lots of extra logic for magic -# handling of linguas, tests, handbook etc. -kde5_src_prepare() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) - cmake-utils_src_prepare - - _kde5_strip_handbook_translations - - # only build unit tests when required - if ! { in_iuse test && use test; } ; then - if [[ ${KDE_TEST} = forceoptional ]] ; then - punt_bogus_dep Qt5 Test - # if forceoptional, also cover non-kde categories - cmake_comment_add_subdirectory autotests test tests - elif [[ ${CATEGORY} = kde-frameworks || ${CATEGORY} = kde-plasma || ${CATEGORY} = kde-apps ]] ; then - cmake_comment_add_subdirectory autotests test tests - fi - fi - # in frameworks, tests = manual tests so never build them - if [[ ${CATEGORY} = kde-frameworks ]] && [[ ${PN} != extra-cmake-modules ]]; then - cmake_comment_add_subdirectory tests - fi - ;; - *) ecm_src_prepare ;; - esac - - # PORTING: bogus, overzealous 'en' docbook disabling is not carried over - if [[ ${KDE_BUILD_TYPE} = release && ${CATEGORY} != kde-apps ]] ; then - if [[ ${KDE_HANDBOOK} != false && -d ${KDE_DOC_DIR} && -v LINGUAS ]] ; then - pushd ${KDE_DOC_DIR} > /dev/null || die - local lang - for lang in *; do - if ! has ${lang} ${LINGUAS} ; then - cmake_comment_add_subdirectory ${lang} - fi - done - popd > /dev/null || die - fi - fi -} - -# @FUNCTION: kde5_src_configure -# @DESCRIPTION: -# Wrapper for cmake-utils_src_configure with extra logic for magic handling of -# handbook, tests etc. -kde5_src_configure() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) - # we rely on cmake-utils.eclass to append -DNDEBUG too - if in_iuse debug && ! use debug; then - append-cppflags -DQT_NO_DEBUG - fi - - local cmakeargs - - if in_iuse test && ! use test ; then - cmakeargs+=( -DBUILD_TESTING=OFF ) - - if [[ ${KDE_TEST} = optional ]] ; then - cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=ON ) - fi - fi - if [[ ${ECM_KDEINSTALLDIRS} != false ]] ; then - cmakeargs+=( - # install mkspecs in the same directory as qt stuff - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON - # move handbook outside of doc dir, bug 667138 - -DKDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help" - ) - fi - - # allow the ebuild to override what we set here - mycmakeargs=("${cmakeargs[@]}" "${mycmakeargs[@]}") - - cmake-utils_src_configure - ;; - *) ecm_src_configure ;; - esac -} - -# @FUNCTION: kde5_src_compile -# @DESCRIPTION: -# Wrapper for cmake-utils_src_compile. Currently doesn't do anything extra, but -# is included as part of the API just in case it's needed in the future. -kde5_src_compile() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) cmake-utils_src_compile ;; - *) ecm_src_compile ;; - esac -} - -# @FUNCTION: kde5_src_test -# @DESCRIPTION: -# Wrapper for cmake-utils_src_test with extra logic for magic handling of dbus -# and virtualx. -kde5_src_test() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) cmake-utils_src_test ;; - *) ecm_src_test ;; - esac -} - -# @FUNCTION: kde5_src_install -# @DESCRIPTION: -# Wrapper for cmake-utils_src_install. Currently doesn't do anything extra. -kde5_src_install() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) cmake-utils_src_install ;; - *) ecm_src_install ;; - esac -} - -# @FUNCTION: kde5_pkg_preinst -# @DESCRIPTION: -# Sets up environment variables required in kde5_pkg_postinst. -kde5_pkg_preinst() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) xdg_pkg_preinst ;; - *) ecm_pkg_preinst ;; - esac -} - -# @FUNCTION: kde5_pkg_postinst -# @DESCRIPTION: -# Updates the various XDG caches (icon, desktop, mime) if necessary. -kde5_pkg_postinst() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) xdg_pkg_postinst ;; - *) ecm_pkg_postinst ;; - esac -} - -# @FUNCTION: kde5_pkg_postrm -# @DESCRIPTION: -# Updates the various XDG caches (icon, desktop, mime) if necessary. -kde5_pkg_postrm() { - debug-print-function ${FUNCNAME} "$@" - case ${KDE_AUTODEPS} in - false) xdg_pkg_postrm ;; - *) ecm_pkg_postrm ;; - esac -} - -fi