| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2013 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/xorg-2.eclass,v 1.59 2012/09/27 16:35:42 axs Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.60 2013/01/31 14:12:12 chithanh Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: xorg-2.eclass |
5 | # @ECLASS: xorg-2.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # x11@gentoo.org |
7 | # x11@gentoo.org |
| 8 | # @AUTHOR: |
8 | # @AUTHOR: |
| … | |
… | |
| 268 | IUSE+=" ${XORG_DOC}" |
268 | IUSE+=" ${XORG_DOC}" |
| 269 | ;; |
269 | ;; |
| 270 | esac |
270 | esac |
| 271 | unset DOC_DEPEND |
271 | unset DOC_DEPEND |
| 272 | |
272 | |
|
|
273 | # @ECLASS-VARIABLE: XORG_MODULE_REBUILD |
|
|
274 | # @DESCRIPTION: |
|
|
275 | # Describes whether a package contains modules that need to be rebuilt on |
|
|
276 | # xorg-server upgrade. This has an effect only since EAPI=5. |
|
|
277 | # Possible values are "yes" or "no". Default value is "yes" for packages which |
|
|
278 | # are recognized as DRIVER by this eclass and "no" for all other packages. |
|
|
279 | if [[ "${DRIVER}" == yes ]]; then |
|
|
280 | : ${XORG_MODULE_REBUILD:="yes"} |
|
|
281 | else |
|
|
282 | : ${XORG_MODULE_REBUILD:="no"} |
|
|
283 | fi |
|
|
284 | |
|
|
285 | if [[ ${XORG_MODULE_REBUILD} == yes ]]; then |
|
|
286 | case ${EAPI} in |
|
|
287 | 3|4) |
|
|
288 | ;; |
|
|
289 | *) |
|
|
290 | RDEPEND+=" x11-base/xorg-server:=" |
|
|
291 | ;; |
|
|
292 | esac |
|
|
293 | fi |
|
|
294 | |
| 273 | DEPEND+=" ${COMMON_DEPEND}" |
295 | DEPEND+=" ${COMMON_DEPEND}" |
| 274 | RDEPEND+=" ${COMMON_DEPEND}" |
296 | RDEPEND+=" ${COMMON_DEPEND}" |
| 275 | unset COMMON_DEPEND |
297 | unset COMMON_DEPEND |
| 276 | |
298 | |
| 277 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND=${DEPEND}" |
299 | debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND=${DEPEND}" |