/[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.17 Revision 1.27
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.17 2009/02/25 06:48:13 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.27 2010/11/18 09:06:18 pacho 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"
81case ${GTK_SHARP_MODULE} in 81case ${GTK_SHARP_MODULE} in
82 glib|glade|gtk|gdk|atk|pango|gtk-dotnet|gtk-gapi|gtk-docs) 82 glib|glade|gtk|gdk|atk|pango|gtk-dotnet|gtk-gapi|gtk-docs)
83 TARBALL="gtk-sharp" 83 TARBALL="gtk-sharp"
84 case ${PVR} in 84 case ${PVR} in
85 2.12.*) 85 2.12.*)
86 SRC_URI="mirror://gentoo/gtk-sharp-2.12.7.patch.bz2" 86 SRC_URI="mirror://gentoo/${TARBALL}-2.12.7.patch.bz2"
87 #Upstream: https://bugzilla.novell.com/show_bug.cgi?id=$bugno 87 #Upstream: https://bugzilla.novell.com/show_bug.cgi?id=$bugno
88 #Upstream bug #470390 for the gtk-sharp-2.12.7.patch 88 #Upstream bug #470390 for the gtk-sharp-2.12.7.patch
89 PATCHES=( 89 PATCHES=(
90 "${WORKDIR}/${TARBALL}-2.12.7.patch" 90 "${WORKDIR}/${TARBALL}-2.12.7.patch"
91 ) 91 )
98 art|gnome|gnomevfs|gconf) 98 art|gnome|gnomevfs|gconf)
99 TARBALL="gnome-sharp" 99 TARBALL="gnome-sharp"
100 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 100 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
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
104 2.24.1*)
105 SRC_URI="mirror://gentoo/${TARBALL}-2.24.1.patch.bz2"
106 # Upstream bug: https://bugzilla.novell.com/show_bug.cgi?id=483251
107 PATCHES=(
108 "${WORKDIR}/${TARBALL}-2.24.1.patch"
109 )
110 EAUTORECONF="YES"
111 add_bdepend "=sys-devel/automake-1.10*"
112 add_bdepend ">=sys-devel/autoconf-2.61"
113 ;;
114 2.24.2*)
115 add_depend ">=dev-lang/mono-2.7"
116 ;;
117 esac
103 ;; 118 ;;
104 gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck) 119 gnome-desktop|gnome-print|gnome-panel|gtkhtml|gtksourceview|nautilusburn|rsvg|vte|wnck)
105 TARBALL="gnome-desktop-sharp" 120 TARBALL="gnome-desktop-sharp"
106 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 121 add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
107 add_depend "=dev-dotnet/gnome-sharp-${PV_MAJOR}*" 122 add_depend "=dev-dotnet/gnome-sharp-2.24*"
108 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 123 add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
109 ;; 124 ;;
110 *) 125 *)
111 eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!" 126 eerror "Huh? Sonny boy, looks like your GTK_SHARP_MODULE is not on the approved list. BAILING!"
112 die "How did we get here!!?" 127 die "How did we get here!!?"
173 art-sharp-*) 188 art-sharp-*)
174 add_depend ">=media-libs/libart_lgpl-2.3.20" 189 add_depend ">=media-libs/libart_lgpl-2.3.20"
175 ;; 190 ;;
176 gnome-sharp-*) 191 gnome-sharp-*)
177 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}" 192 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}"
178 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
179 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}" 193 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}"
180 add_depend "~dev-dotnet/art-sharp-${PV}" 194 add_depend "~dev-dotnet/art-sharp-${PV}"
181 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}" 195 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}"
196 add_depend ">=x11-libs/gtk+-2.14.0"
182 ;; 197 ;;
183 gconf-sharp-*) 198 gconf-sharp-*)
184 add_depend ">=gnome-base/gconf-${PV_MAJOR}" 199 add_depend ">=gnome-base/gconf-${PV_MAJOR}"
185 add_depend ">=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}" 200 add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
186 add_depend "~dev-dotnet/gnome-sharp-${PV}" 201 add_depend "~dev-dotnet/gnome-sharp-${PV}"
187 add_depend "~dev-dotnet/art-sharp-${PV}" 202 add_depend "~dev-dotnet/art-sharp-${PV}"
188 ;; 203 ;;
189 gnomevfs-sharp-*) 204 gnomevfs-sharp-*)
190 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}" 205 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}"
191 ;; 206 ;;
192 #gnome-desktop-sharp tarball 207 #gnome-desktop-sharp tarball
193 gnome-desktop-sharp-*) 208 gnome-desktop-sharp-*)
209 # NOTE: libgnome-desktop-2.so has been known to make binary-
210 # incompatible changes, requiring .so bumps. gnome-desktop-sharp
211 # is locked to a specific .so.n version, so strict dependencies
212 # may be required in the future (as it has in the past).
194 add_depend ">=gnome-base/gnome-desktop-${PV_MAJOR}" 213 add_depend ">=gnome-base/gnome-desktop-${PV_MAJOR}"
195 ;; 214 ;;
196 gnome-panel-sharp-*) 215 gnome-panel-sharp-*)
197 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}" 216 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
198 ;; 217 ;;
208 ;; 227 ;;
209 gtksourceview-sharp-*) 228 gtksourceview-sharp-*)
210 add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0" 229 add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0"
211 ;; 230 ;;
212 nautilusburn-sharp-*) 231 nautilusburn-sharp-*)
213 add_depend ">=gnome-extra/nautilus-cd-burner-${PV_MAJOR}" 232 add_depend ">=gnome-extra/nautilus-cd-burner-2.24.0"
214 ;; 233 ;;
215 rsvg-sharp-*) 234 rsvg-sharp-*)
216 add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}" 235 add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}"
217 ;; 236 ;;
218 vte-sharp-*) 237 vte-sharp-*)
240add_bdepend ">=sys-apps/sed-4" 259add_bdepend ">=sys-apps/sed-4"
241add_bdepend ">=dev-util/pkgconfig-0.23" 260add_bdepend ">=dev-util/pkgconfig-0.23"
242add_bdepend ">=app-shells/bash-3.1" 261add_bdepend ">=app-shells/bash-3.1"
243 262
244IUSE="debug" 263IUSE="debug"
245# @ECLASS-VARIABLE: HOMEPAGE 264# @ECLASS-VARIABLE: S
246# @DESCRIPTION: 265# @DESCRIPTION:
247# Default value: ${WORKDIR}/${TARBALL}-${PV} 266# Default value: ${WORKDIR}/${TARBALL}-${PV}
248S="${WORKDIR}/${TARBALL}-${PV}" 267S="${WORKDIR}/${TARBALL}-${PV}"
249# @ECLASS-VARIABLE: SRC_URI 268# @ECLASS-VARIABLE: SRC_URI
250# @DESCRIPTION: 269# @DESCRIPTION:
434# value. 453# value.
435# Contains a phase_hook, runs very last. 454# Contains a phase_hook, runs very last.
436# phase_hook prefix trigger: ${TARBALL}-tarball-post 455# phase_hook prefix trigger: ${TARBALL}-tarball-post
437# Is exported. 456# Is exported.
438gtk-sharp-module_src_prepare() { 457gtk-sharp-module_src_prepare() {
439 base_src_util autopatch 458 base_src_prepare
440# @ECLASS-VARIABLE: EAUTORECONF 459# @ECLASS-VARIABLE: EAUTORECONF
441# @DESCRIPTION: 460# @DESCRIPTION:
442# If set, EAUTORECONF will be run during src_prepare. 461# If set, EAUTORECONF will be run during src_prepare.
443 [[ ${EAUTORECONF} ]] && eautoreconf 462 [[ ${EAUTORECONF} ]] && eautoreconf
444 phase_hook ${TARBALL}-tarball-post 463 phase_hook ${TARBALL}-tarball-post
464 elibtoolize
445} 465}
446 466
447# @FUNCTION: gtk-sharp-tarball_src_configure 467# @FUNCTION: gtk-sharp-tarball_src_configure
448# @DESCRIPTION: 468# @DESCRIPTION:
449# Sets some environment variables that will allow us to make the dependencies 469# Sets some environment variables that will allow us to make the dependencies

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20