diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-04-26 12:57:05 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-04-26 12:57:05 +0000 |
commit | 40fe1fe18ae56121081225e66a55abf51daec651 (patch) | |
tree | af1eb51608dd67fc3a197f24f9a65d37d74abda6 /eclass/vdr-plugin.eclass | |
parent | update (diff) | |
download | gentoo-2-40fe1fe18ae56121081225e66a55abf51daec651.tar.gz gentoo-2-40fe1fe18ae56121081225e66a55abf51daec651.tar.bz2 gentoo-2-40fe1fe18ae56121081225e66a55abf51daec651.zip |
Make eclass aware of the new APIVERSION concept.
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r-- | eclass/vdr-plugin.eclass | 11 |
1 files changed, 9 insertions, 2 deletions
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 <zzam@gentoo.org> @@ -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 |