/[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.19 Revision 1.23
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.19 2009/03/09 01:02:13 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.23 2009/03/18 11:14:09 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"
101 has "${GTK_SHARP_MODULE}" "${gapi_users_list}" && \ 101 has "${GTK_SHARP_MODULE}" "${gapi_users_list}" && \
102 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 102 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
103 case ${PVR} in 103 case ${PVR} in
104 2.24.1*) 104 2.24.1*)
105 SRC_URI="mirror://gentoo/${TARBALL}-2.24.1.patch.bz2" 105 SRC_URI="mirror://gentoo/${TARBALL}-2.24.1.patch.bz2"
106 # Upstream bug: https://bugzilla.novell.com/show_bug.cgi?id=483251
106 PATCHES=( 107 PATCHES=(
107 "${WORKDIR}/${TARBALL}-2.24.1.patch" 108 "${WORKDIR}/${TARBALL}-2.24.1.patch"
108 ) 109 )
109 EAUTORECONF="YES" 110 EAUTORECONF="YES"
110 add_bdepend "=sys-devel/automake-1.10*" 111 add_bdepend "=sys-devel/automake-1.10*"
113 esac 114 esac
114 ;; 115 ;;
115 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)
116 TARBALL="gnome-desktop-sharp" 117 TARBALL="gnome-desktop-sharp"
117 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 118 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
118 add_depend "=dev-dotnet/gnome-sharp-${PV_MAJOR}*" 119 add_depend "=dev-dotnet/gnome-sharp-2.24*"
119 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 120 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
120 ;; 121 ;;
121 *) 122 *)
122 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!"
123 die "How did we get here!!?" 124 die "How did we get here!!?"
184 art-sharp-*) 185 art-sharp-*)
185 add_depend ">=media-libs/libart_lgpl-2.3.20" 186 add_depend ">=media-libs/libart_lgpl-2.3.20"
186 ;; 187 ;;
187 gnome-sharp-*) 188 gnome-sharp-*)
188 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}" 189 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}"
189 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
190 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}" 190 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}"
191 add_depend "~dev-dotnet/art-sharp-${PV}" 191 add_depend "~dev-dotnet/art-sharp-${PV}"
192 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}" 192 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}"
193 add_depend ">=x11-libs/gtk+-2.14.0"
193 ;; 194 ;;
194 gconf-sharp-*) 195 gconf-sharp-*)
195 add_depend ">=gnome-base/gconf-${PV_MAJOR}" 196 add_depend ">=gnome-base/gconf-${PV_MAJOR}"
196 add_depend ">=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}" 197 add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
197 add_depend "~dev-dotnet/gnome-sharp-${PV}" 198 add_depend "~dev-dotnet/gnome-sharp-${PV}"
198 add_depend "~dev-dotnet/art-sharp-${PV}" 199 add_depend "~dev-dotnet/art-sharp-${PV}"
199 ;; 200 ;;
200 gnomevfs-sharp-*) 201 gnomevfs-sharp-*)
201 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}" 202 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}"
221 ;; 222 ;;
222 gtksourceview-sharp-*) 223 gtksourceview-sharp-*)
223 add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0" 224 add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0"
224 ;; 225 ;;
225 nautilusburn-sharp-*) 226 nautilusburn-sharp-*)
226 add_depend ">=gnome-extra/nautilus-cd-burner-${PV_MAJOR}" 227 add_depend ">=gnome-extra/nautilus-cd-burner-2.24.0"
227 ;; 228 ;;
228 rsvg-sharp-*) 229 rsvg-sharp-*)
229 add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}" 230 add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}"
230 ;; 231 ;;
231 vte-sharp-*) 232 vte-sharp-*)

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20