/[gentoo-x86]/eclass/xorg-2.eclass
Gentoo

Diff of /eclass/xorg-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.51 Revision 1.53
1# Copyright 1999-2011 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.51 2011/11/01 13:51:05 chithanh Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.53 2012/05/02 18:31:45 jdhore 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:
35 # Activate font code in the rest of the eclass 35 # Activate font code in the rest of the eclass
36 FONT="yes" 36 FONT="yes"
37 FONT_ECLASS="font" 37 FONT_ECLASS="font"
38fi 38fi
39 39
40# we need to inherit autotools first to get the deps
40inherit autotools-utils eutils libtool multilib toolchain-funcs flag-o-matic autotools \ 41inherit autotools autotools-utils eutils libtool multilib toolchain-funcs \
41 ${FONT_ECLASS} ${GIT_ECLASS} 42 flag-o-matic ${FONT_ECLASS} ${GIT_ECLASS}
42 43
43EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm" 44EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm"
44case "${EAPI:-0}" in 45case "${EAPI:-0}" in
45 3|4) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;; 46 3|4) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;;
46 *) die "EAPI=${EAPI} is not supported" ;; 47 *) die "EAPI=${EAPI} is not supported" ;;
173 && ${PN} != xorg-cf-files \ 174 && ${PN} != xorg-cf-files \
174 && ${PN/xcursor} = ${PN} ]]; then 175 && ${PN/xcursor} = ${PN} ]]; then
175 IUSE+=" static-libs" 176 IUSE+=" static-libs"
176fi 177fi
177 178
178DEPEND+=" >=dev-util/pkgconfig-0.23" 179DEPEND+=" virtual/pkgconfig"
179 180
180# @ECLASS-VARIABLE: XORG_DRI 181# @ECLASS-VARIABLE: XORG_DRI
181# @DESCRIPTION: 182# @DESCRIPTION:
182# 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
183# are required for. Default value is "no" 184# are required for. Default value is "no"
311 # Patch directory is ${WORKDIR}/patch 312 # Patch directory is ${WORKDIR}/patch
312 # See epatch() in eutils.eclass for more documentation 313 # See epatch() in eutils.eclass for more documentation
313 EPATCH_SUFFIX=${EPATCH_SUFFIX:=patch} 314 EPATCH_SUFFIX=${EPATCH_SUFFIX:=patch}
314 315
315 [[ -d "${EPATCH_SOURCE}" ]] && epatch 316 [[ -d "${EPATCH_SOURCE}" ]] && epatch
316 autotools-utils_src_prepare "$@"
317} 317}
318 318
319# @FUNCTION: xorg-2_reconf_source 319# @FUNCTION: xorg-2_reconf_source
320# @DESCRIPTION: 320# @DESCRIPTION:
321# Run eautoreconf if necessary, and run elibtoolize. 321# Run eautoreconf if necessary, and run elibtoolize.
323 debug-print-function ${FUNCNAME} "$@" 323 debug-print-function ${FUNCNAME} "$@"
324 324
325 case ${CHOST} in 325 case ${CHOST} in
326 *-interix* | *-aix* | *-winnt*) 326 *-interix* | *-aix* | *-winnt*)
327 # some hosts need full eautoreconf 327 # some hosts need full eautoreconf
328 [[ -e "./configure.ac" || -e "./configure.in" ]] && eautoreconf || ewarn "Unable to autoreconf the configure script. Things may fail." 328 [[ -e "./configure.ac" || -e "./configure.in" ]] \
329 && AUTOTOOLS_AUTORECONF=1
329 ;; 330 ;;
330 *) 331 *)
331 # elibtoolize required for BSD 332 # elibtoolize required for BSD
332 [[ ${XORG_EAUTORECONF} != no && ( -e "./configure.ac" || -e "./configure.in" ) ]] && eautoreconf || elibtoolize 333 [[ ${XORG_EAUTORECONF} != no && ( -e "./configure.ac" || -e "./configure.in" ) ]] \
334 && AUTOTOOLS_AUTORECONF=1
333 ;; 335 ;;
334 esac 336 esac
335} 337}
336 338
337# @FUNCTION: xorg-2_src_prepare 339# @FUNCTION: xorg-2_src_prepare
340xorg-2_src_prepare() { 342xorg-2_src_prepare() {
341 debug-print-function ${FUNCNAME} "$@" 343 debug-print-function ${FUNCNAME} "$@"
342 344
343 xorg-2_patch_source 345 xorg-2_patch_source
344 xorg-2_reconf_source 346 xorg-2_reconf_source
347 autotools-utils_src_prepare "$@"
345} 348}
346 349
347# @FUNCTION: xorg-2_font_configure 350# @FUNCTION: xorg-2_font_configure
348# @DESCRIPTION: 351# @DESCRIPTION:
349# If a font package, perform any necessary configuration steps 352# If a font package, perform any necessary configuration steps

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20