| 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.92 2008/02/22 05:10:03 dberkholz Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.94 2008/03/09 05:20:30 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. |
| … | |
… | |
| 38 | fi |
38 | fi |
| 39 | |
39 | |
| 40 | IUSE="" |
40 | IUSE="" |
| 41 | HOMEPAGE="http://xorg.freedesktop.org/" |
41 | HOMEPAGE="http://xorg.freedesktop.org/" |
| 42 | |
42 | |
|
|
43 | if [[ -z ${SNAPSHOT} ]]; then |
| 43 | # @ECLASS-VARIABLE: SNAPSHOT |
44 | # @ECLASS-VARIABLE: SNAPSHOT |
| 44 | # @DESCRIPTION: |
45 | # @DESCRIPTION: |
| 45 | # If set to 'yes' and configure.ac exists, eautoreconf will run. Set |
46 | # If set to 'yes' and configure.ac exists, eautoreconf will run. Set |
| 46 | # before inheriting this eclass. |
47 | # before inheriting this eclass. |
| 47 | SNAPSHOT="no" |
48 | SNAPSHOT="no" |
|
|
49 | fi |
| 48 | |
50 | |
| 49 | if [[ ${PV} = 9999* ]]; then |
51 | if [[ ${PV} = 9999* ]]; then |
| 50 | GIT_ECLASS="git" |
52 | GIT_ECLASS="git" |
| 51 | SNAPSHOT="yes" |
53 | SNAPSHOT="yes" |
| 52 | SRC_URI="" |
54 | SRC_URI="" |
| … | |
… | |
| 61 | # x11-misc contains data and util, x11-themes contains data |
63 | # x11-misc contains data and util, x11-themes contains data |
| 62 | elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then |
64 | elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then |
| 63 | if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then |
65 | if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then |
| 64 | MODULE="data" |
66 | MODULE="data" |
| 65 | else |
67 | else |
| 66 | MODULE="data" |
68 | MODULE="util" |
| 67 | fi |
69 | fi |
| 68 | elif [[ ${CATEGORY} = x11-drivers ]]; then |
70 | elif [[ ${CATEGORY} = x11-drivers ]]; then |
| 69 | MODULE="driver" |
71 | MODULE="driver" |
| 70 | elif [[ ${CATEGORY} = media-fonts ]]; then |
72 | elif [[ ${CATEGORY} = media-fonts ]]; then |
| 71 | MODULE="font" |
73 | MODULE="font" |