diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-07-11 15:49:28 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-07-19 17:38:36 +0200 |
commit | 09ac4646c22b3775085f801e7c857538f8a92361 (patch) | |
tree | 73268b52e91db4ff3301e7671903848b49245453 /eclass | |
parent | kde-frameworks/kross: drop 5.95.0 (diff) | |
download | gentoo-09ac4646c22b3775085f801e7c857538f8a92361.tar.gz gentoo-09ac4646c22b3775085f801e7c857538f8a92361.tar.bz2 gentoo-09ac4646c22b3775085f801e7c857538f8a92361.zip |
plasma-mobile.kde.org.eclass: New eclass to serve Plasma Mobile packages
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/plasma-mobile.kde.org.eclass | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/eclass/plasma-mobile.kde.org.eclass b/eclass/plasma-mobile.kde.org.eclass new file mode 100644 index 000000000000..91397cd1c0e7 --- /dev/null +++ b/eclass/plasma-mobile.kde.org.eclass @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: plasma-mobile.kde.org.eclass +# @MAINTAINER: +# kde@gentoo.org +# @SUPPORTED_EAPIS: 8 +# @PROVIDES: kde.org +# @BLURB: Support eclass for KDE Plasma Mobile packages. +# @DESCRIPTION: +# This eclass extends kde.org.eclass for Plasma Mobile 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 ${_PLASMA_MOBILE_KDE_ORG_ECLASS} ]]; then +_PLASMA_MOBILE_KDE_ORG_ECLASS=1 + +# @ECLASS_VARIABLE: KDE_ORG_CATEGORY +# @PRE_INHERIT +# @DESCRIPTION: +# For proper description see kde.org.eclass manpage. +: ${KDE_ORG_CATEGORY:=plasma-mobile} + +inherit kde.org + +HOMEPAGE="https://plasma-mobile.org/" + +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="https://invent.kde.org/plasma/plasma-mobile/-/wikis/Release-Schedule" + +if [[ ${KDE_BUILD_TYPE} != live && -z ${KDE_ORG_COMMIT} ]]; then + SRC_URI="mirror://kde/stable/plasma-mobile/${PV}/${KDE_ORG_NAME}-${PV}.tar.xz" +fi + +fi |