Skip to content

Commit

Permalink
frameworks.kde.org.eclass: Introduce KDE_CATV
Browse files Browse the repository at this point in the history
Holds main Frameworks release number (major.minor) for use on same-category
dependencies.

Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 12, 2024
1 parent 1bbb564 commit d73c98c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions eclass/frameworks.kde.org.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ esac
if [[ -z ${_FRAMEWORKS_KDE_ORG_ECLASS} ]]; then
_FRAMEWORKS_KDE_ORG_ECLASS=1

# @ECLASS_VARIABLE: KDE_CATV
# @DESCRIPTION:
# Holds main Frameworks release number (major.minor) for use on same-category
# dependencies.
KDE_CATV=$(ver_cut 1-2)
readonly KDE_CATV

# @ECLASS_VARIABLE: KDE_PV_UNRELEASED
# @INTERNAL
# @DESCRIPTION:
Expand All @@ -43,7 +50,7 @@ if [[ ${PN} == extra-cmake-modules ]]; then
SLOT=0
else
if [[ ${KDE_BUILD_TYPE} == release ]]; then
SLOT=${SLOT}/$(ver_cut 1-2)
SLOT=${SLOT}/${KDE_CATV}
else
SLOT=${SLOT}/9999
fi
Expand All @@ -63,7 +70,7 @@ _KDE_SRC_URI="mirror://kde/"

# TODO: Remove after last KF5 PortingAid treecleaned; bug 755956
if [[ ${KDE_BUILD_TYPE} != live && -z ${KDE_ORG_COMMIT} ]]; then
_KDE_SRC_URI+="stable/frameworks/$(ver_cut 1-2)/"
_KDE_SRC_URI+="stable/frameworks/${KDE_CATV}/"
case ${KDE_ORG_NAME} in
kdelibs4support | \
kdesignerplugin | \
Expand Down

0 comments on commit d73c98c

Please sign in to comment.