diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-07-11 15:30:45 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-07-11 21:14:00 +0200 |
| commit | f6895dc3ebceee6fa1666ac3f8a0547ea39fb208 (patch) | |
| tree | f1653d18a07bd1e4852a1f02669597101e042a2f /eclass | |
| parent | 0a9f368b854bf38115a95b37cee8f754f54eb8cb (diff) | |
| download | kde-f6895dc3ebceee6fa1666ac3f8a0547ea39fb208.tar.gz kde-f6895dc3ebceee6fa1666ac3f8a0547ea39fb208.tar.bz2 kde-f6895dc3ebceee6fa1666ac3f8a0547ea39fb208.zip | |
kde.org.eclass: Cleanup obsolete Frameworks/Plasma/Gear quirks
Detect use of new product set eclasses and bail out then.
Still maintaining backwards compatibility to kde.org packages.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/kde.org.eclass | 79 |
1 files changed, 29 insertions, 50 deletions
diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass index f8638ad1f77..69a76604217 100644 --- a/eclass/kde.org.eclass +++ b/eclass/kde.org.eclass @@ -169,12 +169,16 @@ case ${CATEGORY} in https://invent.kde.org/qt/qt/ https://www.qt.io/" ;; kde-plasma) - HOMEPAGE="https://kde.org/plasma-desktop" + if [[ -z ${_PLASMA_KDE_ORG_ECLASS} ]]; then + HOMEPAGE="https://kde.org/plasma-desktop" + fi ;; kde-frameworks) - HOMEPAGE="https://kde.org/products/frameworks/" - SLOT=5/${PV} - [[ ${KDE_BUILD_TYPE} == release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2) + if [[ -z ${_FRAMEWORKS_KDE_ORG_ECLASS} ]]; then + HOMEPAGE="https://kde.org/products/frameworks/" + SLOT=5/${PV} + [[ ${KDE_BUILD_TYPE} == release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2) + fi ;; *) ;; esac @@ -186,6 +190,18 @@ esac _kde.org_calculate_src_uri() { debug-print-function ${FUNCNAME} "$@" + if [[ -n ${KDE_ORG_COMMIT} ]]; then + SRC_URI="https://invent.kde.org/${KDE_ORG_CATEGORY}/${KDE_ORG_NAME}/-/" + SRC_URI+="archive/${KDE_ORG_COMMIT}/${KDE_ORG_NAME}-${KDE_ORG_COMMIT}.tar.gz" + SRC_URI+=" -> ${KDE_ORG_NAME}-${PV}-${KDE_ORG_COMMIT:0:8}.tar.gz" + fi + + [[ ${KDE_ORG_UNRELEASED} == true ]] && RESTRICT+=" fetch" + + if [[ -n ${_FRAMEWORKS_KDE_ORG_ECLASS} ]] || [[ -n ${_PLASMA_KDE_ORG_ECLASS} ]] || [[ -n ${_GEAR_KDE_ORG_ECLASS} ]] || [[ -n ${KDE_ORG_COMMIT} ]]; then + return + fi + local _src_uri="mirror://kde/" if [[ ${KDE_GEAR} == true ]]; then @@ -226,45 +242,18 @@ _kde.org_calculate_src_uri() { ;; esac - if [[ -n ${KDE_ORG_COMMIT} ]]; then - SRC_URI="https://invent.kde.org/${KDE_ORG_CATEGORY}/${KDE_ORG_NAME}/-/" - SRC_URI+="archive/${KDE_ORG_COMMIT}/${KDE_ORG_NAME}-${KDE_ORG_COMMIT}.tar.gz" - SRC_URI+=" -> ${KDE_ORG_NAME}-${PV}-${KDE_ORG_COMMIT:0:8}.tar.gz" - else - SRC_URI="${_src_uri}${KDE_ORG_NAME}-${PV}.tar.xz" - fi - - [[ ${KDE_ORG_UNRELEASED} == true ]] && RESTRICT+=" fetch" -} - -# @FUNCTION: _kde.org_calculate_live_repo -# @INTERNAL -# @DESCRIPTION: -# Determine fetch location for live sources -_kde.org_calculate_live_repo() { - debug-print-function ${FUNCNAME} "$@" - - SRC_URI="" - - EGIT_MIRROR=${EGIT_MIRROR:=https://invent.kde.org/${KDE_ORG_CATEGORY}} - - if [[ ${PV} == 5.??(.?)*.9999 && ${CATEGORY} == dev-qt ]]; then - EGIT_BRANCH="kde/$(ver_cut 1-2)" - fi - - if [[ ${PV} == ??.??.49.9999 && ${KDE_GEAR} == true ]]; then - EGIT_BRANCH="release/$(ver_cut 1-2)" - fi - - if [[ ${PV} != 9999 && ${CATEGORY} == kde-plasma ]]; then - EGIT_BRANCH="Plasma/$(ver_cut 1-2)" - fi - - EGIT_REPO_URI="${EGIT_MIRROR}/${EGIT_REPONAME:=$KDE_ORG_NAME}.git" + SRC_URI="${_src_uri}${KDE_ORG_NAME}-${PV}.tar.xz" } case ${KDE_BUILD_TYPE} in - live) _kde.org_calculate_live_repo ;; + live) + EGIT_MIRROR=${EGIT_MIRROR:=https://invent.kde.org/${KDE_ORG_CATEGORY}} + EGIT_REPO_URI="${EGIT_MIRROR}/${EGIT_REPONAME:=$KDE_ORG_NAME}.git" + + if [[ ${PV} == 5.??.?.9999 && ${CATEGORY} == dev-qt ]]; then + EGIT_BRANCH="kde/$(ver_cut 1-2)" + fi + ;; *) _kde.org_calculate_src_uri debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}" @@ -284,16 +273,6 @@ esac # released upstream and should not be used. kde.org_pkg_nofetch() { [[ ${KDE_ORG_UNRELEASED} == true ]] || return - - case ${CATEGORY} in - kde-frameworks) KDE_ORG_SCHEDULE_URI+="/Frameworks" ;; - kde-plasma) KDE_ORG_SCHEDULE_URI+="/Plasma_5" ;; - *) - [[ ${KDE_GEAR} == true ]] && - KDE_ORG_SCHEDULE_URI+="/KDE_Gear_$(ver_cut 1-2)_Schedule" - ;; - esac - eerror " _ _ _ _ ____ _____ _ _____ _ ____ _____ ____ " eerror "| | | | \ | | _ \| ____| | | ____| / \ / ___|| ____| _ \ " eerror "| | | | \| | |_) | _| | | | _| / _ \ \___ \| _| | | | |" |
