| 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.18 2005/11/02 05:51:38 joshuabaergen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.19 2005/11/02 06:11:29 joshuabaergen 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. |
| … | |
… | |
| 57 | |
57 | |
| 58 | RDEPEND="${RDEPEND} |
58 | RDEPEND="${RDEPEND} |
| 59 | !<x11-base/xorg-x11-7.0.0_rc0" |
59 | !<x11-base/xorg-x11-7.0.0_rc0" |
| 60 | # Provides virtual/x11 for temporary use until packages are ported |
60 | # Provides virtual/x11 for temporary use until packages are ported |
| 61 | # x11-base/x11-env" |
61 | # x11-base/x11-env" |
| 62 | |
|
|
| 63 | x-modular_pkg_setup() { |
|
|
| 64 | # Collision protect will scream bloody murder if we install over old versions |
|
|
| 65 | if $(has_version "<x11-base/xorg-x11-7.0.0_rc0"); then |
|
|
| 66 | if has collision-protect ${FEATURES}; then |
|
|
| 67 | eerror "Having collision-protect in FEATURES will disrupt upgrades" |
|
|
| 68 | eerror "from non-modular versions of xorg-x11." |
|
|
| 69 | eerror "Please remove collision-protect from FEATURES while upgrading." |
|
|
| 70 | die "" |
|
|
| 71 | fi |
|
|
| 72 | fi |
|
|
| 73 | } |
|
|
| 74 | |
62 | |
| 75 | x-modular_unpack_source() { |
63 | x-modular_unpack_source() { |
| 76 | unpack ${A} |
64 | unpack ${A} |
| 77 | cd ${S} |
65 | cd ${S} |
| 78 | |
66 | |