Gentoo Development Guide
GTK-SHARP-MODULE.ECLASS
Section: portage (5)Updated: May 2013
Index Return to Main Contents
NAME
gtk-sharp-module.eclass - Manages the modules of the gtk-, gnome-, and gnome-desktop-sharp tarballsDESCRIPTION
This eclass provides phase functions and helper functions for the modules of the gtk-sharp, gnome-sharp and gnome-desktop-sharp tarballs. PLEASE TAKE NOTE: ONLY FOR EAPI-2 EBUILDSFUNCTIONS
- add_bdepend <package atom>
- Adds to the DEPEND variable
- add_rdepend <package atom>
- Adds to the RDEPEND variable
- add_depend <package atom>
- Adds to the DEPEND and RDEPEND variables
- get_sharp_apis <type> <pkgconfig-package>
-
Given a valid pkg-config package, will return a list of API xml files.
<type> can be either --prefixed or --bare. If prefixed, each API file
will be prefixed with -I:
Return value: .NET API files
- get_sharp_assemblies <type> <pkgconfig-package>
-
Given a valid pkg-config package, will return a list of .dll assemblies.
<type> can be either --prefixed or --bare. If prefixed, each .dll file
will be prefixed with -r:
Return value: .NET .dll assemblies
- phase_hook <prefix>
- Looks for functions named <prefix>_caller_suffix and executes them. _caller_suffix is the calling function with the prefix gtk-sharp-module removed.
- ac_path_prog_override <PROG> [path]
- Override AC_PATH_PROG() autoconf macros. Path will be set to " " if not specified.
- pkg_check_modules_override <GROUP> [package1] [package2]
-
Will export the appropriate variables to override PKG_CHECK_MODULES autoconf
macros, with the string " " by default. If packages are specified, they will
be looked up with pkg-config and the appropriate LIBS and CFLAGS substituted.
LIBS and CFLAGS can also be specified per-package with the following syntax:
package=LIBS%CFLAGS= and % have no effect unless both are specified. Here is an example:pkg_check_modules_override GASH "gtk+-2.0=-jule%" gobject-2.0The above example will do: export GASH_CFLAGS+=" -jule" export GASH_LIBS+=" " export GASH_CFLAGS+=" $(pkg-config --cflags gobject-2.0)" export GASH_LIBS+=" $(pkg-config --libs gobject-2.0)"NOTE: If a package is not found, the string " " will be inserted in place of <GROUP>_CFLAGS and <GROUP>_LIBS
- gtk-sharp-tarball-post_src_prepare
- Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to local assemblies to the installed ones. Is only called by src_prepare when $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list.
- gnome-sharp-tarball-post_src_prepare
- Runs a M-m-m-monster sed on GTK_SHARP_MODULE_DIR to convert references to local assemblies to the installed ones. Is only called by src_prepare when $GTK_SHARP_MODULE is a member of $gnome_sharp_module_list.
- gtk-sharp-module_src_prepare
- Runs autopatch from base.eclass, eautoreconf if EAUTORECONF is set to any value. Contains a phase_hook, runs very last. phase_hook prefix trigger: ${TARBALL}-tarball-post Is exported.
- gtk-sharp-tarball_src_configure
- Sets some environment variables that will allow us to make the dependencies for each ebuild be only its own dependencies, without patching configure. Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE is a member of $gtk_sharp_module_list.
- gnome-sharp-tarball_src_configure
- Sets some environment variables that will allow us to make the dependencies for each ebuild be only its own dependencies. Without patching configure. Is only called by gtk-sharp-module_src_configure when $GTK_SHARP_MODULE is a member of $gnome_sharp_module_list.
- gtk-sharp-module_src_configure [econf-arguments]
- Calls econf with some default values. Contains a phase_hook, run before econf. phase_hook prefix trigger: ${TARBALL}-tarball Is exported.
- gtk-sharp-module_src_compile
- Calls emake in the subdir of the module. Sets CSC=/usr/bin/gmcs. Deletes top_srcdir Makefiles to prevent recursing in case we missed some dll references. Is exported.
- gtk-sharp-module_src_install
- Installs the module. Fixes up lib paths so they're multilib-safe. Gets rid of .la files. Is exported.
ECLASS VARIABLES
- GTK_SHARP_MODULE = ${GTK_SHARP_MODULE:=${PN/-sharp/}}
- The name of the Gtk# module. Default value: ${PN/-sharp/}
- GTK_SHARP_MODULE_DIR = ${GTK_SHARP_MODULE_DIR:=${PN/-sharp/}}
- The subdirectory of S in which GTK_SHARP_MODULE is installed. Default value: ${PN/-sharp/}
- GTK_SHARP_REQUIRED_VERSION = "${GTK_SHARP_REQUIRED_VERSION}"
- The version of the gtk-sharp tarball this package requires. Optional.
- gapi_users_list = "art gnome gnomevfs ${gnome_desktop_sharp_module_list} atk gtk gdk glade pango"
- List of modules that use one of gapi2-codegen, gapi2-fixup or gapi2-parser No ebuild-serviceable parts inside.
- PV_MAJOR = $(get_version_component_range 1-2)
- The first two components of the PV variable.
- TARBALL
- The GtkSharp modules are currently divided into three seperate tarball distributions. The TARBALL variable holds the name of the tarball to which GTK_SHARP_MODULE belongs.
- DESCRIPTION = "GtkSharp's ${GTK_SHARP_MODULE} module of the ${TARBALL} tarball"
- Default value: GtkSharp's ${GTK_SHARP_MODULE} module of the ${TARBALL} tarball
- HOMEPAGE = "http://www.mono-project.com/GtkSharp"
- Default value: http://www.mono-project.com/GtkSharp
- LICENSE = "LGPL-2.1"
- Default value: LGPL-2.1
- S = "${WORKDIR}/${TARBALL}-${PV}"
- Default value: ${WORKDIR}/${TARBALL}-${PV}
- SRC_URI = "${SRC_URI}
- Default value: mirror://gnome/sources/${TARBALL}/${PV_MAJOR}/${TARBALL}-${PV}.tar.bz2
- EAUTORECONF
- If set, EAUTORECONF will be run during src_prepare.
MAINTAINERS
dotnet@gentoo.org
REPORTING BUGS
Please report bugs via http://bugs.gentoo.org/FILES
/usr/portage/eclass/gtk-sharp-module.eclassSEE ALSO
ebuild(5)http://sources.gentoo.org/eclass/gtk-sharp-module.eclass?view=log
Index
This document was created by man2html, using the manual pages.
Time: 03:25:03 GMT, May 18, 2013