/[gentoo-x86]/eclass/wxwidgets.eclass
Gentoo

Diff of /eclass/wxwidgets.eclass

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

Revision 1.27 Revision 1.28
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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/wxwidgets.eclass,v 1.27 2009/08/29 00:34:42 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.28 2009/09/07 00:29:47 dirtyepic Exp $
4 4
5# @ECLASS: wxwidgets.eclass 5# @ECLASS: wxwidgets.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# wxwidgets@gentoo.org 7# wxwidgets@gentoo.org
8# @BLURB: Manages build configuration for wxGTK-using packages. 8# @BLURB: Manages build configuration for wxGTK-using packages.
38# If you need more control over which profile(s) you need to use, see the 38# If you need more control over which profile(s) you need to use, see the
39# need-wxwidgets function below. 39# need-wxwidgets function below.
40 40
41inherit eutils multilib 41inherit eutils multilib
42 42
43case "${EAPI:-0}" in
44 0|1)
43EXPORT_FUNCTIONS pkg_setup 45 EXPORT_FUNCTIONS pkg_setup
46 ;;
47 *)
48 ;;
49esac
44 50
45# We do this globally so ebuilds can get sane defaults just by inheriting. They 51# We do this globally so ebuilds can get sane defaults just by inheriting. They
46# can be overridden with need-wxwidgets later if need be. 52# can be overridden with need-wxwidgets later if need be.
47 53
48if [[ -z ${WX_CONFIG} ]]; then 54if [[ -z ${WX_CONFIG} ]]; then
55 61
56 for wxtoolkit in gtk2 base; do 62 for wxtoolkit in gtk2 base; do
57 for wxdebug in release debug; do 63 for wxdebug in release debug; do
58 wxconf="${wxtoolkit}-${wxchar}-${wxdebug}-${WX_GTK_VER}" 64 wxconf="${wxtoolkit}-${wxchar}-${wxdebug}-${WX_GTK_VER}"
59 if [[ -f /usr/$(get_libdir)/wx/config/${wxconf} ]]; then 65 if [[ -f /usr/$(get_libdir)/wx/config/${wxconf} ]]; then
60 [[ $wxtoolkit == "base" ]] && WXBASE_DIE=1 # see wxwidgets_pkg_setup 66 [[ ${wxtoolkit} == "base" ]] && WXBASE_DIE=1 # see wxwidgets_pkg_setup
61 else 67 else
62 continue 68 continue
63 fi 69 fi
64 WX_CONFIG="/usr/$(get_libdir)/wx/config/${wxconf}" 70 WX_CONFIG="/usr/$(get_libdir)/wx/config/${wxconf}"
65 # TODO: needed for the wx-config wrapper
66 WX_ECLASS_CONFIG="${WX_CONFIG}" 71 WX_ECLASS_CONFIG="${WX_CONFIG}"
67 break 72 break
68 done 73 done
69 [[ -n ${WX_CONFIG} ]] && break 74 [[ -n ${WX_CONFIG} ]] && break
70 done 75 done
82# the presence of a base profile and then die here if found. 87# the presence of a base profile and then die here if found.
83# 88#
84# If you do need to build against the wxBase libraries, you'll have to use 89# If you do need to build against the wxBase libraries, you'll have to use
85# need-wxwidgets to do so. 90# need-wxwidgets to do so.
86# 91#
87# Note that with an EAPI 2 ebuild you can just DEPEND on x11-libs/wxGTK:2.8[X] 92# Note that with an EAPI 2 ebuild you should just DEPEND on x11-libs/wxGTK:2.8[X]
88# and ignore all this nonsense. 93# and ignore all this nonsense.
89 94
90wxwidgets_pkg_setup() { 95wxwidgets_pkg_setup() {
91 [[ -n $WXBASE_DIE ]] && check_wxuse X 96 [[ -n $WXBASE_DIE ]] && check_wxuse X
92} 97}

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20