Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: media-libs/gstreamer/
Date: Tue, 28 Jun 2011 23:25:20
Message-Id: 3928b4b2956438dbf11a314f615870035fdd0329.tetromino@gentoo
1 commit: 3928b4b2956438dbf11a314f615870035fdd0329
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 28 23:13:00 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Tue Jun 28 23:24:29 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=3928b4b2
7
8 media-libs/gstreamer-0.10.35
9
10 Adding gstreamer-0.10.35 because earlier versions don't build with
11 >=glib-2.29.5.
12
13 Code changes: added GstParseBase, funnel element, new QoS type, new
14 progress message API; fixed thread safety issue in multiqueue,
15 timestamping issue in basesrc, compatibility with glib-2.29.x.
16
17 Ebuild changes: added USE=doc for building the html manual and faq,
18 and updated the homepage to fdo.
19
20 ---
21 media-libs/gstreamer/gstreamer-0.10.35.ebuild | 70 +++++++++++++++++++++++++
22 1 files changed, 70 insertions(+), 0 deletions(-)
23
24 diff --git a/media-libs/gstreamer/gstreamer-0.10.35.ebuild b/media-libs/gstreamer/gstreamer-0.10.35.ebuild
25 new file mode 100644
26 index 0000000..257abe6
27 --- /dev/null
28 +++ b/media-libs/gstreamer/gstreamer-0.10.35.ebuild
29 @@ -0,0 +1,70 @@
30 +# Copyright 1999-2011 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.10.32-r1.ebuild,v 1.7 2011/06/09 16:00:02 jer Exp $
33 +
34 +EAPI=2
35 +
36 +inherit eutils multilib versionator
37 +
38 +# Create a major/minor combo for our SLOT and executables suffix
39 +PV_MAJ_MIN=$(get_version_component_range '1-2')
40 +
41 +DESCRIPTION="Streaming media framework"
42 +HOMEPAGE="http://gstreamer.freedesktop.org/"
43 +SRC_URI="http://${PN}.freedesktop.org/src/${PN}/${P}.tar.bz2"
44 +
45 +LICENSE="LGPL-2"
46 +SLOT=${PV_MAJ_MIN}
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
48 +IUSE="doc +introspection nls test"
49 +
50 +RDEPEND=">=dev-libs/glib-2.22:2
51 + dev-libs/libxml2
52 + introspection? ( >=dev-libs/gobject-introspection-0.6.3 )
53 + !<media-libs/gst-plugins-base-0.10.26"
54 + # ^^ queue2 move, mustn't have both libgstcoreleements.so and libgstqueue2.so at runtime providing the element at once
55 +DEPEND="${RDEPEND}
56 + dev-util/pkgconfig
57 + doc? ( >=app-text/docbook-sgml-utils-0.6.10
58 + app-text/docbook-xml-dtd:4.2
59 + media-gfx/transfig )
60 + nls? ( sys-devel/gettext )"
61 + # dev-util/gtk-doc-am # Only if eautoreconf'ing
62 +
63 +src_prepare() {
64 + # don't ever build ps and pdf documentation
65 + sed -e 's:PDF_DAT = $(DOC).pdf:PDF_DAT =:' \
66 + -e 's:PS_DAT = $(DOC).ps:PS_DAT =:' \
67 + -i docs/manuals.mak docs/{faq,manual,pwg}/Makefile.in ||
68 + die "sed of docs/manuals.mak docs/{faq,manual,pwg}/Makefile.in failed"
69 +}
70 +
71 +src_configure() {
72 + # Disable static archives, dependency tracking and examples
73 + # to speed up build time
74 + econf \
75 + --disable-static \
76 + --disable-dependency-tracking \
77 + $(use_enable nls) \
78 + --disable-valgrind \
79 + --disable-examples \
80 + --enable-check \
81 + $(use_enable introspection) \
82 + $(use_enable test tests) \
83 + $(use_enable doc docbook) \
84 + --with-package-name="GStreamer ebuild for Gentoo" \
85 + --with-package-origin="http://packages.gentoo.org/package/media-libs/gstreamer"
86 +}
87 +
88 +src_install() {
89 + emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install ||
90 + die "emake install failed."
91 + dodoc AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE
92 +
93 + # Remove unversioned binaries to allow SLOT installations in future
94 + cd "${D}"/usr/bin
95 + local gst_bins
96 + for gst_bins in $(ls *-${PV_MAJ_MIN}); do
97 + rm -f ${gst_bins/-${PV_MAJ_MIN}/}
98 + done
99 +}