From 8258ce4b9f1ac0af85637477c8b060f0b65e6080 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Fri, 17 Apr 2026 08:17:30 +0300
Subject: eclass: move some docs from trinity-base-2 to trinity-functions-2

Move documentation for variables TRINITY_VER, TDEDIR and TDEDIRS from
trinity-base-2 eclass to trinity-functions-2.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 eclass/trinity-base-2.eclass      | 20 +-------------------
 eclass/trinity-functions-2.eclass | 22 +++++++++++++++++++++-
 2 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/eclass/trinity-base-2.eclass b/eclass/trinity-base-2.eclass
index feda5de2..d22db155 100644
--- a/eclass/trinity-base-2.eclass
+++ b/eclass/trinity-base-2.eclass
@@ -1,5 +1,5 @@
 # Copyright 1999-2020 Gentoo Authors
-# Copyright 2020-2025 The Trinity Desktop Project
+# Copyright 2020-2026 The Trinity Desktop Project
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: trinity-base-2.eclass
@@ -191,30 +191,12 @@ else
 fi
 
 if [[ ${BUILD_TYPE} == live ]]; then
-# @ECLASS_VARIABLE: TRINITY_VER
-# @DEPRECATED: none
-# @DESCRIPTION:
-# Synonymous with SLOT, this was used as a clutch between eclass and ebuilds to
-# set SLOT for release and live ebuilds by some means of version detection. But
-# for live it was really only using a hardcoded value inside trinity-functions-2
-# that we may as well hardcode here.
-# The *only* use in ebuilds is SLOT="${TRINITY_VER}" so this remains a fallback.
 	TRINITY_VER=14
 	if [[ ${CATEGORY} = trinity-base ]]; then
 		[[ -z ${SLOT} ]] && SLOT=${TRINITY_VER}
 	fi
 
-# @ECLASS_VARIABLE: TDEDIR
-# @DESCRIPTION:
-# Location of tdelibs to link against.
-# TODO: Rethink prefixing
 	export TDEDIR="/usr/trinity/${TRINITY_VER}"
-
-# @ECLASS_VARIABLE: TDEDIRS
-# @DESCRIPTION:
-# TDE expects that the install path is listed first in TDEDIRS
-# Reference: More information inside trinity-base/tdelibs package
-# TODO: Rethink prefixing
 	export TDEDIRS="/usr/trinity/${TRINITY_VER}"
 
 	# TODO: get rid of these hacks re prefixing
diff --git a/eclass/trinity-functions-2.eclass b/eclass/trinity-functions-2.eclass
index d27b2be7..d669f04e 100644
--- a/eclass/trinity-functions-2.eclass
+++ b/eclass/trinity-functions-2.eclass
@@ -1,5 +1,5 @@
 # Copyright 1999-2020 Gentoo Authors
-# Copyright 2020-2022 The Trinity Desktop Project
+# Copyright 2020-2026 The Trinity Desktop Project
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: trinity-functions-2.eclass
@@ -20,6 +20,26 @@ inherit multilib
 # Sets the version of the live assembly
 TRINITY_LIVEVER="14.2.0"
 
+# @ECLASS_VARIABLE: TRINITY_VER
+# @DEPRECATED: none
+# @DESCRIPTION:
+# Synonymous with SLOT, this was used as a clutch between eclass and ebuilds to
+# set SLOT for release and live ebuilds by some means of version detection. But
+# for live it was really only using a hardcoded value inside trinity-functions-2
+# that we may as well hardcode here.
+# The *only* use in ebuilds is SLOT="${TRINITY_VER}" so this remains a fallback.
+
+# @ECLASS_VARIABLE: TDEDIR
+# @DESCRIPTION:
+# Location of tdelibs to link against.
+# TODO: Rethink prefixing
+
+# @ECLASS_VARIABLE: TDEDIRS
+# @DESCRIPTION:
+# TDE expects that the install path is listed first in TDEDIRS
+# Reference: More information inside trinity-base/tdelibs package
+# TODO: Rethink prefixing
+
 # @FUNCTION: set-trinityver
 # @USAGE: < version >
 # @DESCRIPTION:
-- 
cgit v1.2.3

