Skip to content

Commit

Permalink
kde.org.eclass, ecm.eclass: Re-add kde-apps-19.08 support for now
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Mar 19, 2020
1 parent 69bda46 commit 6e0b210
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
28 changes: 27 additions & 1 deletion eclass/ecm.eclass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: ecm.eclass
Expand Down Expand Up @@ -218,6 +218,27 @@ case ${ECM_DESIGNERPLUGIN} in
;;
esac

# @ECLASS-VARIABLE: KDE_DESIGNERPLUGIN
# @DESCRIPTION:
# If set to "false", do nothing.
# Otherwise, add "designer" to IUSE to toggle build of designer plugins
# and add the necessary BDEPEND.
# TODO: drop after KDE Applications 19.08.3 removal
: ${KDE_DESIGNERPLUGIN:=false}
case ${KDE_DESIGNERPLUGIN} in
true)
IUSE+=" designer"
BDEPEND+="
designer? ( >=kde-frameworks/kdesignerplugin-${KFMIN}:${KFSLOT} )
"
;;
false) ;;
*)
eerror "Unknown value for \${KDE_DESIGNERPLUGIN}"
die "Value ${KDE_DESIGNERPLUGIN} is not supported"
;;
esac

case ${ECM_EXAMPLES} in
true)
IUSE+=" examples"
Expand Down Expand Up @@ -524,6 +545,11 @@ ecm_src_configure() {
cmakeargs+=( -DBUILD_DESIGNERPLUGIN=$(usex designer) )
fi

# TODO: drop after KDE Applications 19.08.3 removal
if in_iuse designer && [[ ${KDE_DESIGNERPLUGIN} != false ]] ; then
cmakeargs+=( $(cmake_use_find_package designer KF5DesignerPlugin) )
fi

if [[ ${ECM_QTHELP} = true ]]; then
cmakeargs+=( -DBUILD_QCH=$(usex doc) )
fi
Expand Down
3 changes: 2 additions & 1 deletion eclass/kde.org.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ _kde.org_calculate_src_uri() {
if [[ ${KDE_RELEASE_SERVICE} = true ]]; then
case ${PV} in
??.??.[6-9]? )
_src_uri+="unstable/release-service/${PV}/src/"
_src_uri+="unstable/applications/${PV}/src/"
RESTRICT+=" mirror"
;;
19.08.3? ) _src_uri+="stable/applications/${PV}/src/" ;;
*) _src_uri+="stable/release-service/${PV}/src/" ;;
esac
fi
Expand Down

0 comments on commit 6e0b210

Please sign in to comment.