/[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.25 Revision 1.28
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.25 2006/07/08 14:31:35 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.28 2006/07/19 20:24:53 hd_brummy 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 8
8# vdr-plugin.eclass 9# vdr-plugin.eclass
9# 10#
10# eclass to create ebuilds for vdr plugins 11# eclass to create ebuilds for vdr plugins
11# 12#
43# 44#
44# This file is sourced by the startscript when plugin is activated in /etc/conf.d/vdr 45# This file is sourced by the startscript when plugin is activated in /etc/conf.d/vdr
45# It could be used for special startup actions for this plugins, or to create the 46# It could be used for special startup actions for this plugins, or to create the
46# plugin command line options from a nicer version of a conf.d file. 47# plugin command line options from a nicer version of a conf.d file.
47 48
49# HowTo use own local patches; Example
50#
51# Add to your /etc/make.conf:
52# VDR_LOCAL_PATCHES_DIR="/usr/local/patch"
53#
54# Add two DIR's in your local patch dir, ${PN}/${PV},
55# e.g for vdr-burn-0.1.0 should be:
56# /usr/local/patch/vdr-burn/0.1.0/
57#
58# all patches which ending on diff or patch in this DIR will automatically applied
59#
60
48inherit base multilib eutils flag-o-matic 61inherit base multilib eutils flag-o-matic
49 62
50IUSE="debug" 63IUSE="debug"
51 64
52# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes 65# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes
111 einfo "Building ${PF} against vdr-${VDRVERSION}" 124 einfo "Building ${PF} against vdr-${VDRVERSION}"
112 einfo "APIVERSION: ${APIVERSION}" 125 einfo "APIVERSION: ${APIVERSION}"
113} 126}
114 127
115vdr-plugin_src_unpack() { 128vdr-plugin_src_unpack() {
116 [ -z "$1" ] && vdr-plugin_src_unpack unpack patchmakefile 129 [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile
117 130
118 while [ "$1" ]; do 131 while [ "$1" ]; do
119 132
120 case "$1" in 133 case "$1" in
121 unpack) 134 unpack)
158 171
159 ebegin " Correcting CXXFLAGS" 172 ebegin " Correcting CXXFLAGS"
160 sed -i Makefile \ 173 sed -i Makefile \
161 -e 's:^CXXFLAGS:#CXXFLAGS:' 174 -e 's:^CXXFLAGS:#CXXFLAGS:'
162 eend $? 175 eend $?
176
177 ebegin " Disabling file stripping"
178 sed -i Makefile \
179 -e '/@.*strip/d' \
180 -e '/strip \$(LIBDIR)\/\$@/d' \
181 -e '/^STRIP =/d' \
182 -e '/@.*\$(STRIP)/d'
183 eend $?
184 ;;
185 add_local_patch)
186 cd ${S}
187 if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then
188 echo
189 einfo "Applying local patches"
190 for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PN}/${PV}/*.{diff,patch}; do
191 test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
192 done
193 fi
163 ;; 194 ;;
164 esac 195 esac
165 196
166 shift 197 shift
167 done 198 done

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20