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

Diff of /eclass/wxwidgets.eclass

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

Revision 1.20 Revision 1.21
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.20 2007/10/14 02:46:29 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.21 2007/10/18 03:25:56 dirtyepic Exp $
4 4
5# @ECLASS: wxwidgets.eclass 5# @ECLASS: wxwidgets.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# dirtyepic@gentoo.org 7# dirtyepic@gentoo.org
8# wxwindows@gentoo.org 8# wxwindows@gentoo.org
16# 16#
17# Ebuilds that use wxGTK must inherit this eclass. Otherwise the system 17# Ebuilds that use wxGTK must inherit this eclass. Otherwise the system
18# default will be used, which would be anything the user set it to. 18# default will be used, which would be anything the user set it to.
19# 19#
20# Ebuilds are also required to set the global variable WX_GTK_VER, containing 20# Ebuilds are also required to set the global variable WX_GTK_VER, containing
21# the wxGTK SLOT the ebuild requires. 21# the wxGTK SLOT the ebuild requires. Note that in order for this to work,
22# 22# WX_GTK_VER needs to be set before inheriting the eclass.
23# 23#
24# Simple Usage: 24# Simple Usage:
25# 25#
26# WX_GTK_VER="2.6"
26# inherit wxwidgets 27# inherit wxwidgets
27# DEPEND="=x11-libs/wxGTK-2.6*" 28# DEPEND="=x11-libs/wxGTK-2.6*"
28# RDEPEND="=x11-libs/wxGTK-2.6*" 29# RDEPEND="=x11-libs/wxGTK-2.6*"
29# WX_GTK_VER="2.6"
30# 30#
31# That's it. The eclass will select a sane default configuration to use. In 31# That's it. The eclass will select a sane default configuration to use. In
32# wxGTK-2.6 the default is ansi. In wxGTK-2.8 and later it's unicode. These 32# wxGTK-2.6 the default is ansi. In wxGTK-2.8 and later it's unicode. These
33# are the defaults because they are always guaranteed to exist. (Note: we lock 33# are the defaults because they are always guaranteed to exist.
34# the DEPEND to the needed SLOT to prevent another SLOT from fulfilling the
35# dependency.)
36# 34#
37# You'll often find yourself in need of a bit more control. For that see the 35# You'll often find yourself in need of a bit more control. For that see the
38# need-wxwidgets function below. 36# need-wxwidgets function below.
39 37
40inherit eutils multilib 38inherit eutils multilib
41 39
42# We do this globally so ebuilds can get sane defaults just by inheriting. They 40# We do this globally so ebuilds can get sane defaults just by inheriting. They
43# can be overridden with need-wxwidgets later if need be. 41# can be overridden with need-wxwidgets later if need be.
44 42
45if [[ -n ${WX_CONFIG} ]]; then 43if [[ -z ${WX_CONFIG} ]]; then
46 if [[ -n ${WX_GTK_VER} ]]; then 44 if [[ -n ${WX_GTK_VER} ]]; then
47 if [[ ${WX_GTK_VER} == 2.6 ]]; then 45 if [[ ${WX_GTK_VER} == 2.6 ]]; then
48 wxchar="ansi" 46 wxchar="ansi"
49 elif [[ ${WX_GTK_VER} == 2.8 ]]; then 47 elif [[ ${WX_GTK_VER} == 2.8 ]]; then
50 wxchar="unicode" 48 wxchar="unicode"

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20