/[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.30 Revision 1.31
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.30 2011/05/06 04:24:31 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.31 2011/07/29 13:57:29 darkside 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/}
410# @DESCRIPTION: 415# @DESCRIPTION:
411# Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to 416# Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to
412# local assemblies to the installed ones. Is only called by src_prepare when 417# local assemblies to the installed ones. Is only called by src_prepare when
413# $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list. 418# $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list.
414gtk-sharp-tarball-post_src_prepare() { 419gtk-sharp-tarball-post_src_prepare() {
420 has "${EAPI:-0}" 2 && ! use prefix && EPREFIX=
415 cd "${S}/${GTK_SHARP_MODULE_DIR}" 421 cd "${S}/${GTK_SHARP_MODULE_DIR}"
416 sed -i \ 422 sed -i \
417 -e "s; \$(srcdir)/../glib/glib-api.xml; $(get_sharp_apis --bare glib-sharp-2.0);" \ 423 -e "s; \$(srcdir)/../glib/glib-api.xml; $(get_sharp_apis --bare glib-sharp-2.0);" \
418 -e "s; ../pango/pango-api.xml; $(get_sharp_apis --bare pango-sharp-2.0);" \ 424 -e "s; ../pango/pango-api.xml; $(get_sharp_apis --bare pango-sharp-2.0);" \
419 -e "s; ../atk/atk-api.xml; $(get_sharp_apis --bare atk-sharp-2.0);" \ 425 -e "s; ../atk/atk-api.xml; $(get_sharp_apis --bare atk-sharp-2.0);" \
422 -e "s; \.\./glib/glib-sharp.dll; $(get_sharp_assemblies --bare glib-sharp-2.0);g" \ 428 -e "s; \.\./glib/glib-sharp.dll; $(get_sharp_assemblies --bare glib-sharp-2.0);g" \
423 -e "s; \.\./pango/pango-sharp.dll; $(get_sharp_assemblies --bare pango-sharp-2.0);g" \ 429 -e "s; \.\./pango/pango-sharp.dll; $(get_sharp_assemblies --bare pango-sharp-2.0);g" \
424 -e "s; \.\./atk/atk-sharp.dll; $(get_sharp_assemblies --bare atk-sharp-2.0);g" \ 430 -e "s; \.\./atk/atk-sharp.dll; $(get_sharp_assemblies --bare atk-sharp-2.0);g" \
425 -e "s; \.\./gdk/gdk-sharp.dll; $(get_sharp_assemblies --bare gdk-sharp-2.0);g" \ 431 -e "s; \.\./gdk/gdk-sharp.dll; $(get_sharp_assemblies --bare gdk-sharp-2.0);g" \
426 -e "s; \.\./gtk/gtk-sharp.dll; $(get_sharp_assemblies --bare gtk-sharp-2.0);g" \ 432 -e "s; \.\./gtk/gtk-sharp.dll; $(get_sharp_assemblies --bare gtk-sharp-2.0);g" \
427 -e "s;\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe;/usr/bin/gapi2-fixup;" \ 433 -e "s;\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe;${EPREFIX}/usr/bin/gapi2-fixup;" \
428 -e "s;\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe;/usr/bin/gapi2-codegen;" \ 434 -e "s;\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe;${EPREFIX}/usr/bin/gapi2-codegen;" \
429 -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \ 435 -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \
430 -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \ 436 -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \
431 $(find . -name Makefile.in) || die "failed to fix ${TARBALL}-tarball makefiles" 437 $(find . -name Makefile.in) || die "failed to fix ${TARBALL}-tarball makefiles"
432} 438}
433 439
485# Sets some environment variables that will allow us to make the dependencies 491# Sets some environment variables that will allow us to make the dependencies
486# for each ebuild be only its own dependencies. Without patching configure. 492# for each ebuild be only its own dependencies. Without patching configure.
487# Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE 493# Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE
488# is a member of $gnome_sharp_module_list. 494# is a member of $gnome_sharp_module_list.
489gnome-sharp-tarball_src_configure() { 495gnome-sharp-tarball_src_configure() {
496 has "${EAPI:-0}" 2 && ! use prefix && EPREFIX=
490 pkg_check_modules_override GLADESHARP glade-sharp-2.0 497 pkg_check_modules_override GLADESHARP glade-sharp-2.0
491 pkg_check_modules_override GAPI gapi-2.0 498 pkg_check_modules_override GAPI gapi-2.0
492 ac_path_prog_override GAPI_PARSER /usr/bin/gapi2-parser 499 ac_path_prog_override GAPI_PARSER "${EPREFIX}"/usr/bin/gapi2-parser
493 ac_path_prog_override GAPI_CODEGEN /usr/bin/gapi2-codegen 500 ac_path_prog_override GAPI_CODEGEN "${EPREFIX}"/usr/bin/gapi2-codegen
494 ac_path_prog_override GAPI_FIXUP /usr/bin/gapi2-fixup 501 ac_path_prog_override GAPI_FIXUP "${EPREFIX}"/usr/bin/gapi2-fixup
495} 502}
496 503
497# @FUNCTION: gtk-sharp-module_src_configure 504# @FUNCTION: gtk-sharp-module_src_configure
498# @USAGE: [econf-arguments] 505# @USAGE: [econf-arguments]
499# @DESCRIPTION: 506# @DESCRIPTION:

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20