/[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.14 Revision 1.16
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.14 2006/03/14 16:03:01 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.16 2006/03/15 09:48:53 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
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 base eutils flag-o-matic 46inherit base eutils flag-o-matic
47 47
48IUSE="debug"
49
48# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes 50# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes
49VDRPLUGIN="${PN/#vdrplugin-/}" 51VDRPLUGIN="${PN/#vdrplugin-/}"
50VDRPLUGIN="${VDRPLUGIN/#vdr-/}" 52VDRPLUGIN="${VDRPLUGIN/#vdr-/}"
51VDRPLUGIN="${VDRPLUGIN/%-cvs/}" 53VDRPLUGIN="${VDRPLUGIN/%-cvs/}"
52 54
93} 95}
94 96
95vdr-plugin_pkg_setup() { 97vdr-plugin_pkg_setup() {
96 # -fPIC is needed for shared objects on some platforms (amd64 and others) 98 # -fPIC is needed for shared objects on some platforms (amd64 and others)
97 append-flags -fPIC 99 append-flags -fPIC
100 use debug && append-flags -g
98 101
99 VDRVERSION=$(awk -F'"' '/VDRVERSION/ {print $2}' /usr/include/vdr/config.h) 102 VDRVERSION=$(awk -F'"' '/VDRVERSION/ {print $2}' /usr/include/vdr/config.h)
100 einfo "Building ${PF} against vdr-${VDRVERSION}" 103 einfo "Building ${PF} against vdr-${VDRVERSION}"
101} 104}
102 105
194 newins "${f}" plugin-${VDRPLUGIN}.sh 197 newins "${f}" plugin-${VDRPLUGIN}.sh
195 break 198 break
196 fi 199 fi
197 done 200 done
198 201
202 insinto /usr/lib/vdr/checksums
203 if [[ -f ${ROOT}/usr/lib/vdr/checksums/header-md5-vdr ]]; then
204 newins ${ROOT}/usr/lib/vdr/checksums/header-md5-vdr header-md5-${PN}
205 else
199 if which md5sum >/dev/null 2>&1; then 206 if which md5sum >/dev/null 2>&1; then
200 cd ${S} 207 cd ${S}
201 insinto /usr/lib/vdr/checksums
202 ( 208 (
203 cd ${ROOT}${VDR_INCLUDE_DIR}/vdr 209 cd ${ROOT}${VDR_INCLUDE_DIR}/vdr
204 md5sum *.h libsi/*.h|sort --key=2 210 md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
205 ) > header-md5-${PN} 211 ) > header-md5-${PN}
206 doins header-md5-${PN} 212 doins header-md5-${PN}
213 fi
207 fi 214 fi
208} 215}
209 216
210vdr-plugin_pkg_postinst() { 217vdr-plugin_pkg_postinst() {
211 update_vdrplugindb 218 update_vdrplugindb

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20