/[gentoo-x86]/eclass/gtk-sharp-module.eclass
Gentoo

Diff of /eclass/gtk-sharp-module.eclass

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

Revision 1.20 Revision 1.21
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/gtk-sharp-module.eclass,v 1.20 2009/03/09 01:11:53 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.21 2009/03/17 13:39:25 loki_val Exp $
4 4
5# @ECLASS: gtk-sharp-module.eclass 5# @ECLASS: gtk-sharp-module.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# dotnet@gentoo.org 7# dotnet@gentoo.org
8# @BLURB: Manages the modules of the gtk-, gnome-, and gnome-desktop-sharp tarballs 8# @BLURB: Manages the modules of the gtk-, gnome-, and gnome-desktop-sharp tarballs
43# @ECLASS-VARIABLE: PV_MAJOR 43# @ECLASS-VARIABLE: PV_MAJOR
44# @DESCRIPTION: 44# @DESCRIPTION:
45# The first two components of the PV variable. 45# The first two components of the PV variable.
46PV_MAJOR=$(get_version_component_range 1-2) 46PV_MAJOR=$(get_version_component_range 1-2)
47 47
48# @FUNCTION: add_bdepends 48# @FUNCTION: add_bdepend
49# @USAGE: <package atom> 49# @USAGE: <package atom>
50# @DESCRIPTION: 50# @DESCRIPTION:
51# Adds to the DEPEND variable 51# Adds to the DEPEND variable
52add_bdepend() { 52add_bdepend() {
53 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument" 53 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
54 DEPEND="${DEPEND} $@" 54 DEPEND="${DEPEND} $@"
55} 55}
56 56
57# @FUNCTION: add_rdepends 57# @FUNCTION: add_rdepend
58# @USAGE: <package atom> 58# @USAGE: <package atom>
59# @DESCRIPTION: 59# @DESCRIPTION:
60# Adds to the RDEPEND variable 60# Adds to the RDEPEND variable
61add_rdepend() { 61add_rdepend() {
62 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument" 62 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs ONE (1) argument"
114 esac 114 esac
115 ;; 115 ;;
116 gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck) 116 gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck)
117 TARBALL="gnome-desktop-sharp" 117 TARBALL="gnome-desktop-sharp"
118 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 118 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
119 add_depend "=dev-dotnet/gnome-sharp-${PV_MAJOR}*" 119 add_depend "=dev-dotnet/gnome-sharp-2.24*"
120 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 120 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
121 ;; 121 ;;
122 *) 122 *)
123 eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!" 123 eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!"
124 die "How did we get here!!?" 124 die "How did we get here!!?"
192 add_depend "~dev-dotnet/art-sharp-${PV}" 192 add_depend "~dev-dotnet/art-sharp-${PV}"
193 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}" 193 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}"
194 ;; 194 ;;
195 gconf-sharp-*) 195 gconf-sharp-*)
196 add_depend ">=gnome-base/gconf-${PV_MAJOR}" 196 add_depend ">=gnome-base/gconf-${PV_MAJOR}"
197 add_depend ">=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}" 197 add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
198 add_depend "~dev-dotnet/gnome-sharp-${PV}" 198 add_depend "~dev-dotnet/gnome-sharp-${PV}"
199 add_depend "~dev-dotnet/art-sharp-${PV}" 199 add_depend "~dev-dotnet/art-sharp-${PV}"
200 ;; 200 ;;
201 gnomevfs-sharp-*) 201 gnomevfs-sharp-*)
202 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}" 202 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}"

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

  ViewVC Help
Powered by ViewVC 1.1.20