From 40fe1fe18ae56121081225e66a55abf51daec651 Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Wed, 26 Apr 2006 12:57:05 +0000 Subject: Make eclass aware of the new APIVERSION concept. --- eclass/vdr-plugin.eclass | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'eclass/vdr-plugin.eclass') diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index d8e7869a966c..41cdd746494b 100644 --- a/eclass/vdr-plugin.eclass +++ b/eclass/vdr-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.17 2006/03/17 15:13:24 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.18 2006/04/26 12:57:05 zzam Exp $ # # Author: # Matthias Schwarzott @@ -102,7 +102,11 @@ vdr-plugin_pkg_setup() { use debug && append-flags -g VDRVERSION=$(awk -F'"' '/VDRVERSION/ {print $2}' /usr/include/vdr/config.h) + APIVERSION=$(awk -F'"' '/APIVERSION/ {print $2}' /usr/include/vdr/config.h) + [[ -z ${APIVERSION} ]] && APIVERSION="${VDRVERSION}" + einfo "Building ${PF} against vdr-${VDRVERSION}" + einfo "APIVERSION: ${APIVERSION}" } vdr-plugin_src_unpack() { @@ -127,7 +131,10 @@ vdr-plugin_src_unpack() { -e 's:-I$(VDRDIR)/include:-I$(VDRDIR):' \ -e 's:-I$(DVBDIR)/include:-I$(DVBDIR):' \ -e 's:-I$(VDRDIR) -I$(DVBDIR):-I$(DVBDIR) -I$(VDRDIR):' \ - -e 's:$(VDRDIR)/\([a-z]*\.h\|Make.config\):$(VDRDIR)/vdr/\1:' + -e 's:$(VDRDIR)/\([a-z]*\.h\|Make.config\):$(VDRDIR)/vdr/\1:' \ + -e 's:^APIVERSION = :APIVERSION ?= :' \ + -e 's:$(LIBDIR)/$@.$(VDRVERSION):$(LIBDIR)/$@.$(APIVERSION):' \ + -e '1i\APIVERSION = '"${APIVERSION}" eend $? ;; esac -- cgit v1.2.3-65-gdbad