summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-04-25 22:32:08 +0300
committerormorph <roma251078@mail.ru>2022-04-25 22:40:41 +0300
commitf0da2936f4139036c23a58e33f3a2b133a2b13af (patch)
tree638bdd212a329934bee9142107f41d5baa970732
parent4649aa4f7c41066aaab807f1961589aa1e3b66d1 (diff)
downloadtde-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 <roma251078@mail.ru>
-rw-r--r--eclass/trinity-base-2.eclass23
-rw-r--r--eclass/trinity-functions-2.eclass3
-rw-r--r--eclass/trinity-meta-2.eclass3
3 files changed, 16 insertions, 13 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}" ||
diff --git a/eclass/trinity-functions-2.eclass b/eclass/trinity-functions-2.eclass
index c9e2f6d5..d3b65fa0 100644
--- a/eclass/trinity-functions-2.eclass
+++ b/eclass/trinity-functions-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: Alexander Golubev (Fat-Zer)
# Ported to git-r3 eclass and EAPI7 by E. Liddell
+# Ported to cmake eclass and EAPI8 by ormorh
# Purpose: Basic Trinity eclass functions and variables
#
diff --git a/eclass/trinity-meta-2.eclass b/eclass/trinity-meta-2.eclass
index 553630ec..4977f511 100644
--- a/eclass/trinity-meta-2.eclass
+++ b/eclass/trinity-meta-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: Make it easy to install Trinity ebuilds.
#