/[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.9 Revision 1.12
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.9 2009/01/05 20:49:10 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.12 2009/01/23 19:58:46 loki_val Exp $
4 4
5# Author : Peter Johanson <latexer@gentoo.org>, butchered by ikelos, then loki_val. 5# Author : Peter Johanson <latexer@gentoo.org>, butchered by ikelos, then loki_val.
6# Based off of original work in gst-plugins.eclass by <foser@gentoo.org> 6# Based off of original work in gst-plugins.eclass by <foser@gentoo.org>
7 7
8# Note that this breaks compatibility with the original gtk-sharp-component 8# Note that this breaks compatibility with the original gtk-sharp-component
76 && echo "gnome-desktop-sharp" && return 0 76 && echo "gnome-desktop-sharp" && return 0
77 die "unknown GtkSharp module: ${GTK_SHARP_MODULE}" 77 die "unknown GtkSharp module: ${GTK_SHARP_MODULE}"
78} 78}
79 79
80[[ "${PN}" != "gtk-sharp-gapi" ]] && add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*" 80[[ "${PN}" != "gtk-sharp-gapi" ]] && add_bdepend "=dev-dotnet/gtk-sharp-gapi-${GTK_SHARP_REQUIRED_VERSION}*"
81[[ "${PN}" != "gtk-sharp-gapi" ]] && add_bdepend "!=dev-dotnet/gtk-sharp-gapi-2.12.7-r5"
82[[ "${PN}" != "gtk-sharp-gapi" ]] && add_bdepend "!=dev-dotnet/gtk-sharp-gapi-2.12.7-r6"
83
81has "${GTK_SHARP_MODULE}" ${gnome_sharp_module_list} ${gnome_desktop_sharp_module_list} gtk-dotnet glade \ 84has "${GTK_SHARP_MODULE}" ${gnome_sharp_module_list} ${gnome_desktop_sharp_module_list} gtk-dotnet glade \
82 && add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 85 && add_depend "=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
83has "${GTK_SHARP_MODULE}" gtk gdk atk pango gtk-dotnet parser \ 86has "${GTK_SHARP_MODULE}" gtk gdk atk pango gtk-dotnet parser \
84 && add_depend "=dev-dotnet/glib-sharp-${GTK_SHARP_REQUIRED_VERSION}*" 87 && add_depend "=dev-dotnet/glib-sharp-${GTK_SHARP_REQUIRED_VERSION}*"
85has "${GTK_SHARP_MODULE}" ${gnome_desktop_sharp_module_list} \ 88has "${GTK_SHARP_MODULE}" ${gnome_desktop_sharp_module_list} \
86 && add_depend ">=dev-dotnet/gnome-sharp-${PV_MAJOR}" 89 && add_depend ">=dev-dotnet/gnome-sharp-${PV_MAJOR}"
87 90
88case ${PF} in 91case ${PF} in
89 #gtk-sharp tarball 92 #gtk-sharp tarball
90 gtk-sharp-gapi*) 93 gtk-sharp-gapi*)
94 add_rdepend "!<=dev-dotnet/gtk-sharp-2.12.7:2"
91 add_depend "dev-perl/XML-LibXML" 95 add_depend "dev-perl/XML-LibXML"
92 ;; 96 ;;
93 gtk-sharp-*) 97 gtk-sharp-*)
94 add_depend "~dev-dotnet/atk-sharp-${PV}" 98 add_depend "~dev-dotnet/atk-sharp-${PV}"
95 add_depend "~dev-dotnet/gdk-sharp-${PV}" 99 add_depend "~dev-dotnet/gdk-sharp-${PV}"
289 emake || die "emake failed" 293 emake || die "emake failed"
290} 294}
291 295
292gtk-sharp-module_src_install() { 296gtk-sharp-module_src_install() {
293 297
294 cd "${GTK_SHARP_MODULE_DIR}" 298 cd "${S}/${GTK_SHARP_MODULE_DIR}"
295 emake DESTDIR=${D} install || die "emake install failed" 299 emake DESTDIR=${D} install || die "emake install failed"
296 mono_multilib_comply 300 mono_multilib_comply
297 find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed" 301 find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
298 if has "${GTK_SHARP_MODULE}" gtk gdk atk pango 302 if has "${GTK_SHARP_MODULE}" gtk gdk atk pango
299 then 303 then
355 Name: ${pkgconfig_pkgname} 359 Name: ${pkgconfig_pkgname}
356 Description: ${pkgconfig_description} 360 Description: ${pkgconfig_description}
357 Version: ${pkgconfig_version} 361 Version: ${pkgconfig_version}
358 EOF 362 EOF
359 363
360 for gfile in "${D}"/usr/${apifile%/*}/*-api.xml 364 for gfile in "${D}"/usr/${apifile%/*}/*-api.xml
361 do 365 do
362 CSTRING="${CSTRING} -I:"'${gapidir}'"/${gfile##*/}" 366 CSTRING="${CSTRING} -I:"'${gapidir}'"/${gfile##*/}"
363 done 367 done
364 echo "${CSTRING}" >> "${D}/usr/$(get_libdir)/pkgconfig/${pkgconfig_filename}.pc" 368 echo "${CSTRING}" >> "${D}/usr/$(get_libdir)/pkgconfig/${pkgconfig_filename}.pc"
365 369
366 370
367 for dll in "${D}"/usr/$(get_libdir)/mono/${pkgconfig_monodir}/*.dll 371 for dll in "${D}"/usr/$(get_libdir)/mono/${pkgconfig_monodir}/*.dll
368 do 372 do

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20