/[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.57 Revision 1.59
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.57 2012/06/11 13:02:21 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.59 2012/09/27 16:35:42 axs 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:
41inherit autotools autotools-utils eutils libtool multilib toolchain-funcs \ 41inherit autotools autotools-utils eutils libtool multilib toolchain-funcs \
42 flag-o-matic ${FONT_ECLASS} ${GIT_ECLASS} 42 flag-o-matic ${FONT_ECLASS} ${GIT_ECLASS}
43 43
44EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm" 44EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm"
45case "${EAPI:-0}" in 45case "${EAPI:-0}" in
46 3|4) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;; 46 3|4|5) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;;
47 *) die "EAPI=${EAPI} is not supported" ;; 47 *) die "EAPI=${EAPI} is not supported" ;;
48esac 48esac
49 49
50# exports must be ALWAYS after inherit 50# exports must be ALWAYS after inherit
51EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS} 51EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS}
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
427
428 # Check if package supports disabling of dep tracking
429 # Fixes warnings like:
430 # WARNING: unrecognized options: --disable-dependency-tracking
431 if grep -q -s "disable-depencency-tracking" ${ECONF_SOURCE:-.}/configure; then
432 local dep_track="--disable-dependency-tracking"
433 fi
434
427 local myeconfargs=( 435 local myeconfargs=(
428 --disable-dependency-tracking 436 ${dep_track}
429 ${FONT_OPTIONS} 437 ${FONT_OPTIONS}
430 "${xorgconfadd[@]}" 438 "${xorgconfadd[@]}"
431 ) 439 )
432 440
433 autotools-utils_src_configure "$@" 441 autotools-utils_src_configure "$@"

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20