| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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.52 2012/03/22 06:57:46 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.57 2012/06/11 13:02:21 mgorny 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: |
| … | |
… | |
| 89 | # For git checkout the git repository might differ from package name. |
89 | # For git checkout the git repository might differ from package name. |
| 90 | # This variable can be used for proper directory specification |
90 | # This variable can be used for proper directory specification |
| 91 | : ${XORG_PACKAGE_NAME:=${PN}} |
91 | : ${XORG_PACKAGE_NAME:=${PN}} |
| 92 | |
92 | |
| 93 | if [[ -n ${GIT_ECLASS} ]]; then |
93 | if [[ -n ${GIT_ECLASS} ]]; then |
| 94 | : ${EGIT_REPO_URI:="git://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME} http://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}"} |
94 | : ${EGIT_REPO_URI:="git://anongit.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME} http://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}"} |
| 95 | elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then |
95 | elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then |
| 96 | SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2" |
96 | SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2" |
| 97 | fi |
97 | fi |
| 98 | |
98 | |
| 99 | : ${SLOT:=0} |
99 | : ${SLOT:=0} |
| … | |
… | |
| 108 | XORG_EAUTORECONF_ARCHES="x86-interix ppc-aix x86-winnt" |
108 | XORG_EAUTORECONF_ARCHES="x86-interix ppc-aix x86-winnt" |
| 109 | EAUTORECONF_DEPEND+=" |
109 | EAUTORECONF_DEPEND+=" |
| 110 | >=sys-devel/libtool-2.2.6a |
110 | >=sys-devel/libtool-2.2.6a |
| 111 | sys-devel/m4" |
111 | sys-devel/m4" |
| 112 | if [[ ${PN} != util-macros ]] ; then |
112 | if [[ ${PN} != util-macros ]] ; then |
| 113 | EAUTORECONF_DEPEND+=" >=x11-misc/util-macros-1.15.0" |
113 | EAUTORECONF_DEPEND+=" >=x11-misc/util-macros-1.17" |
| 114 | # Required even by xorg-server |
114 | # Required even by xorg-server |
| 115 | [[ ${PN} == "font-util" ]] || EAUTORECONF_DEPEND+=" >=media-fonts/font-util-1.2.0" |
115 | [[ ${PN} == "font-util" ]] || EAUTORECONF_DEPEND+=" >=media-fonts/font-util-1.2.0" |
| 116 | fi |
116 | fi |
| 117 | WANT_AUTOCONF="latest" |
117 | WANT_AUTOCONF="latest" |
| 118 | WANT_AUTOMAKE="latest" |
118 | WANT_AUTOMAKE="latest" |
| … | |
… | |
| 174 | && ${PN} != xorg-cf-files \ |
174 | && ${PN} != xorg-cf-files \ |
| 175 | && ${PN/xcursor} = ${PN} ]]; then |
175 | && ${PN/xcursor} = ${PN} ]]; then |
| 176 | IUSE+=" static-libs" |
176 | IUSE+=" static-libs" |
| 177 | fi |
177 | fi |
| 178 | |
178 | |
| 179 | DEPEND+=" >=dev-util/pkgconfig-0.23" |
179 | DEPEND+=" virtual/pkgconfig" |
| 180 | |
180 | |
| 181 | # @ECLASS-VARIABLE: XORG_DRI |
181 | # @ECLASS-VARIABLE: XORG_DRI |
| 182 | # @DESCRIPTION: |
182 | # @DESCRIPTION: |
| 183 | # Possible values are "always" or the value of the useflag DRI capabilities |
183 | # Possible values are "always" or the value of the useflag DRI capabilities |
| 184 | # are required for. Default value is "no" |
184 | # are required for. Default value is "no" |
| … | |
… | |
| 416 | if [[ -n "${CONFIGURE_OPTIONS}" ]]; then |
416 | if [[ -n "${CONFIGURE_OPTIONS}" ]]; then |
| 417 | eqawarn "CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS" |
417 | eqawarn "CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS" |
| 418 | eqawarn "to preserve namespace." |
418 | eqawarn "to preserve namespace." |
| 419 | fi |
419 | fi |
| 420 | |
420 | |
| 421 | local xorgconfadd=(${CONFIGURE_OPTIONS}) |
421 | local xorgconfadd=(${CONFIGURE_OPTIONS} ${XORG_CONFIGURE_OPTIONS}) |
| 422 | else |
422 | else |
| 423 | local xorgconfadd=("${XORG_CONFIGURE_OPTIONS[@]}") |
423 | local xorgconfadd=("${XORG_CONFIGURE_OPTIONS[@]}") |
| 424 | fi |
424 | fi |
| 425 | |
425 | |
| 426 | [[ -n "${FONT}" ]] && xorg-2_font_configure |
426 | [[ -n "${FONT}" ]] && xorg-2_font_configure |
| … | |
… | |
| 466 | |
466 | |
| 467 | if [[ -e "${S}"/ChangeLog ]]; then |
467 | if [[ -e "${S}"/ChangeLog ]]; then |
| 468 | dodoc "${S}"/ChangeLog || die "dodoc failed" |
468 | dodoc "${S}"/ChangeLog || die "dodoc failed" |
| 469 | fi |
469 | fi |
| 470 | |
470 | |
| 471 | # Don't install libtool archives (even with static-libs) |
471 | # Don't install libtool archives (even for modules) |
| 472 | remove_libtool_files all |
472 | prune_libtool_files --all |
| 473 | |
473 | |
| 474 | [[ -n ${FONT} ]] && remove_font_metadata |
474 | [[ -n ${FONT} ]] && remove_font_metadata |
| 475 | } |
475 | } |
| 476 | |
476 | |
| 477 | # @FUNCTION: xorg-2_pkg_postinst |
477 | # @FUNCTION: xorg-2_pkg_postinst |