| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/x-modular.eclass,v 1.93 2008/03/06 04:42:26 dberkholz Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.95 2008/04/13 04:44:16 dberkholz Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: x-modular.eclass |
5 | # @ECLASS: x-modular.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org |
7 | # Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org |
| 8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
| … | |
… | |
| 63 | # x11-misc contains data and util, x11-themes contains data |
63 | # x11-misc contains data and util, x11-themes contains data |
| 64 | elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then |
64 | elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then |
| 65 | if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then |
65 | if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then |
| 66 | MODULE="data" |
66 | MODULE="data" |
| 67 | else |
67 | else |
| 68 | MODULE="data" |
68 | MODULE="util" |
| 69 | fi |
69 | fi |
| 70 | elif [[ ${CATEGORY} = x11-drivers ]]; then |
70 | elif [[ ${CATEGORY} = x11-drivers ]]; then |
| 71 | MODULE="driver" |
71 | MODULE="driver" |
| 72 | elif [[ ${CATEGORY} = media-fonts ]]; then |
72 | elif [[ ${CATEGORY} = media-fonts ]]; then |
| 73 | MODULE="font" |
73 | MODULE="font" |
| … | |
… | |
| 280 | # @VARIABLE: PATCHES |
280 | # @VARIABLE: PATCHES |
| 281 | # @DESCRIPTION: |
281 | # @DESCRIPTION: |
| 282 | # If you have any patches to apply, set PATCHES to their locations and epatch |
282 | # If you have any patches to apply, set PATCHES to their locations and epatch |
| 283 | # will apply them. It also handles epatch-style bulk patches, if you know how to |
283 | # will apply them. It also handles epatch-style bulk patches, if you know how to |
| 284 | # use them and set the correct variables. If you don't, read eutils.eclass. |
284 | # use them and set the correct variables. If you don't, read eutils.eclass. |
|
|
285 | if [[ ${#PATCHES[@]} -gt 1 ]]; then |
|
|
286 | for x in "${PATCHES[@]}"; do |
|
|
287 | epatch "${x}" |
|
|
288 | done |
| 285 | if [[ -n "${PATCHES}" ]] ; then |
289 | elif [[ -n "${PATCHES}" ]]; then |
| 286 | for PATCH in ${PATCHES} |
290 | for x in ${PATCHES}; do |
| 287 | do |
|
|
| 288 | epatch ${PATCH} |
291 | epatch "${x}" |
| 289 | done |
292 | done |
| 290 | # For non-default directory bulk patching |
293 | # For non-default directory bulk patching |
| 291 | elif [[ -n "${PATCH_LOC}" ]] ; then |
294 | elif [[ -n "${PATCH_LOC}" ]] ; then |
| 292 | epatch ${PATCH_LOC} |
295 | epatch ${PATCH_LOC} |
| 293 | # For standard bulk patching |
296 | # For standard bulk patching |