/[gentoo-x86]/eclass/vdr-plugin.eclass
Gentoo

Diff of /eclass/vdr-plugin.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.12
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/Attic/vdr-plugin.eclass,v 1.8 2005/11/20 14:10:05 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.12 2006/02/03 21:18:52 zzam Exp $
4# 4#
5# Author: 5# Author:
6# Matthias Schwarzott <zzam@gentoo.org> 6# Matthias Schwarzott <zzam@gentoo.org>
7 7
8# vdr-plugin.eclass 8# vdr-plugin.eclass
41# 41#
42# This file is sourced by the startscript when plugin is activated in /etc/conf.d/vdr 42# This file is sourced by the startscript when plugin is activated in /etc/conf.d/vdr
43# It could be used for special startup actions for this plugins, or to create the 43# It could be used for special startup actions for this plugins, or to create the
44# plugin command line options from a nicer version of a conf.d file. 44# plugin command line options from a nicer version of a conf.d file.
45 45
46inherit eutils flag-o-matic 46inherit base eutils flag-o-matic
47 47
48# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes 48# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes
49VDRPLUGIN="${PN/#vdrplugin-/}" 49VDRPLUGIN="${PN/#vdrplugin-/}"
50VDRPLUGIN="${VDRPLUGIN/#vdr-/}" 50VDRPLUGIN="${VDRPLUGIN/#vdr-/}"
51VDRPLUGIN="${VDRPLUGIN/%-cvs/}" 51VDRPLUGIN="${VDRPLUGIN/%-cvs/}"
55# works in most cases 55# works in most cases
56S="${WORKDIR}/${VDRPLUGIN}-${PV}" 56S="${WORKDIR}/${VDRPLUGIN}-${PV}"
57 57
58# depend on headers for DVB-driver 58# depend on headers for DVB-driver
59RDEPEND="" 59RDEPEND=""
60DEPEND="|| ( 60DEPEND="media-tv/linuxtv-dvb-headers"
61 >=sys-kernel/linux-headers-2.6.11-r2
62 media-tv/linuxtv-dvb
63 )"
64 61
65# Where should the plugins live in the filesystem 62# Where should the plugins live in the filesystem
66VDR_PLUGIN_DIR="/usr/lib/vdr/plugins" 63VDR_PLUGIN_DIR="/usr/lib/vdr/plugins"
67 64
68VDR_RC_DIR="/usr/lib/vdr/rcscript" 65VDR_RC_DIR="/usr/lib/vdr/rcscript"
108 105
109 while [ "$1" ]; do 106 while [ "$1" ]; do
110 107
111 case "$1" in 108 case "$1" in
112 unpack) 109 unpack)
113 unpack ${A} 110 base_src_unpack
114 ;; 111 ;;
115 patchmakefile) 112 patchmakefile)
116 cd ${S} 113 cd ${S}
117 114
118 ebegin "Patching Makefile" 115 ebegin "Patching Makefile"
123 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \ 120 -e "s:^TMPDIR.*$:TMPDIR = ${T}:" \
124 -e 's:^CXXFLAGS:#CXXFLAGS:' \ 121 -e 's:^CXXFLAGS:#CXXFLAGS:' \
125 -e 's:-I$(VDRDIR)/include:-I$(VDRDIR):' \ 122 -e 's:-I$(VDRDIR)/include:-I$(VDRDIR):' \
126 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \ 123 -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \
127 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' \ 124 -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' \
128 -e 's:$(VDRDIR)/\(config.h\|Make.config\):$(VDRDIR)/vdr/\1:' 125 -e 's:$(VDRDIR)/\([a-z]*\.h\|Make.config\):$(VDRDIR)/vdr/\1:'
129 eend $? 126 eend $?
130 ;; 127 ;;
131 esac 128 esac
132 129
133 shift 130 shift
200} 197}
201 198
202vdr-plugin_pkg_postinst() { 199vdr-plugin_pkg_postinst() {
203 update_vdrplugindb 200 update_vdrplugindb
204 einfo 201 einfo
205 einfo "The vdr plugin ${VDRPLUGIN} has now been installed," 202 einfo "The vdr plugin ${VDRPLUGIN} has now been installed."
206 einfo "to activate it you have to add it to /etc/conf.d/vdr." 203 einfo "To activate execute the following command:"
204 einfo
205 einfo " emerge --config ${PN}"
207 einfo 206 einfo
208} 207}
209 208
210vdr-plugin_pkg_postrm() { 209vdr-plugin_pkg_postrm() {
211 remove_vdrplugindb 210 remove_vdrplugindb

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

  ViewVC Help
Powered by ViewVC 1.1.20