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

Diff of /eclass/wxwidgets.eclass

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

Revision 1.38 Revision 1.39
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.38 2013/12/30 08:25:35 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.39 2014/04/21 21:55:31 ottxor 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.
57 57
58# We do this in global scope so ebuilds can get sane defaults just by 58# We do this in global scope so ebuilds can get sane defaults just by
59# inheriting. 59# inheriting.
60if [[ -z ${WX_CONFIG} ]]; then 60if [[ -z ${WX_CONFIG} ]]; then
61 if [[ -n ${WX_GTK_VER} ]]; then 61 if [[ -n ${WX_GTK_VER} ]]; then
62 for wxtoolkit in gtk2 base; do 62 for wxtoolkit in mac gtk2 base; do
63 # newer versions don't have a seperate debug profile 63 # newer versions don't have a seperate debug profile
64 for wxdebug in xxx release- debug-; do 64 for wxdebug in xxx release- debug-; do
65 wxconf="${wxtoolkit}-unicode-${wxdebug/xxx/}${WX_GTK_VER}" 65 wxconf="${wxtoolkit}-unicode-${wxdebug/xxx/}${WX_GTK_VER}"
66 66
67 [[ -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf} ]] || continue 67 [[ -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf} ]] || continue
107 die 107 die
108 ;; 108 ;;
109 esac 109 esac
110 110
111 # wxbase is provided by both gtk2 and base installations 111 # wxbase is provided by both gtk2 and base installations
112 if has_version "x11-libs/wxGTK:${WX_GTK_VER}[aqua]"; then
113 wxtoolkit="mac"
112 if has_version "x11-libs/wxGTK:${WX_GTK_VER}[X]"; then 114 elif has_version "x11-libs/wxGTK:${WX_GTK_VER}[X]"; then
113 wxtoolkit="gtk2" 115 wxtoolkit="gtk2"
114 else 116 else
115 wxtoolkit="base" 117 wxtoolkit="base"
116 fi 118 fi
117 119

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

  ViewVC Help
Powered by ViewVC 1.1.20