diff options
| author | Alexey Shvetsov <alexxy@gentoo.org> | 2009-12-02 18:25:29 +0300 |
|---|---|---|
| committer | Alexey Shvetsov <alexxy@gentoo.org> | 2009-12-02 18:25:29 +0300 |
| commit | 8fa7eb63df3d6bb48043929c2cdba4faa389984b (patch) | |
| tree | 253b02edcee1fe28fbe5949b81b4ea98a677046a /eclass | |
| parent | 8fb6fb2b5f455946eaffb7943bc9d5dc4d2ff693 (diff) | |
| download | kde-8fa7eb63df3d6bb48043929c2cdba4faa389984b.tar.gz kde-8fa7eb63df3d6bb48043929c2cdba4faa389984b.tar.bz2 kde-8fa7eb63df3d6bb48043929c2cdba4faa389984b.zip | |
[eclass] Add deps to qt-multimedia
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/kde4-base.eclass | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index 99236bcce04..9e19495efbc 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -60,6 +60,12 @@ esac # This variable must be set before inheriting any eclasses. Defaults to 'never'. OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}" +# @ECLASS-VARIABLE: MULTIMEDIA_REQUIRED +# @DESCRIPTION: +# Is qt-multimedia required? Possible values are 'always', 'optional' and 'never'. +# This variable must be set before inheriting any eclasses. Defaults to 'never'. +MULTIMEDIA_REQUIRED="${MULTIMEDIA_REQUIRED:-never}" + # @ECLASS-VARIABLE: WEBKIT_REQUIRED # @DESCRIPTION: # Is qt-webkit requred? Possible values are 'always', 'optional' and 'never'. @@ -146,7 +152,7 @@ esac # Currently defaults to 4.5.1 for KDE 4.3 and earlier # or 4.6.0_rc1 for KDE 4.4 and later if slot_is_at_least 4.4 "${KDE_MINIMAL}"; then - QT_MINIMAL="${QT_MINIMAL:-4.6.0_rc1}" + QT_MINIMAL="${QT_MINIMAL:-4.6.0}" fi QT_MINIMAL="${QT_MINIMAL:-4.5.1}" @@ -167,6 +173,22 @@ case ${OPENGL_REQUIRED} in esac unset qtopengldepend +# MultiMedia dependencies +qtmultimediadepend=" + >=x11-libs/qt-multimedia-${QT_MINIMAL}:4 +" +case ${MULTIMEDIA_REQUIRED} in + always) + COMMONDEPEND+=" ${qtmultimediadepend}" + ;; + optional) + IUSE+=" multimedia" + COMMONDEPEND+=" multimedia? ( ${qtmultimediadepend} )" + ;; + *) ;; +esac +unset qtmultimediadepend + # WebKit dependencies case ${KDE_REQUIRED} in always) |
