diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-14 01:38:22 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-14 01:38:22 +0100 |
commit | ae5005f56ad29d19861ad8a8acb541cf0e99c8d9 (patch) | |
tree | 519be2a26050e34055ea7f44d9272c9365e10e5d /eclass | |
parent | d01ca4361883c2aec4ffb1c2dcd75980773fdc31 (diff) |
gentoo auto-resync : 14:07:2022 - 01:38:22
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 36281 -> 36614 bytes | |||
-rw-r--r-- | eclass/frameworks.kde.org.eclass | 72 | ||||
-rw-r--r-- | eclass/gear.kde.org.eclass | 66 |
3 files changed, 138 insertions, 0 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex 118f128084e0..bcd5bda481b5 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/frameworks.kde.org.eclass b/eclass/frameworks.kde.org.eclass new file mode 100644 index 000000000000..876c05c9b6af --- /dev/null +++ b/eclass/frameworks.kde.org.eclass @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: frameworks.kde.org.eclass +# @MAINTAINER: +# kde@gentoo.org +# @SUPPORTED_EAPIS: 8 +# @PROVIDES: kde.org +# @BLURB: Support eclass for KDE Frameworks packages. +# @DESCRIPTION: +# This eclass extends kde.org.eclass for Frameworks release group to assemble +# default SRC_URI for tarballs, set up git-r3.eclass for stable/master branch +# versions or restrict access to unreleased (packager access only) tarballs +# in Gentoo KDE overlay. +# +# This eclass unconditionally inherits kde.org.eclass and all its public +# variables and helper functions (not phase functions) may be considered as +# part of this eclass's API. + +case ${EAPI} in + 8) ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; +esac + +if [[ -z ${_FRAMEWORKS_KDE_ORG_ECLASS} ]]; then +_FRAMEWORKS_KDE_ORG_ECLASS=1 + +# @ECLASS_VARIABLE: KDE_PV_UNRELEASED +# @INTERNAL +# @DESCRIPTION: +# For proper description see kde.org.eclass manpage. +KDE_PV_UNRELEASED=( ) + +inherit kde.org + +HOMEPAGE="https://develop.kde.org/products/frameworks/" + +SLOT=5/${PV} +[[ ${KDE_BUILD_TYPE} == release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2) + +# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI +# @INTERNAL +# @DESCRIPTION: +# For proper description see kde.org.eclass manpage. +KDE_ORG_SCHEDULE_URI+="/Frameworks" + +# @ECLASS_VARIABLE: _KDE_SRC_URI +# @INTERNAL +# @DESCRIPTION: +# Helper variable to construct release group specific SRC_URI. +_KDE_SRC_URI="mirror://kde/" + +if [[ ${KDE_BUILD_TYPE} != live && -z ${KDE_ORG_COMMIT} ]]; then + _KDE_SRC_URI+="stable/frameworks/$(ver_cut 1-2)/" + case ${KDE_ORG_NAME} in + kdelibs4support | \ + kdesignerplugin | \ + kdewebkit | \ + khtml | \ + kjs | \ + kjsembed | \ + kmediaplayer | \ + kross | \ + kxmlrpcclient) + _KDE_SRC_URI+="portingAids/" + ;; + esac + + SRC_URI="${_KDE_SRC_URI}${KDE_ORG_NAME}-${PV}.tar.xz" +fi + +fi diff --git a/eclass/gear.kde.org.eclass b/eclass/gear.kde.org.eclass new file mode 100644 index 000000000000..66c86b59fa32 --- /dev/null +++ b/eclass/gear.kde.org.eclass @@ -0,0 +1,66 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: gear.kde.org.eclass +# @MAINTAINER: +# kde@gentoo.org +# @SUPPORTED_EAPIS: 8 +# @PROVIDES: kde.org +# @BLURB: Support eclass for KDE Gear packages. +# @DESCRIPTION: +# This eclass extends kde.org.eclass for KDE Gear release group to assemble +# default SRC_URI for tarballs, set up git-r3.eclass for stable/master branch +# versions or restrict access to unreleased (packager access only) tarballs +# in Gentoo KDE overlay. +# +# This eclass unconditionally inherits kde.org.eclass and all its public +# variables and helper functions (not phase functions) may be considered as +# part of this eclass's API. + +case ${EAPI} in + 8) ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; +esac + +if [[ -z ${_GEAR_KDE_ORG_ECLASS} ]]; then +_GEAR_KDE_ORG_ECLASS=1 + +# @ECLASS_VARIABLE: KDE_PV_UNRELEASED +# @INTERNAL +# @DESCRIPTION: +# For proper description see kde.org.eclass manpage. +KDE_PV_UNRELEASED=( ) + +inherit kde.org + +HOMEPAGE="https://apps.kde.org/" + +# @ECLASS_VARIABLE: KDE_ORG_SCHEDULE_URI +# @INTERNAL +# @DESCRIPTION: +# For proper description see kde.org.eclass manpage. +KDE_ORG_SCHEDULE_URI+="/KDE_Gear_${PV:0:5}_Schedule" + +# @ECLASS_VARIABLE: _KDE_SRC_URI +# @INTERNAL +# @DESCRIPTION: +# Helper variable to construct release group specific SRC_URI. +_KDE_SRC_URI="mirror://kde/" + +if [[ ${KDE_BUILD_TYPE} == live ]]; then + if [[ ${PV} == ??.??.49.9999 ]]; then + EGIT_BRANCH="release/$(ver_cut 1-2)" + fi +elif [[ -z ${KDE_ORG_COMMIT} ]]; then + case ${PV} in + ??.??.[6-9]? ) + _KDE_SRC_URI+="unstable/release-service/${PV}/src/" + RESTRICT+=" mirror" + ;; + *) _KDE_SRC_URI+="stable/release-service/${PV}/src/" ;; + esac + + SRC_URI="${_KDE_SRC_URI}${KDE_ORG_NAME}-${PV}.tar.xz" +fi + +fi |