/[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.2 Revision 1.4
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.2 2005/08/07 13:55:43 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.4 2005/08/22 16:20:30 swegener 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
20# SRC_URI="http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/${P}.tgz" 20# SRC_URI="http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/${P}.tgz"
21# LICENSE="GPL-2" 21# LICENSE="GPL-2"
22# KEYWORDS="~x86" 22# KEYWORDS="~x86"
23# DEPEND=">=media-video/vdr-1.3.27" 23# DEPEND=">=media-video/vdr-1.3.27"
24# 24#
25# 25#
26 26
27# There are some special files in ${FILESDIR} which get installed when 27# There are some special files in ${FILESDIR} which get installed when
28# they exist: 28# they exist:
29 29
30# ${FILESDIR}/confd-${PV} or ${FILESDIR}/confd: 30# ${FILESDIR}/confd-${PV} or ${FILESDIR}/confd:
72DVB_INCLUDE_DIR="/usr/include" 72DVB_INCLUDE_DIR="/usr/include"
73 73
74 74
75# this code is from linux-mod.eclass 75# this code is from linux-mod.eclass
76update_vdrplugindb() { 76update_vdrplugindb() {
77 local VDRPLUGINDB_DIR=${ROOT}/var/lib/vdrplugins-rebuild/ 77 local VDRPLUGINDB_DIR=${ROOT}/var/lib/vdrplugin-rebuild/
78 78
79 if [[ ! -f ${VDRPLUGINDB_DIR}/vdrplugindb ]]; then 79 if [[ ! -f ${VDRPLUGINDB_DIR}/vdrplugindb ]]; then
80 [[ ! -d ${VDRPLUGINDB_DIR} ]] && mkdir -p ${VDRPLUGINDB_DIR} 80 [[ ! -d ${VDRPLUGINDB_DIR} ]] && mkdir -p ${VDRPLUGINDB_DIR}
81 touch ${VDRPLUGINDB_DIR}/vdrplugindb 81 touch ${VDRPLUGINDB_DIR}/vdrplugindb
82 fi 82 fi
85 echo "a:1:${CATEGORY}/${PN}-${PVR}" >> ${VDRPLUGINDB_DIR}/vdrplugindb 85 echo "a:1:${CATEGORY}/${PN}-${PVR}" >> ${VDRPLUGINDB_DIR}/vdrplugindb
86 fi 86 fi
87} 87}
88 88
89remove_vdrplugindb() { 89remove_vdrplugindb() {
90 local VDRPLUGINDB_DIR=${ROOT}/var/lib/vdrplugins-rebuild/ 90 local VDRPLUGINDB_DIR=${ROOT}/var/lib/vdrplugin-rebuild/
91 91
92 if [[ -n $(grep ${CATEGORY}/${PN}-${PVR} ${VDRPLUGINDB_DIR}/vdrplugindb) ]]; then 92 if [[ -n $(grep ${CATEGORY}/${PN}-${PVR} ${VDRPLUGINDB_DIR}/vdrplugindb) ]]; then
93 einfo "Removing ${CATEGORY}/${PN}-${PVR} from vdrplugindb." 93 einfo "Removing ${CATEGORY}/${PN}-${PVR} from vdrplugindb."
94 sed -ie "/.*${CATEGORY}\/${P}.*/d" ${VDRPLUGINDB_DIR}/vdrplugindb 94 sed -ie "/.*${CATEGORY}\/${P}.*/d" ${VDRPLUGINDB_DIR}/vdrplugindb
95 fi 95 fi

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20