diff options
author | ormorph <[email protected]> | 2022-04-25 22:32:08 +0300 |
---|---|---|
committer | ormorph <[email protected]> | 2022-04-25 22:40:41 +0300 |
commit | f0da2936f4139036c23a58e33f3a2b133a2b13af (patch) | |
tree | 638bdd212a329934bee9142107f41d5baa970732 /eclass/trinity-base-2.eclass | |
parent | 4649aa4f7c41066aaab807f1961589aa1e3b66d1 (diff) | |
download | tde-packaging-gentoo-f0da2936f4139036c23a58e33f3a2b133a2b13af.tar.gz tde-packaging-gentoo-f0da2936f4139036c23a58e33f3a2b133a2b13af.zip |
Changed from cmake-utils to cmake and added support for eapi8 to eclass
Signed-off-by: ormorph <[email protected]>
Diffstat (limited to 'eclass/trinity-base-2.eclass')
-rw-r--r-- | eclass/trinity-base-2.eclass | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/eclass/trinity-base-2.eclass b/eclass/trinity-base-2.eclass index dc75ca95..a776fd73 100644 --- a/eclass/trinity-base-2.eclass +++ b/eclass/trinity-base-2.eclass @@ -1,10 +1,11 @@ # Copyright 1999-2020 Gentoo Authors -# Copyright 2020 The Trinity Desktop Project +# Copyright 2020-2022 The Trinity Desktop Project # Distributed under the terms of the GNU General Public License v2 # # Original Author: fat-zer # Ported to git-r3 eclass and EAPI7 by E. Liddell +# Ported to cmake eclass and EAPI8 by ormorh # Purpose: Support ebuilds for the Trinity Desktop (KDE3 fork). # @@ -15,7 +16,7 @@ inherit trinity-functions-2 # The value of this variable determines the package build mode. # If set to "yes", the module "admin" is used for assembly.The build # is done using the 'trinity-econf' and 'emake' functions. -# If set to "no", inherit cmake-utils. +# If set to "no", inherit cmake. : ${TRINITY_BUILD_ADMIN:=no} @@ -23,7 +24,7 @@ case ${TRINITY_BUILD_ADMIN} in yes) ;; no) - inherit cmake-utils + inherit cmake ;; *) eerror "Unknown value for \${CHECK_ADMIN}" @@ -39,7 +40,7 @@ addpredict "/usr/tqt3/etc/settings" # ban EAPI 0-6 case ${EAPI} in 0|1|2|3|4|5|6) die "EAPI=${EAPI} is not supported" ;; - 7) ;; + 7|8) ;; *) die "Unknown EAPI=${EAPI}" esac @@ -356,14 +357,14 @@ trinity-base-2_src_prepare() { trinity-gen-configure eapply_user elif [[ ${TRINITY_BUILD_ADMIN} == "no" ]] ; then - cmake-utils_src_prepare + cmake_src_prepare fi } # @FUNCTION: trinity-base-2_src_configure # @DESCRIPTION: -# Call standard cmake-utils_src_onfigure and add some common arguments. +# Call standard cmake_src_onfigure and add some common arguments. trinity-base-2_src_configure() { debug-print-function ${FUNCNAME} "${@}" local eg_cmakeargs @@ -408,26 +409,26 @@ trinity-base-2_src_configure() { if [[ ${TRINITY_BUILD_ADMIN} == "yes" ]] ; then trinity-econf elif [[ ${TRINITY_BUILD_ADMIN} == "no" ]] ; then - cmake-utils_src_configure + cmake_src_configure fi } # @FUNCTION: trinity-base-2_src_compile # @DESCRIPTION: -# Just call cmake-utils_src_compile. +# Just call cmake_src_compile. trinity-base-2_src_compile() { debug-print-function ${FUNCNAME} "${@}" if [[ ${TRINITY_BUILD_ADMIN} == "yes" ]] ; then emake elif [[ ${TRINITY_BUILD_ADMIN} == "no" ]] ; then - cmake-utils_src_compile + cmake_src_compile fi } # @FUNCTION: trinity-base-2_src_install # @DESCRIPTION: -# Call standard cmake-utils_src_install and installs common documentation. +# Call standard cmake_src_install and installs common documentation. trinity-base-2_src_install() { debug-print-function ${FUNCNAME} "${@}" @@ -436,7 +437,7 @@ trinity-base-2_src_install() { emake install DESTDIR="${D}" fi elif [[ ${TRINITY_BUILD_ADMIN} == "no" ]] ; then - cmake-utils_src_install + cmake_src_install fi if [[ -z "${TRINITY_BASE_NO_INSTALL_DOC}" || |