kde-plasma/breeze-gtk: x86 stable wrt bug #613144
[gentoo.git] / eclass / gst-plugins-bad.eclass
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 # @ECLASS: gst-plugins10-bad.eclass
5 # @MAINTAINER:
6 # gstreamer@gentoo.org
7 # @AUTHOR:
8 # Gilles Dartiguelongue <eva@gentoo.org>
9 # Saleem Abdulrasool <compnerd@gentoo.org>
10 # foser <foser@gentoo.org>
11 # zaheerm <zaheerm@gentoo.org>
12 # @BLURB: Manages build for invididual ebuild for gst-plugins-bad.
13 # @DESCRIPTION:
14 # See gst-plugins10.eclass documentation.
15
16 GST_ORG_MODULE="gst-plugins-bad"
17
18 inherit eutils gst-plugins10
19
20 case "${EAPI:-0}" in
21         1|2|3|4|5)
22                 ;;
23         0)
24                 die "EAPI=\"${EAPI}\" is not supported anymore"
25                 ;;
26         *)
27                 die "EAPI=\"${EAPI}\" is not supported yet"
28                 ;;
29 esac
30
31
32 if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
33 # -bad-0.10.20 uses orc optionally instead of liboil unconditionally.
34 # While <0.10.20 configure always check for liboil, it is used only by
35 # non-split plugins in gst/ (legacyresample and mpegdemux), so we only
36 # builddep for all old packages, and have a RDEPEND in old versions of
37 # media-libs/gst-plugins-bad
38         if [[ ${SLOT} = "0.10" ]] && ! version_is_at_least "0.10.20"; then
39                 DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
40         fi
41 fi
42