Gentoo Development Guide

VDR-PLUGIN-2.ECLASS

Section: portage (5)
Updated: Aug 2015
Index Return to Main Contents
 

NAME

vdr-plugin-2.eclass - common vdr plugin ebuild functions  

DESCRIPTION

Eclass for easing maintenance of vdr plugin ebuilds  

FUNCTIONS

fix_vdr_libsi_include
Plugins failed on compile with wrong path of libsi includes, this can be fixed by 'function + space separated list of files'

Example:

fix_vdr_libsi_include bla.c foo.c
remove_i18n_include
Compile will fail if plugin still use the old i18n language handling, most parts are fixed by vdr-plugin-2.eclass internal functions itself. Remove unneeded i18.n includes from files, if they are still wrong there, this can be fixed by 'function + space separated list of files"

Example:

remove_i18n_include bla.n foo.n
 

ECLASS VARIABLES

VDR_CONFD_FILE
A plugin config file can be specified through the $VDR_CONFD_FILE variable, it defaults to ${FILESDIR}/confd. Each config file will be installed as e.g. ${D}/etc/conf.d/vdr.${VDRPLUGIN}
VDR_RCADDON_FILE
Installing rc-addon files is basically the same as for plugin config files (see above), it's just using the $VDR_RCADDON_FILE variable instead. The default value when $VDR_RCADDON_FILE is undefined is: ${FILESDIR}/rc-addon.sh and will be installed as ${VDR_RC_DIR}/plugin-${VDRPLUGIN}.sh

The rc-addon files will be sourced by the startscript when the specific plugin has been enabled. rc-addon files may be used to prepare everything that is necessary for the plugin start/stop, like passing extra command line options and so on.

NOTE: rc-addon files must be valid shell scripts!

GENTOO_VDR_CONDITIONAL
This is a hack for ebuilds like vdr-xineliboutput that want to conditionally install a vdr-plugin
PO_SUBDIR
By default, translation are found in"${S}"/po but this default can be overridden by defining PO_SUBDIR.

Example:

PO_SUBDIR="bla foo/bla"
VDR_MAINTAINER_MODE
Output from function dev_check if it is defined in ebuild or eclass, helpfull for gentoo ebuild developer

This will also install any debug files in /usr/share/vdr/maintainer-data

This is intended to be set by user in make.conf. Ebuilds must not set it.

VDR_MAINTAINER_MODE=1

 

AUTHORS

Matthias Schwarzott <zzam@gentoo.org>
Joerg Bornkessel <hd_brummy@gentoo.org>
Christian Ruppert <idl0r@gentoo.org>
(undisclosed contributors)
 

MAINTAINERS

Gentoo VDR Project <vdr@gentoo.org>
 

REPORTING BUGS

Please report bugs via http://bugs.gentoo.org/  

FILES

/usr/portage/eclass/vdr-plugin-2.eclass  

SEE ALSO

ebuild(5)
http://sources.gentoo.org/eclass/vdr-plugin-2.eclass?view=log


 

Index

NAME
DESCRIPTION
FUNCTIONS
ECLASS VARIABLES
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:10 GMT, August 04, 2015