| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.42 2010/09/15 08:22:13 reavertm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.43 2010/09/15 11:06:33 reavertm Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: kde4-meta.eclass |
5 | # @ECLASS: kde4-meta.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: Eclass for writing "split" KDE packages. |
8 | # @BLURB: Eclass for writing "split" KDE packages. |
| … | |
… | |
| 98 | # If set to "true", $KMMODULE doesn't have to be defined. |
98 | # If set to "true", $KMMODULE doesn't have to be defined. |
| 99 | # |
99 | # |
| 100 | # Example usage: If you're installing subdirectories of a package, like plugins, |
100 | # Example usage: If you're installing subdirectories of a package, like plugins, |
| 101 | # you mark the top subdirectory (containing the package) as $KMEXTRACTONLY, and |
101 | # you mark the top subdirectory (containing the package) as $KMEXTRACTONLY, and |
| 102 | # set KMNOMODULE="true". |
102 | # set KMNOMODULE="true". |
| 103 | if [[ -z ${KMMODULE} && ${KMNOMODULE} != true ]]; then |
103 | if [[ -z ${KMMODULE} ]] && [[ ${KMNOMODULE} != true ]]; then |
| 104 | KMMODULE=${PN} |
104 | KMMODULE=${PN} |
| 105 | fi |
105 | fi |
| 106 | |
106 | |
| 107 | # @ECLASS-VARIABLE: KMEXTRA |
107 | # @ECLASS-VARIABLE: KMEXTRA |
| 108 | # @DESCRIPTION: |
108 | # @DESCRIPTION: |
| … | |
… | |
| 281 | kde4-meta_create_extractlists() { |
281 | kde4-meta_create_extractlists() { |
| 282 | debug-print-function ${FUNCNAME} "$@" |
282 | debug-print-function ${FUNCNAME} "$@" |
| 283 | |
283 | |
| 284 | # Add default handbook locations |
284 | # Add default handbook locations |
| 285 | # FIXME - legacy code - remove when 4.4.5 is gone or preferrably port 4.4.5. |
285 | # FIXME - legacy code - remove when 4.4.5 is gone or preferrably port 4.4.5. |
| 286 | if ! slot_is_at_least 4.5 ${SLOT} && has handbook ${IUSE//+} && use handbook && [[ -n ${KMMODULE} ]]; then |
286 | if ! slot_is_at_least 4.5 ${SLOT} && has handbook ${IUSE//+} && use handbook && [[ -z ${KMNOMODULE} ]]; then |
| 287 | # We use the basename of $KMMODULE because $KMMODULE can contain |
287 | # We use the basename of $KMMODULE because $KMMODULE can contain |
| 288 | # the path to the module subdirectory. |
288 | # the path to the module subdirectory. |
| 289 | KMEXTRA_NONFATAL+=" |
289 | KMEXTRA_NONFATAL+=" |
| 290 | doc/${KMMODULE##*/}" |
290 | doc/${KMMODULE##*/}" |
| 291 | fi |
291 | fi |
| 292 | |
292 | |
| 293 | # Add default handbook locations |
293 | # Add default handbook locations |
| 294 | if [[ -n ${KMMODULE} ]] && [[ ${KDE_HANDBOOK} = always ]] || { [[ ${KDE_HANDBOOK} = optional ]] && use handbook; }; then |
294 | if [[ -z ${KMNOMODULE} ]] && { [[ ${KDE_HANDBOOK} = always ]] || { [[ ${KDE_HANDBOOK} = optional ]] && use handbook; }; }; then |
| 295 | KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}" |
295 | KMEXTRA_NONFATAL+=" doc/${KMMODULE##*/}" |
| 296 | fi |
296 | fi |
| 297 | |
297 | |
| 298 | # Add some CMake-files to KMEXTRACTONLY. |
298 | # Add some CMake-files to KMEXTRACTONLY. |
| 299 | # Note that this actually doesn't include KMEXTRA handling. |
299 | # Note that this actually doesn't include KMEXTRA handling. |