KDE5-FUNCTIONS.ECLASS

Section: portage (5)
Updated: Aug 2019
Index Return to Main Contents
 

NAME

kde5-functions.eclass - Common ebuild functions for packages based on KDE Frameworks 5.  

DESCRIPTION

This eclass contains functions shared by the other KDE eclasses and forms part of their public API.

This eclass should (almost) never be inherited directly by an ebuild.  

SUPPORTED EAPIS

6 7  

FUNCTIONS

add_frameworks_dep <package name> [USE flags] [minimum version] [slot + operator]
Create proper dependency for kde-frameworks/ dependencies. This takes 1 to 4 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). In addition, the optional fourth argument defines slot+operator instead of automatic slot (use even more 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_plasma_dep <package name> [USE flags] [minimum version] [slot + operator]
Create proper dependency for kde-plasma/ dependencies. This takes 1 to 4 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). In addition, the optional fourth argument defines slot+operator instead of automatic slot (use even more 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 <package name> [USE flags] [minimum version] [slot + operator]
Create proper dependency for kde-apps/ dependencies. This takes 1 to 4 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). In addition, the optional fourth argument defines slot+operator instead of automatic slot (use even more 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_qt_dep <package name> [USE flags] [minimum version] [slot + operator]
Create proper dependency for dev-qt/ dependencies. This takes 1 to 4 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). In addition, the optional fourth argument defines slot+operator instead of automatic slot (use even more 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).
get_kde_version
Translates an ebuild version into a major.minor KDE release version, taking into account KDE's prerelease versioning scheme. For example, get_kde_version 17.07.80 will return "17.08". If the version equals 9999, "live" is returned. If no version is specified, ${PV} is used.
punt_bogus_dep <prefix> <dependency>
Removes a specified dependency from a find_package call with multiple components.
 

ECLASS VARIABLES

KDE_BUILD_TYPE = "release"
If PV matches "*9999*", this is automatically set to "live". Otherwise, this is automatically set to "release".
QT_MINIMAL ?= 5.12.3
Minimum version of Qt to require. This affects add_qt_dep.
FRAMEWORKS_MINIMAL ?= 5.57.0
Minimum version of Frameworks to require. This affects add_frameworks_dep.
PLASMA_MINIMAL ?= 5.15.5
Minimum version of Plasma to require. This affects add_plasma_dep.
KDE_APPS_MINIMAL ?= 18.12.3
Minimum version of KDE Applications to require. This affects add_kdeapps_dep.
KDE_GCC_MINIMAL
Minimum version of active GCC to require. This is checked in kde5.eclass in kde5_pkg_pretend and kde5_pkg_setup.
 

MAINTAINERS

kde@gentoo.org
 

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/  

FILES

kde5-functions.eclass  

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/kde5-functions.eclass


 

Index

NAME
DESCRIPTION
SUPPORTED EAPIS
FUNCTIONS
ECLASS VARIABLES
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:05 GMT, August 17, 2019