| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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.4 2011/04/12 05:55:30 leio Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v 1.5 2011/12/10 19:22:38 vapier 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 | # |
| … | |
… | |
| 68 | gst-plugins10_remove_unversioned_binaries() { |
68 | gst-plugins10_remove_unversioned_binaries() { |
| 69 | |
69 | |
| 70 | # remove the unversioned binaries gstreamer provide |
70 | # remove the unversioned binaries gstreamer provide |
| 71 | # this is to prevent these binaries to be owned by several SLOTs |
71 | # this is to prevent these binaries to be owned by several SLOTs |
| 72 | |
72 | |
| 73 | cd ${D}/usr/bin |
73 | cd "${D}"/usr/bin |
|
|
74 | local gst_bins |
| 74 | for gst_bins in `ls *-${PV_MAJ_MIN}` |
75 | for gst_bins in *-${PV_MAJ_MIN}; do |
| 75 | do |
76 | [[ -e ${gst_bins} ]] || continue |
| 76 | rm ${gst_bins/-${PV_MAJ_MIN}/} |
77 | rm ${gst_bins/-${PV_MAJ_MIN}/} |
| 77 | einfo "Removed ${gst_bins/-${PV_MAJ_MIN}/}" |
78 | einfo "Removed ${gst_bins/-${PV_MAJ_MIN}/}" |
| 78 | done |
79 | done |
| 79 | |
80 | |
| 80 | } |
81 | } |