/[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.27 Revision 1.32
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2011 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.27 2010/11/18 09:06:18 pacho Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.32 2011/08/22 04:46:32 vapier 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
13 13
14WANT_AUTOMAKE=none 14WANT_AUTOMAKE=none
15WANT_AUTOCONF=none 15WANT_AUTOCONF=none
16 16
17inherit eutils mono multilib libtool autotools base versionator 17inherit eutils mono multilib libtool autotools base versionator
18
19case ${EAPI:-0} in
20 2|3|4) ;;
21 *) die "Unknown EAPI." ;;
22esac
18 23
19# @ECLASS-VARIABLE: GTK_SHARP_MODULE 24# @ECLASS-VARIABLE: GTK_SHARP_MODULE
20# @DESCRIPTION: 25# @DESCRIPTION:
21# The name of the Gtk# module. 26# The name of the Gtk# module.
22# Default value: ${PN/-sharp/} 27# Default value: ${PN/-sharp/}
180 add_depend "~dev-dotnet/glib-sharp-${PV}" 185 add_depend "~dev-dotnet/glib-sharp-${PV}"
181 add_depend "~dev-dotnet/atk-sharp-${PV}" 186 add_depend "~dev-dotnet/atk-sharp-${PV}"
182 add_depend "~dev-dotnet/gdk-sharp-${PV}" 187 add_depend "~dev-dotnet/gdk-sharp-${PV}"
183 add_depend "~dev-dotnet/gtk-sharp-${PV}" 188 add_depend "~dev-dotnet/gtk-sharp-${PV}"
184 add_depend "~dev-dotnet/pango-sharp-${PV}" 189 add_depend "~dev-dotnet/pango-sharp-${PV}"
185 add_depend ">=gnome-base/libglade-2.3.6" 190 add_depend ">=gnome-base/libglade-2.3.6:2.0"
186 ;; 191 ;;
187 #gnome-sharp tarball 192 #gnome-sharp tarball
188 art-sharp-*) 193 art-sharp-*)
189 add_depend ">=media-libs/libart_lgpl-2.3.20" 194 add_depend ">=media-libs/libart_lgpl-2.3.20"
190 ;; 195 ;;
191 gnome-sharp-*) 196 gnome-sharp-*)
192 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}" 197 add_depend ">=gnome-base/libgnomeui-${PV_MAJOR}"
193 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}" 198 add_depend "~dev-dotnet/gnomevfs-sharp-${PV}"
194 add_depend "~dev-dotnet/art-sharp-${PV}" 199 add_depend "~dev-dotnet/art-sharp-${PV}"
195 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}" 200 add_depend ">=gnome-base/libgnomecanvas-${GNOMECANVAS_REQUIRED_VERSION}"
196 add_depend ">=x11-libs/gtk+-2.14.0" 201 add_depend ">=x11-libs/gtk+-2.14.0:2"
197 ;; 202 ;;
198 gconf-sharp-*) 203 gconf-sharp-*)
199 add_depend ">=gnome-base/gconf-${PV_MAJOR}" 204 add_depend ">=gnome-base/gconf-${PV_MAJOR}:2"
200 add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 205 add_depend "=dev-dotnet/glade-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
201 add_depend "~dev-dotnet/gnome-sharp-${PV}" 206 add_depend "~dev-dotnet/gnome-sharp-${PV}"
202 add_depend "~dev-dotnet/art-sharp-${PV}" 207 add_depend "~dev-dotnet/art-sharp-${PV}"
203 ;; 208 ;;
204 gnomevfs-sharp-*) 209 gnomevfs-sharp-*)
205 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}" 210 add_depend ">=gnome-base/gnome-vfs-${PV_MAJOR}:2"
206 ;; 211 ;;
207 #gnome-desktop-sharp tarball 212 #gnome-desktop-sharp tarball
208 gnome-desktop-sharp-*) 213 gnome-desktop-sharp-*)
209 # NOTE: libgnome-desktop-2.so has been known to make binary- 214 # NOTE: libgnome-desktop-2.so has been known to make binary-
210 # incompatible changes, requiring .so bumps. gnome-desktop-sharp 215 # incompatible changes, requiring .so bumps. gnome-desktop-sharp
211 # is locked to a specific .so.n version, so strict dependencies 216 # is locked to a specific .so.n version, so strict dependencies
212 # may be required in the future (as it has in the past). 217 # may be required in the future (as it has in the past).
213 add_depend ">=gnome-base/gnome-desktop-${PV_MAJOR}" 218 add_depend ">=gnome-base/gnome-desktop-${PV_MAJOR}:2"
214 ;; 219 ;;
215 gnome-panel-sharp-*) 220 gnome-panel-sharp-*)
216 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}" 221 add_depend ">=gnome-base/gnome-panel-${PV_MAJOR}"
217 ;; 222 ;;
218 gnome-print-sharp-*) 223 gnome-print-sharp-*)
219 add_depend ">=gnome-base/libgnomeprint-${API_VERSION}" 224 add_depend "gnome-base/libgnomeprint:2.2"
225 add_depend "gnome-base/libgnomeprintui:2.2"
220 ;; 226 ;;
221 gtkhtml-sharp-*) 227 gtkhtml-sharp-*)
222 #NOTE: gtkhtml dependency must follow gtkhtml-sharp version. 228 #NOTE: gtkhtml dependency must follow gtkhtml-sharp version.
223 #i.e. gtkhtml-sharp-2.24.0 >=gtkhtml-3.24 229 #i.e. gtkhtml-sharp-2.24.0 >=gtkhtml-3.24
224 # gtkhtml-sharp-2.16.0 >=gtkhtml-3.16 230 # gtkhtml-sharp-2.16.0 >=gtkhtml-3.16
225 # See bug 249540 for unpleasant side effects. 231 # See bug 249540 for unpleasant side effects.
226 add_depend ">=gnome-extra/gtkhtml-$(($(get_version_component_range 1) + 1 )).$(get_version_component_range 2)" 232 add_depend ">=gnome-extra/gtkhtml-$(($(get_version_component_range 1) + 1 )).$(get_version_component_range 2):3.14"
227 ;; 233 ;;
228 gtksourceview-sharp-*) 234 gtksourceview-sharp-*)
229 add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0" 235 add_depend ">=x11-libs/gtksourceview-${GTKSOURCEVIEW_REQUIRED_VERSION}:2.0"
230 ;; 236 ;;
231 nautilusburn-sharp-*) 237 nautilusburn-sharp-*)
232 add_depend ">=gnome-extra/nautilus-cd-burner-2.24.0" 238 add_depend ">=gnome-extra/nautilus-cd-burner-2.24.0"
233 ;; 239 ;;
234 rsvg-sharp-*) 240 rsvg-sharp-*)
235 add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}" 241 add_depend ">=gnome-base/librsvg-${RSVG_REQUIRED_VERSION}:2"
236 ;; 242 ;;
237 vte-sharp-*) 243 vte-sharp-*)
238 add_depend ">=x11-libs/vte-${VTE_REQUIRED_VERSION}" 244 add_depend ">=x11-libs/vte-${VTE_REQUIRED_VERSION}:0"
239 ;; 245 ;;
240 wnck-sharp-*) 246 wnck-sharp-*)
241 add_depend ">=x11-libs/libwnck-${PV_MAJOR}" 247 add_depend ">=x11-libs/libwnck-${PV_MAJOR}:1"
242 ;; 248 ;;
243esac 249esac
244 250
245# @ECLASS-VARIABLE: DESCRIPTION 251# @ECLASS-VARIABLE: DESCRIPTION
246# @DESCRIPTION: 252# @DESCRIPTION:
317 echo "${rvalue[@]}" 323 echo "${rvalue[@]}"
318} 324}
319 325
320# @FUNCTION: phase_hook 326# @FUNCTION: phase_hook
321# @USAGE: <prefix> 327# @USAGE: <prefix>
328# @DESCRIPTION:
322# Looks for functions named <prefix>_caller_suffix and executes them. 329# Looks for functions named <prefix>_caller_suffix and executes them.
323# _caller_suffix is the calling function with the prefix 330# _caller_suffix is the calling function with the prefix
324# gtk-sharp-module removed. 331# gtk-sharp-module removed.
325phase_hook() { 332phase_hook() {
326 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs one argument" 333 [[ ${#@} -eq 1 ]] || die "${FUNCNAME} needs one argument"
409# @DESCRIPTION: 416# @DESCRIPTION:
410# Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to 417# Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to
411# local assemblies to the installed ones. Is only called by src_prepare when 418# local assemblies to the installed ones. Is only called by src_prepare when
412# $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list. 419# $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list.
413gtk-sharp-tarball-post_src_prepare() { 420gtk-sharp-tarball-post_src_prepare() {
421 has "${EAPI:-0}" 2 && ! use prefix && EPREFIX=
414 cd "${S}/${GTK_SHARP_MODULE_DIR}" 422 cd "${S}/${GTK_SHARP_MODULE_DIR}"
415 sed -i \ 423 sed -i \
416 -e "s; \$(srcdir)/../glib/glib-api.xml; $(get_sharp_apis --bare glib-sharp-2.0);" \ 424 -e "s; \$(srcdir)/../glib/glib-api.xml; $(get_sharp_apis --bare glib-sharp-2.0);" \
417 -e "s; ../pango/pango-api.xml; $(get_sharp_apis --bare pango-sharp-2.0);" \ 425 -e "s; ../pango/pango-api.xml; $(get_sharp_apis --bare pango-sharp-2.0);" \
418 -e "s; ../atk/atk-api.xml; $(get_sharp_apis --bare atk-sharp-2.0);" \ 426 -e "s; ../atk/atk-api.xml; $(get_sharp_apis --bare atk-sharp-2.0);" \
421 -e "s; \.\./glib/glib-sharp.dll; $(get_sharp_assemblies --bare glib-sharp-2.0);g" \ 429 -e "s; \.\./glib/glib-sharp.dll; $(get_sharp_assemblies --bare glib-sharp-2.0);g" \
422 -e "s; \.\./pango/pango-sharp.dll; $(get_sharp_assemblies --bare pango-sharp-2.0);g" \ 430 -e "s; \.\./pango/pango-sharp.dll; $(get_sharp_assemblies --bare pango-sharp-2.0);g" \
423 -e "s; \.\./atk/atk-sharp.dll; $(get_sharp_assemblies --bare atk-sharp-2.0);g" \ 431 -e "s; \.\./atk/atk-sharp.dll; $(get_sharp_assemblies --bare atk-sharp-2.0);g" \
424 -e "s; \.\./gdk/gdk-sharp.dll; $(get_sharp_assemblies --bare gdk-sharp-2.0);g" \ 432 -e "s; \.\./gdk/gdk-sharp.dll; $(get_sharp_assemblies --bare gdk-sharp-2.0);g" \
425 -e "s; \.\./gtk/gtk-sharp.dll; $(get_sharp_assemblies --bare gtk-sharp-2.0);g" \ 433 -e "s; \.\./gtk/gtk-sharp.dll; $(get_sharp_assemblies --bare gtk-sharp-2.0);g" \
426 -e "s;\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe;/usr/bin/gapi2-fixup;" \ 434 -e "s;\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe;${EPREFIX}/usr/bin/gapi2-fixup;" \
427 -e "s;\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe;/usr/bin/gapi2-codegen;" \ 435 -e "s;\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe;${EPREFIX}/usr/bin/gapi2-codegen;" \
428 -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \ 436 -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \
429 -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \ 437 -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \
430 $(find . -name Makefile.in) || die "failed to fix ${TARBALL}-tarball makefiles" 438 $(find . -name Makefile.in) || die "failed to fix ${TARBALL}-tarball makefiles"
431} 439}
432 440
484# Sets some environment variables that will allow us to make the dependencies 492# Sets some environment variables that will allow us to make the dependencies
485# for each ebuild be only its own dependencies. Without patching configure. 493# for each ebuild be only its own dependencies. Without patching configure.
486# Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE 494# Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE
487# is a member of $gnome_sharp_module_list. 495# is a member of $gnome_sharp_module_list.
488gnome-sharp-tarball_src_configure() { 496gnome-sharp-tarball_src_configure() {
497 has "${EAPI:-0}" 2 && ! use prefix && EPREFIX=
489 pkg_check_modules_override GLADESHARP glade-sharp-2.0 498 pkg_check_modules_override GLADESHARP glade-sharp-2.0
490 pkg_check_modules_override GAPI gapi-2.0 499 pkg_check_modules_override GAPI gapi-2.0
491 ac_path_prog_override GAPI_PARSER /usr/bin/gapi2-parser 500 ac_path_prog_override GAPI_PARSER "${EPREFIX}"/usr/bin/gapi2-parser
492 ac_path_prog_override GAPI_CODEGEN /usr/bin/gapi2-codegen 501 ac_path_prog_override GAPI_CODEGEN "${EPREFIX}"/usr/bin/gapi2-codegen
493 ac_path_prog_override GAPI_FIXUP /usr/bin/gapi2-fixup 502 ac_path_prog_override GAPI_FIXUP "${EPREFIX}"/usr/bin/gapi2-fixup
494} 503}
495 504
496# @FUNCTION: gtk-sharp-module_src_configure 505# @FUNCTION: gtk-sharp-module_src_configure
497# @USAGE: [econf-arguments] 506# @USAGE: [econf-arguments]
498# @DESCRIPTION: 507# @DESCRIPTION:

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

  ViewVC Help
Powered by ViewVC 1.1.20