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 | 5c573608b56431bf7bc2278c57e49b9469448dd0 (patch) | |
tree | 2e2f0c02c022fc5a6fa558df199f693388f23494 /eclass | |
parent | update (diff) | |
download | historical-5c573608b56431bf7bc2278c57e49b9469448dd0.tar.gz historical-5c573608b56431bf7bc2278c57e49b9469448dd0.tar.bz2 historical-5c573608b56431bf7bc2278c57e49b9469448dd0.zip |
Make eclass aware of the new APIVERSION concept.
Diffstat (limited to '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 |