| 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.35 2005/12/23 08:28:00 spyderous Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.39 2006/01/13 18:47:52 spyderous Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
5 | # Author: Donnie Berkholz <spyderous@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is designed to reduce code duplication in the modularized X11 |
7 | # This eclass is designed to reduce code duplication in the modularized X11 |
| 8 | # ebuilds. |
8 | # ebuilds. |
| … | |
… | |
| 65 | && [[ "${PN}" != "font-util" ]]; then |
65 | && [[ "${PN}" != "font-util" ]]; then |
| 66 | # Activate font code in the rest of the eclass |
66 | # Activate font code in the rest of the eclass |
| 67 | FONT="yes" |
67 | FONT="yes" |
| 68 | |
68 | |
| 69 | RDEPEND="${RDEPEND} |
69 | RDEPEND="${RDEPEND} |
| 70 | media-fonts/encodings" |
70 | media-fonts/encodings |
| 71 | DEPEND="${DEPEND} |
|
|
| 72 | x11-apps/mkfontscale |
71 | x11-apps/mkfontscale |
| 73 | x11-apps/mkfontdir" |
72 | x11-apps/mkfontdir" |
| 74 | PDEPEND="${PDEPEND} |
73 | PDEPEND="${PDEPEND} |
| 75 | media-fonts/font-alias" |
74 | media-fonts/font-alias" |
| 76 | |
75 | |
| … | |
… | |
| 99 | fi |
98 | fi |
| 100 | fi |
99 | fi |
| 101 | |
100 | |
| 102 | # If we're a driver package |
101 | # If we're a driver package |
| 103 | if [[ "${PN/#xf86-video}" != "${PN}" ]] || [[ "${PN/#xf86-input}" != "${PN}" ]]; then |
102 | if [[ "${PN/#xf86-video}" != "${PN}" ]] || [[ "${PN/#xf86-input}" != "${PN}" ]]; then |
| 104 | # Don't build static driver modules |
|
|
| 105 | DRIVER_OPTIONS="--disable-static" |
|
|
| 106 | |
|
|
| 107 | # Enable driver code in the rest of the eclass |
103 | # Enable driver code in the rest of the eclass |
| 108 | DRIVER="yes" |
104 | DRIVER="yes" |
| 109 | |
105 | |
| 110 | # Add driver patchset to SRC_URI |
106 | # Add driver patchset to SRC_URI |
| 111 | SRC_URI="${SRC_URI} |
107 | SRC_URI="${SRC_URI} |
| 112 | http://dev.gentoo.org/~joshuabaergen/distfiles/x11-driver-patches-${XDPVER}.tar.bz2" |
108 | http://dev.gentoo.org/~joshuabaergen/distfiles/x11-driver-patches-${XDPVER}.tar.bz2" |
| 113 | fi |
109 | fi |
| 114 | |
110 | |
| 115 | DEPEND="${DEPEND} |
111 | DEPEND="${DEPEND} |
| 116 | >=dev-util/pkgconfig-0.18 |
112 | >=dev-util/pkgconfig-0.18" |
|
|
113 | |
|
|
114 | if [[ "${PN/util-macros}" != "${PN}" ]]; then |
|
|
115 | DEPEND="${DEPEND} |
| 117 | >=x11-misc/util-macros-0.99.2" |
116 | >=x11-misc/util-macros-0.99.2" |
|
|
117 | fi |
| 118 | |
118 | |
| 119 | # >=sys-apps/man-1.6b-r2 required to look in [0-8]x/ directories |
119 | # >=sys-apps/man-1.6b-r2 required to look in [0-8]x/ directories |
| 120 | RDEPEND="${RDEPEND} |
120 | RDEPEND="${RDEPEND} |
| 121 | !<=x11-base/xorg-x11-6.9 |
121 | !<=x11-base/xorg-x11-6.9 |
| 122 | >=sys-apps/man-1.6b-r2" |
122 | >=sys-apps/man-1.6b-r2" |