diff options
author | Peter Volkov <pva@gentoo.org> | 2010-08-12 10:53:57 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2010-08-12 10:53:57 +0000 |
commit | ccd326599bb7aca8f6d55759e637140584bb419e (patch) | |
tree | 57192205adda8131ee4f418d58a59f8835eb5af2 /eclass/gst-plugins-base.eclass | |
parent | stable x86, bug 332091 (diff) | |
download | gentoo-2-ccd326599bb7aca8f6d55759e637140584bb419e.tar.gz gentoo-2-ccd326599bb7aca8f6d55759e637140584bb419e.tar.bz2 gentoo-2-ccd326599bb7aca8f6d55759e637140584bb419e.zip |
Make EAPI 1,2,3 compatible, bug #282482 thank Samuli Suominen for this job.
Diffstat (limited to 'eclass/gst-plugins-base.eclass')
-rw-r--r-- | eclass/gst-plugins-base.eclass | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/eclass/gst-plugins-base.eclass b/eclass/gst-plugins-base.eclass index 3b47a3d11b1f..3058b35177b3 100644 --- a/eclass/gst-plugins-base.eclass +++ b/eclass/gst-plugins-base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-base.eclass,v 1.17 2010/07/28 05:17:58 leio Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-base.eclass,v 1.18 2010/08/12 10:53:57 pva Exp $ # Author : foser <foser@gentoo.org> @@ -16,6 +16,13 @@ inherit eutils gst-plugins10 +GST_EXPF="src_unpack src_compile src_install" +case ${EAPI:-0} in + 2|3) GST_EXPF="${GST_EXPF} src_prepare src_configure" ;; + 1|0) ;; + *) die "Unknown EAPI" ;; +esac +EXPORT_FUNCTIONS ${GST_EXPF} ### # variable declarations @@ -65,8 +72,8 @@ gst-plugins-base_src_configure() { gst_conf="${gst_conf} --enable-${plugin} " done - cd ${S} - econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure" + cd "${S}" + econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} } @@ -76,10 +83,15 @@ gst-plugins-base_src_configure() { gst-plugins-base_src_unpack() { -# local makefiles - unpack ${A} + cd "${S}" + has src_prepare ${GST_EXPF} || gst-plugins-base_src_prepare + +} + +gst-plugins-base_src_prepare() { + # Link with the syswide installed gst-libs if needed gst-plugins10_find_plugin_dir sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \ @@ -112,10 +124,11 @@ gst-plugins-base_src_unpack() { } -gst-plugins-base_src_compile() { - gst-plugins-base_src_configure ${@} +gst-plugins-base_src_compile() { + + has src_configure ${GST_EXPF} || gst-plugins-base_src_configure ${@} gst-plugins10_find_plugin_dir emake || die "compile failure" @@ -128,6 +141,3 @@ gst-plugins-base_src_install() { [[ -e README ]] && dodoc README } - - -EXPORT_FUNCTIONS src_unpack src_compile src_install |