| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v 1.5 2011/12/10 19:22:38 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v 1.7 2012/10/31 01:51:52 tetromino Exp $ |
| 4 | |
4 | |
| 5 | # Author : foser <foser@gentoo.org> |
5 | # Author : foser <foser@gentoo.org> |
| 6 | |
6 | |
| 7 | # gst-plugins eclass |
7 | # gst-plugins eclass |
| 8 | # |
8 | # |
| … | |
… | |
| 12 | # 3rd party applications using gstreamer now should depend on a set of plugins as |
12 | # 3rd party applications using gstreamer now should depend on a set of plugins as |
| 13 | # defined in the source, in case of spider usage obtain recommended plugins to use from |
13 | # defined in the source, in case of spider usage obtain recommended plugins to use from |
| 14 | # Gentoo developers responsible for gstreamer <gstreamer@gentoo.org> or the application |
14 | # Gentoo developers responsible for gstreamer <gstreamer@gentoo.org> or the application |
| 15 | # developer. |
15 | # developer. |
| 16 | |
16 | |
| 17 | inherit eutils |
17 | inherit eutils versionator |
| 18 | |
18 | |
| 19 | |
19 | |
| 20 | ### |
20 | ### |
| 21 | # variable declarations |
21 | # variable declarations |
| 22 | ### |
22 | ### |
| 23 | |
23 | |
| 24 | # Create a major/minor combo for our SLOT and executables suffix |
24 | # Create a major/minor combo for our SLOT and executables suffix |
| 25 | PVP=(${PV//[-\._]/ }) |
25 | PVP=(${PV//[-\._]/ }) |
| 26 | #PV_MAJ_MIN=${PVP[0]}.${PVP[1]} |
26 | #PV_MAJ_MIN=${PVP[0]}.${PVP[1]} |
| 27 | PV_MAJ_MIN=0.10 |
27 | PV_MAJ_MIN=$(get_version_component_range '1-2') |
| 28 | |
28 | |
| 29 | # Extract the plugin to build from the ebuild name |
29 | # Extract the plugin to build from the ebuild name |
| 30 | # May be set by an ebuild and contain more than one indentifier, space seperated |
30 | # May be set by an ebuild and contain more than one indentifier, space seperated |
| 31 | # (only src_configure can handle mutiple plugins at this time) |
31 | # (only src_configure can handle mutiple plugins at this time) |
| 32 | GST_PLUGINS_BUILD=${PN/gst-plugins-/} |
32 | GST_PLUGINS_BUILD=${PN/gst-plugins-/} |