summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-12-24 11:53:03 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-12-24 11:53:03 +0000
commita68ed34199498d39c905ff6a0e40e64d90b057d7 (patch)
tree8590b845142c98108e843a06680b86656af0dc4b /media-libs/gstreamer
parentalpha/arm/ia64 stable wrt #234646 (diff)
downloadgentoo-2-a68ed34199498d39c905ff6a0e40e64d90b057d7.tar.gz
gentoo-2-a68ed34199498d39c905ff6a0e40e64d90b057d7.tar.bz2
gentoo-2-a68ed34199498d39c905ff6a0e40e64d90b057d7.zip
Patch configure to support three components in bisons versioning. Use versionator not to show bad example to our new developers. Speed up build time by disabling both static libs and examples. Use EAPI=2 functions which will be required for -r2.
(Portage version: 2.1.6.2/cvs/Linux 2.6.27.7 i686)
Diffstat (limited to 'media-libs/gstreamer')
-rw-r--r--media-libs/gstreamer/ChangeLog11
-rw-r--r--media-libs/gstreamer/files/gstreamer-0.10.21-bison241.patch14
-rw-r--r--media-libs/gstreamer/gstreamer-0.10.21-r1.ebuild62
3 files changed, 86 insertions, 1 deletions
diff --git a/media-libs/gstreamer/ChangeLog b/media-libs/gstreamer/ChangeLog
index 14dc61d89d84..aa3e9345199b 100644
--- a/media-libs/gstreamer/ChangeLog
+++ b/media-libs/gstreamer/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-libs/gstreamer
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/ChangeLog,v 1.213 2008/12/05 19:16:46 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/ChangeLog,v 1.214 2008/12/24 11:53:03 ssuominen Exp $
+
+*gstreamer-0.10.21-r1 (24 Dec 2008)
+
+ 24 Dec 2008; <ssuominen@gentoo.org>
+ +files/gstreamer-0.10.21-bison241.patch, +gstreamer-0.10.21-r1.ebuild:
+ Patch configure to support three components in bisons versioning.
+ Use versionator not to show bad example to our new developers.
+ Speed up build time by disabling both static libs and examples.
+ Use EAPI=2 functions. It will be required for -r2.
*gstreamer-0.10.21 (05 Dec 2008)
diff --git a/media-libs/gstreamer/files/gstreamer-0.10.21-bison241.patch b/media-libs/gstreamer/files/gstreamer-0.10.21-bison241.patch
new file mode 100644
index 000000000000..1a941a66386c
--- /dev/null
+++ b/media-libs/gstreamer/files/gstreamer-0.10.21-bison241.patch
@@ -0,0 +1,14 @@
+--- common/m4/gst-parser.m4 2008/07/20 19:55:14 1.12
++++ common/m4/gst-parser.m4 2008/12/15 07:06:26 1.13
+@@ -15,10 +15,7 @@
+ bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^[[^0-9]]*//' | sed 's/[[^0-9]]*$//' | cut -d' ' -f1`
+ AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version])
+
+- if perl -w <<EOF
+- exit ($bison_version < $bison_min_version) ? 0 : 1;
+-EOF
+- then
++ if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([no])
diff --git a/media-libs/gstreamer/gstreamer-0.10.21-r1.ebuild b/media-libs/gstreamer/gstreamer-0.10.21-r1.ebuild
new file mode 100644
index 000000000000..ea93faa821f9
--- /dev/null
+++ b/media-libs/gstreamer/gstreamer-0.10.21-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.10.21-r1.ebuild,v 1.1 2008/12/24 11:53:03 ssuominen Exp $
+
+EAPI=2
+
+inherit autotools eutils multilib versionator
+#inherit libtool versionator
+
+# Create a major/minor combo for our SLOT and executables suffix
+PV_MAJ_MIN=$(get_version_component_range '1-2')
+
+DESCRIPTION="Streaming media framework"
+HOMEPAGE="http://gstreamer.sourceforge.net"
+SRC_URI="http://${PN}.freedesktop.org/src/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT=${PV_MAJ_MIN}
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="debug nls test"
+
+RDEPEND=">=dev-libs/glib-2.12:2
+ dev-libs/libxml2
+ >=dev-libs/check-0.9.2"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ # Needed for sane .so versioning on Gentoo/FreeBSD
+ #elibtoolize
+ epatch "${FILESDIR}"/${P}-gtkdoc.patch \
+ "${FILESDIR}"/${P}-bison241.patch
+ AT_M4DIR="common/m4" eautoreconf
+}
+
+src_configure() {
+ # Disable static archives, dependency tracking to and examples
+ # to speed up build time
+ econf \
+ --disable-static \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ $(use_enable debug) \
+ --disable-valgrind \
+ --disable-examples \
+ $(use_enable test tests) \
+ --with-package-name="GStreamer ebuild for Gentoo" \
+ --with-package-origin="http://packages.gentoo.org/package/media-libs/gstreamer"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE
+
+ # Remove unversioned binaries to allow SLOT installations in future
+ cd "${D}"/usr/bin
+ local gst_bins
+ for gst_bins in $(ls *-${PV_MAJ_MIN}); do
+ rm ${gst_bins/-${PV_MAJ_MIN}/}
+ done
+}