diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-11-24 22:11:11 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-11-24 22:19:58 +1100 |
| commit | 65409addcae2f031c676b89cfca712553762b1be (patch) | |
| tree | dff062922d78472494423476f4e67ef430f43b3d /eclass/kde5-functions.eclass | |
| parent | 61baad821d795c47908c19e3c0a0c0225b175a2d (diff) | |
| download | kde-65409addcae2f031c676b89cfca712553762b1be.tar.gz kde-65409addcae2f031c676b89cfca712553762b1be.tar.bz2 kde-65409addcae2f031c676b89cfca712553762b1be.zip | |
[eclass] Add KDE Applications support.
For all applications:
- Add SRC_URI support
- Add mirror restriction for prereleases
For KDE 4 based applications:
- Support kde-apps/oxygen-icons
- Automatically block kde-base/${PN}
- Modify add_kdebase_dep to use kde-apps, with a blacklist for packages with no
applications release
For KDE 5 based applications:
- Introduce add_kdeapps_dep in a similar vein to the other add_kde*_dep functions
Diffstat (limited to 'eclass/kde5-functions.eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index 44662762fc8..830cacc497d 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -131,6 +131,30 @@ add_frameworks_dep() { _add_kdecategory_dep kde-frameworks "${1}" "${2}" "${version}" } +# @FUNCTION: add_kdeapps_dep +# @USAGE: <package> [USE flags] [minimum version] +# @DESCRIPTION: +# Create proper dependency for kde-apps/ dependencies. +# This takes 1 to 3 arguments. The first being the package name, the optional +# second is additional USE flags to append, and the optional third is the +# version to use instead of the automatic version (use sparingly). +# The output of this should be added directly to DEPEND/RDEPEND, and may be +# wrapped in a USE conditional (but not an || conditional without an extra set +# of parentheses). +add_kdeapps_dep() { + debug-print-function ${FUNCNAME} "$@" + + local version + + if [[ -n ${3} ]]; then + version=${3} + elif [[ ${CATEGORY} = kde-apps ]]; then + version=${PV} + fi + + _add_kdecategory_dep kde-apps "${1}" "${2}" "${version}" +} + # @FUNCTION: add_kdebase_dep # @USAGE: <package> [USE flags] [minimum version] # @DESCRIPTION: |
