vdr-plugin-2.eclass

Name

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

Description

Eclass for easing maintenance of vdr plugin ebuilds

Supported EAPIs

5 6 7 8

Exported Phases

  • pkg_setup

  • pkg_config

  • pkg_postrm

  • pkg_postinst

  • src_unpack

  • src_compile

  • src_install

  • src_prepare

Functions

fix_vdr_libsi_include <filename> [more filenames]

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

vdr_remove_i18n_include <filename> [more filenames]

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 i18n.h includes from files, if they are still wrong there, this can be fixed by this function with a space separated list of files

vdr-plugin-2_src_util [ list of wanted eclass helper functions to call ]

wrapper function to call other functions in this eclass

Variables

VDRPLUGIN (GENERATED BY ECLASS)

The name of the vdr plugin, plain name without "vdr-" or "plugin" prefix or suffix. This variable is derived from ${PN} and is read-only for the ebuild.

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"

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 https://bugs.gentoo.org/