/[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.34 Revision 1.39
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.34 2011/03/16 20:57:43 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.39 2011/03/19 15:02:47 scarabeus 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# @BLURB: Reduces code duplication in the modularized X11 ebuilds. 8# @BLURB: Reduces code duplication in the modularized X11 ebuilds.
41 ${FONT_ECLASS} ${GIT_ECLASS} 41 ${FONT_ECLASS} ${GIT_ECLASS}
42 42
43EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm" 43EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm"
44case "${EAPI:-0}" in 44case "${EAPI:-0}" in
45 3|4) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;; 45 3|4) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;;
46 *) die "EAPI-UNSUPPORTED" ;; 46 *) die "EAPI=${EAPI} is not supported" ;;
47esac 47esac
48 48
49# exports must be ALWAYS after inherit 49# exports must be ALWAYS after inherit
50EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS} 50EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS}
51 51
82 *) XORG_MODULE= ;; 82 *) XORG_MODULE= ;;
83 esac 83 esac
84fi 84fi
85 85
86# backcompat, remove when everything in main tree fixed 86# backcompat, remove when everything in main tree fixed
87[[ -n ${MODULE} ]] && XORG_MODULE=${MODULE} && ewarn "Your ebuild is using MODULE variable, please migrate to XORG_MODULE to preserve namespace." 87[[ -n ${MODULE} ]] && XORG_MODULE=${MODULE} && ewarn "$CATEGORY/$P is using MODULE variable, please migrate to XORG_MODULE to preserve namespace."
88 88
89# @ECLASS-VARIABLE: XORG_PACKAGE_NAME 89# @ECLASS-VARIABLE: XORG_PACKAGE_NAME
90# @DESCRIPTION: 90# @DESCRIPTION:
91# For git checkout the git repository might differ from package name. 91# For git checkout the git repository might differ from package name.
92# This variable can be used for proper directory specification 92# This variable can be used for proper directory specification
93: ${XORG_PACKAGE_NAME:=${PN}} 93: ${XORG_PACKAGE_NAME:=${PN}}
94 94
95if [[ -n ${GIT_ECLASS} ]]; then 95if [[ -n ${GIT_ECLASS} ]]; then
96 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}" 96 : ${EGIT_REPO_URI:="git://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}"}
97elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then 97elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then
98 SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2" 98 SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2"
99fi 99fi
100 100
101: ${SLOT:=0} 101: ${SLOT:=0}
112 >=sys-devel/libtool-2.2.6a 112 >=sys-devel/libtool-2.2.6a
113 sys-devel/m4" 113 sys-devel/m4"
114if [[ ${PN} != util-macros ]] ; then 114if [[ ${PN} != util-macros ]] ; then
115 EAUTORECONF_DEPEND+=" >=x11-misc/util-macros-1.12.0" 115 EAUTORECONF_DEPEND+=" >=x11-misc/util-macros-1.12.0"
116 # Required even by xorg-server 116 # Required even by xorg-server
117 [[ ${PN} == "font-util" ]] || EAUTORECONF_DEPEND+=" >=media-fonts/font-util-1.1.1-r1" 117 [[ ${PN} == "font-util" ]] || EAUTORECONF_DEPEND+=" >=media-fonts/font-util-1.2.0"
118fi 118fi
119WANT_AUTOCONF="latest" 119WANT_AUTOCONF="latest"
120WANT_AUTOMAKE="latest" 120WANT_AUTOMAKE="latest"
121for arch in ${XORG_EAUTORECONF_ARCHES}; do 121for arch in ${XORG_EAUTORECONF_ARCHES}; do
122 EAUTORECONF_DEPENDS+=" ${arch}? ( ${EAUTORECONF_DEPEND} )" 122 EAUTORECONF_DEPENDS+=" ${arch}? ( ${EAUTORECONF_DEPEND} )"
129if [[ ${FONT} == yes ]]; then 129if [[ ${FONT} == yes ]]; then
130 RDEPEND+=" media-fonts/encodings 130 RDEPEND+=" media-fonts/encodings
131 x11-apps/mkfontscale 131 x11-apps/mkfontscale
132 x11-apps/mkfontdir" 132 x11-apps/mkfontdir"
133 PDEPEND+=" media-fonts/font-alias" 133 PDEPEND+=" media-fonts/font-alias"
134 DEPEND+=" >=media-fonts/font-util-1.1.1-r1" 134 DEPEND+=" >=media-fonts/font-util-1.2.0"
135 135
136 # @ECLASS-VARIABLE: FONT_DIR 136 # @ECLASS-VARIABLE: FONT_DIR
137 # @DESCRIPTION: 137 # @DESCRIPTION:
138 # If you're creating a font package and the suffix of PN is not equal to 138 # If you're creating a font package and the suffix of PN is not equal to
139 # the subdirectory of /usr/share/fonts/ it should install into, set 139 # the subdirectory of /usr/share/fonts/ it should install into, set
205 DEPEND+=" ${DRI_DEPEND}" 205 DEPEND+=" ${DRI_DEPEND}"
206 ;; 206 ;;
207 *) 207 *)
208 COMMON_DEPEND+=" ${XORG_DRI}? ( ${DRI_COMMON_DEPEND} )" 208 COMMON_DEPEND+=" ${XORG_DRI}? ( ${DRI_COMMON_DEPEND} )"
209 DEPEND+=" ${XORG_DRI}? ( ${DRI_DEPEND} )" 209 DEPEND+=" ${XORG_DRI}? ( ${DRI_DEPEND} )"
210 IUSE="${XORG_DRI}" 210 IUSE+=" ${XORG_DRI}"
211 ;; 211 ;;
212esac 212esac
213unset DRI_DEPEND 213unset DRI_DEPEND
214unset DRI_COMMONDEPEND 214unset DRI_COMMONDEPEND
215 215
258 always) 258 always)
259 DEPEND+=" ${DOC_DEPEND}" 259 DEPEND+=" ${DOC_DEPEND}"
260 ;; 260 ;;
261 *) 261 *)
262 DEPEND+=" ${XORG_DOC}? ( ${DOC_DEPEND} )" 262 DEPEND+=" ${XORG_DOC}? ( ${DOC_DEPEND} )"
263 IUSE="${XORG_DOC}" 263 IUSE+=" ${XORG_DOC}"
264 ;; 264 ;;
265esac 265esac
266unset DOC_DEPEND 266unset DOC_DEPEND
267 267
268DEPEND+=" ${COMMON_DEPEND}" 268DEPEND+=" ${COMMON_DEPEND}"

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20