/[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.44 Revision 1.45
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/vdr-plugin.eclass,v 1.44 2007/04/23 07:17:42 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.45 2007/06/02 15:07:43 zzam Exp $
4# 4#
5# Author: 5# Author:
6# Matthias Schwarzott <zzam@gentoo.org> 6# Matthias Schwarzott <zzam@gentoo.org>
7# Joerg Bornkessel <hd_brummy@gentoo.org> 7# Joerg Bornkessel <hd_brummy@gentoo.org>
8 8
135 fi 135 fi
136 136
137 elog "Removing orphaned plugindb-file." 137 elog "Removing orphaned plugindb-file."
138 elog "\t#rm ${DB_FILE}" 138 elog "\t#rm ${DB_FILE}"
139 rm ${DB_FILE} 139 rm ${DB_FILE}
140}
141
142
143create_header_checksum_file()
144{
145 # Danger: Not using $ROOT here, as compile will also not use it !!!
146 # If vdr in $ROOT and / differ, plugins will not run anyway
147
148 insinto ${VDR_CHECKSUM_DIR}
149 if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then
150 newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN}
151 else
152 if type -p md5sum >/dev/null 2>&1; then
153 cd ${S}
154 (
155 cd ${VDR_INCLUDE_DIR}
156 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
157 ) > header-md5-${PN}
158 doins header-md5-${PN}
159 fi
160 fi
140} 161}
141 162
142vdr-plugin_pkg_setup() { 163vdr-plugin_pkg_setup() {
143 # -fPIC is needed for shared objects on some platforms (amd64 and others) 164 # -fPIC is needed for shared objects on some platforms (amd64 and others)
144 append-flags -fPIC 165 append-flags -fPIC
344 if [[ -n ${VDR_RCADDON_FILE} ]]; then 365 if [[ -n ${VDR_RCADDON_FILE} ]]; then
345 insinto "${VDR_RC_DIR}" 366 insinto "${VDR_RC_DIR}"
346 newins "${VDR_RCADDON_FILE}" plugin-${VDRPLUGIN}.sh 367 newins "${VDR_RCADDON_FILE}" plugin-${VDRPLUGIN}.sh
347 fi 368 fi
348 369
349 370 create_header_checksum_file
350
351 # Danger: Not using $ROOT here, as compile will also not use it !!!
352 # If vdr in $ROOT and / differ, plugins will not run anyway
353
354 insinto ${VDR_CHECKSUM_DIR}
355 if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then
356 newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN}
357 else
358 if type -p md5sum >/dev/null 2>&1; then
359 cd ${S}
360 (
361 cd ${VDR_INCLUDE_DIR}
362 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
363 ) > header-md5-${PN}
364 doins header-md5-${PN}
365 fi
366 fi
367
368 create_plugindb_file 371 create_plugindb_file
369} 372}
370 373
371vdr-plugin_pkg_postinst() { 374vdr-plugin_pkg_postinst() {
372 if has_version "<=media-tv/vdrplugin-rebuild-0.1"; then 375 if has_version "<=media-tv/vdrplugin-rebuild-0.1"; then

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20