/[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.24
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.24 2009/05/03 20:03:10 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
12# PLEASE TAKE NOTE: ONLY FOR EAPI-2 EBUILDS 12# PLEASE TAKE NOTE: ONLY FOR EAPI-2 EBUILDS
13 13
14WANT_AUTOMAKE=none 14WANT_AUTOMAKE=none
15WANT_AUTOCONF=none 15WANT_AUTOCONF=none
16 16
17inherit eutils mono multilib autotools base versionator 17inherit eutils mono multilib libtool autotools base versionator
18 18
19# @ECLASS-VARIABLE: GTK_SHARP_MODULE 19# @ECLASS-VARIABLE: GTK_SHARP_MODULE
20# @DESCRIPTION: 20# @DESCRIPTION:
21# The name of the Gtk# module. 21# The name of the Gtk# module.
22# Default value: ${PN/-sharp/} 22# Default value: ${PN/-sharp/}
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-*)
453# @ECLASS-VARIABLE: EAUTORECONF 454# @ECLASS-VARIABLE: EAUTORECONF
454# @DESCRIPTION: 455# @DESCRIPTION:
455# If set, EAUTORECONF will be run during src_prepare. 456# If set, EAUTORECONF will be run during src_prepare.
456 [[ ${EAUTORECONF} ]] && eautoreconf 457 [[ ${EAUTORECONF} ]] && eautoreconf
457 phase_hook ${TARBALL}-tarball-post 458 phase_hook ${TARBALL}-tarball-post
459 elibtoolize
458} 460}
459 461
460# @FUNCTION: gtk-sharp-tarball_src_configure 462# @FUNCTION: gtk-sharp-tarball_src_configure
461# @DESCRIPTION: 463# @DESCRIPTION:
462# Sets some environment variables that will allow us to make the dependencies 464# Sets some environment variables that will allow us to make the dependencies

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

  ViewVC Help
Powered by ViewVC 1.1.20