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/kde4-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/kde4-functions.eclass')
| -rw-r--r-- | eclass/kde4-functions.eclass | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index a5af8bd8fc3..69660ea32dc 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -36,7 +36,7 @@ esac # @DESCRIPTION: # This gets set to a non-zero value when a package is considered a kde or # kdevelop ebuild. -if [[ ${CATEGORY} = kde-base ]]; then +if [[ ${CATEGORY} = kde-base || ${CATEGORY} = kde-apps ]]; then debug-print "${ECLASS}: KDEBASE ebuild recognized" KDEBASE=kde-base elif [[ ${KMNAME-${PN}} = kdevelop ]]; then @@ -298,7 +298,12 @@ load_library_dependencies() { add_kdebase_dep() { debug-print-function ${FUNCNAME} "$@" - local ver + local ver category=kde-base + + if [[ ${CATEGORY} == kde-apps && ${1} != kdelibs && ${1} != kdepimlibs && ${1} != baloo-widgets && + ${1} != kactivities && ${1} != baloo && ${1} != kfilemetadata ]] ; then + category=kde-apps + fi if [[ -n ${3} ]]; then ver=${3} @@ -311,12 +316,16 @@ add_kdebase_dep() { elif [[ ${PV} == *.9999 ]]; then ver=$(get_kde_version) else - ver=${PV} + if [[ ${CATEGORY} == kde-apps && ${category} == kde-base ]]; then + ver=4.14.3 + else + ver=${PV} + fi fi [[ -z ${1} ]] && die "Missing parameter" - echo " >=kde-base/${1}-${ver}:4[aqua=${2:+,${2}}]" + echo " >=${category}/${1}-${ver}:4[aqua=${2:+,${2}}]" } # local function to enable specified translations for specified directory |
