| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2011 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.120 2010/09/09 11:19:51 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.124 2011/12/27 17:55:13 fauli Exp $ |
| 4 | # |
4 | # |
| 5 | # @DEPRECATED |
5 | # @DEPRECATED |
| 6 | # This eclass has been superseded by xorg-2 |
6 | # This eclass has been superseded by xorg-2 |
| 7 | # Please modify your ebuilds to use that instead |
7 | # Please modify your ebuilds to use that instead |
| 8 | # |
8 | # |
| 9 | # @ECLASS: x-modular.eclass |
9 | # @ECLASS: x-modular.eclass |
| 10 | # @MAINTAINER: |
10 | # @MAINTAINER: |
| 11 | # Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org |
11 | # Donnie Berkholz <dberkholz@gentoo.org> |
|
|
12 | # x11@gentoo.org |
| 12 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
13 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
| 13 | # @DESCRIPTION: |
14 | # @DESCRIPTION: |
| 14 | # This eclass makes trivial X ebuilds possible for apps, fonts, drivers, |
15 | # This eclass makes trivial X ebuilds possible for apps, fonts, drivers, |
| 15 | # and more. Many things that would normally be done in various functions |
16 | # and more. Many things that would normally be done in various functions |
| 16 | # can be accessed by setting variables instead, such as patching, |
17 | # can be accessed by setting variables instead, such as patching, |
| … | |
… | |
| 180 | DEPEND="${DEPEND} |
181 | DEPEND="${DEPEND} |
| 181 | >=dev-util/pkgconfig-0.18" |
182 | >=dev-util/pkgconfig-0.18" |
| 182 | |
183 | |
| 183 | if [[ "${PN/util-macros}" = "${PN}" ]]; then |
184 | if [[ "${PN/util-macros}" = "${PN}" ]]; then |
| 184 | DEPEND="${DEPEND} |
185 | DEPEND="${DEPEND} |
| 185 | >=x11-misc/util-macros-1.3.0 |
186 | >=x11-misc/util-macros-1.3.0" |
| 186 | sys-devel/binutils" |
|
|
| 187 | fi |
187 | fi |
| 188 | |
188 | |
| 189 | RDEPEND="${RDEPEND} |
189 | RDEPEND="${RDEPEND} |
| 190 | !<=x11-base/xorg-x11-6.9" |
190 | !<=x11-base/xorg-x11-6.9" |
| 191 | # Provides virtual/x11 for temporary use until packages are ported |
191 | # Provides virtual/x11 for temporary use until packages are ported |
| … | |
… | |
| 540 | } |
540 | } |
| 541 | |
541 | |
| 542 | # @FUNCTION: install_driver_hwdata |
542 | # @FUNCTION: install_driver_hwdata |
| 543 | # @USAGE: |
543 | # @USAGE: |
| 544 | # @DESCRIPTION: |
544 | # @DESCRIPTION: |
| 545 | # Installs device-to-driver mappings for system-config-display and |
545 | # Installs device-to-driver mappings for system-config-display and |
| 546 | # anything else that uses hwdata. |
546 | # anything else that uses hwdata. |
| 547 | install_driver_hwdata() { |
547 | install_driver_hwdata() { |
| 548 | insinto /usr/share/hwdata/videoaliases |
548 | insinto /usr/share/hwdata/videoaliases |
| 549 | for i in "${FILESDIR}"/*.xinf; do |
549 | for i in "${FILESDIR}"/*.xinf; do |
| 550 | # We need this for the case when none exist, |
550 | # We need this for the case when none exist, |