summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2013-01-20 17:51:37 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2013-01-20 17:51:37 +0000
commit97de4184914b09f99eb02a627fd437911d8c375e (patch)
tree5a4b968984dec7ac311a7a23a3e1289df043ce57 /media-plugins/gst-plugins-ivorbis
parentAdd fix from upstream for loadkey syntax errors #447440 by gglaboussole. (diff)
downloadgentoo-2-97de4184914b09f99eb02a627fd437911d8c375e.tar.gz
gentoo-2-97de4184914b09f99eb02a627fd437911d8c375e.tar.bz2
gentoo-2-97de4184914b09f99eb02a627fd437911d8c375e.zip
Initial ebuild, bug #264329 with keywords copied from gst-plugins-base.
(Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key C6085806)
Diffstat (limited to 'media-plugins/gst-plugins-ivorbis')
-rw-r--r--media-plugins/gst-plugins-ivorbis/ChangeLog11
-rw-r--r--media-plugins/gst-plugins-ivorbis/Manifest5
-rw-r--r--media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch122
-rw-r--r--media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36.ebuild23
-rw-r--r--media-plugins/gst-plugins-ivorbis/metadata.xml5
5 files changed, 166 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-ivorbis/ChangeLog b/media-plugins/gst-plugins-ivorbis/ChangeLog
new file mode 100644
index 000000000000..ce7e0d2dbf93
--- /dev/null
+++ b/media-plugins/gst-plugins-ivorbis/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-plugins/gst-plugins-ivorbis
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-ivorbis/ChangeLog,v 1.1 2013/01/20 17:51:36 eva Exp $
+
+*gst-plugins-ivorbis-0.10.36 (20 Jan 2013)
+
+ 20 Jan 2013; Gilles Dartiguelongue <eva@gentoo.org>
+ +files/0.10.36-header-shuffle.patch, +gst-plugins-ivorbis-0.10.36.ebuild,
+ +metadata.xml:
+ Initial ebuild, bug #264329 with keywords copied from gst-plugins-base.
+
diff --git a/media-plugins/gst-plugins-ivorbis/Manifest b/media-plugins/gst-plugins-ivorbis/Manifest
new file mode 100644
index 000000000000..528311fbd557
--- /dev/null
+++ b/media-plugins/gst-plugins-ivorbis/Manifest
@@ -0,0 +1,5 @@
+AUX 0.10.36-header-shuffle.patch 3668 SHA256 d9e639798027028c5f4a42dc0b25ffc5f9196955328e6c9e6ebf99a9a834115b SHA512 d67ce5b0e169d11d51a871a24bfe97b8a025dab05ffb3854ab4a30de93d2649809703c0de581697642735f9d715d986ebc4dc24f95da58874b00cbf57f3031c9 WHIRLPOOL f9f90c25abbf9cb6107c59d6888617773be0f692149f3f71e3719daa3441ecf160152af26788af1f5e0edf14ac5882a906607e06c22b8e29619f91be16951acd
+DIST gst-plugins-base-0.10.36.tar.xz 2364108 SHA256 1fe45c3894903001d4d008b0713dab089f53726dcb5842d5b40c2595a984e64a SHA512 ea77778e073515df58229a641b4363df31f0b80204a5a43a8feb31f0b03a5a4b9b79d6e07e1615c773a59927a9b649f1b1d782def1120d581d09a090be8363b8 WHIRLPOOL e455f2a1aafd60078080735108e4ac336bc4764ed92b9579d83a453f75491331d16b48e5983f3c9712b6edb28ec379e696f06f6910c93168b019d6077c28fb6d
+EBUILD gst-plugins-ivorbis-0.10.36.ebuild 617 SHA256 54844919eff1d230c314670ec46b3fab1dad7d6140528f53ad4be4dcb50eead7 SHA512 c3983ea20818092ab8d5ad6b8397431688036e4620e909df35e31b3984d4b9297b342d56b86c6cd8f57aee3f9345d60bb2afaf5ee0e156fb8ab844070230504d WHIRLPOOL 47db3f09c5ee08767d2123fddb0318cda18fdf43f45676e8ff6d32ce01f12e7db21129c5aa21ac494e5b9fa2c7c19415ddf0a89aebd22c7b2f73a14ab76ac0dc
+MISC ChangeLog 400 SHA256 f16d6ef992cd397aa738f60354c09b82b6f3b439a84e3fdc2854f59d38809b92 SHA512 01e582784a72f0eaa3da471819fbeaae57fb106aba42f9463f16493b78ca482cb599c956a19aafae2ea6694fde1a6f8cabc6e0c3fd1341cb8a9dc983d1f849e9 WHIRLPOOL 0423c2c761a28ad2430125e4f36194b0fa647181a7a443b44152907739dface8d21e390ce4139d05cda55fff56ef7b5bca311179066aeae3a15777abe0689492
+MISC metadata.xml 162 SHA256 3ac891ee23de8c6e2bef32e0c7aa3e6607e808de76ed723fbe7a1fb92f6093f1 SHA512 8b02f1dfc23c5609db66995b8b5f3b371d7c9ec232bd8117177af0522cd521f0217f5b49fb512213cb3db606c00df2511e0874ca0cac490ded306a8ddcfb5185 WHIRLPOOL b6621e0156545e7b124a3f55c2fe03a8878eb44d1b54fc3373adf9915dfe9c57a411741daf8863af74fdec93bacf929e905aa50954f906cec098bf0c4ddf2652
diff --git a/media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch b/media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch
new file mode 100644
index 000000000000..4a1f08739345
--- /dev/null
+++ b/media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch
@@ -0,0 +1,122 @@
+Fix build of ivorbis plugin of gstreamer-0.10 series applying header
+code moves from gstreamer-1 series.
+
+The diff can probably be made smaller but the intent was to match
+known working gst-1.
+
+diff -Nu a/ext/vorbis/gstvorbisdeclib.h b/ext/vorbis/gstvorbisdeclib.h
+--- a/ext/vorbis/gstvorbisdeclib.h 2011-12-11 19:47:07.000000000 +0100
++++ b/ext/vorbis/gstvorbisdeclib.h 2013-01-20 18:31:37.291211764 +0100
+@@ -29,11 +29,6 @@
+
+ #ifndef TREMOR
+
+-#include <vorbis/codec.h>
+-
+-typedef float vorbis_sample_t;
+-typedef ogg_packet ogg_packet_wrapper;
+-
+ #define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to float audio"
+
+ #define GST_VORBIS_DEC_SRC_CAPS \
+@@ -47,6 +42,42 @@
+
+ #define GST_VORBIS_DEC_GLIB_TYPE_NAME GstVorbisDec
+
++#else /* TREMOR */
++
++#define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to integer audio"
++
++#define GST_VORBIS_DEC_SRC_CAPS \
++ GST_STATIC_CAPS ("audio/x-raw-int, " \
++ "rate = (int) [ 1, MAX ], " \
++ "channels = (int) [ 1, 6 ], " \
++ "endianness = (int) BYTE_ORDER, " \
++ "width = (int) { 16, 32 }, " \
++ "depth = (int) 16, " \
++ "signed = (boolean) true")
++
++#define GST_VORBIS_DEC_DEFAULT_SAMPLE_WIDTH (16)
++
++/* we need a different type name here */
++#define GST_VORBIS_DEC_GLIB_TYPE_NAME GstIVorbisDec
++
++/* and still have it compile */
++typedef struct _GstVorbisDec GstIVorbisDec;
++typedef struct _GstVorbisDecClass GstIVorbisDecClass;
++
++#endif /* TREMOR */
++
++#ifndef USE_TREMOLO
++
++#ifdef TREMOR
++ #include <tremor/ivorbiscodec.h>
++ typedef ogg_int32_t vorbis_sample_t;
++#else
++ #include <vorbis/codec.h>
++ typedef float vorbis_sample_t;
++#endif
++
++typedef ogg_packet ogg_packet_wrapper;
++
+ static inline guint8 *
+ gst_ogg_packet_data (ogg_packet * p)
+ {
+@@ -72,17 +103,11 @@
+ return packet;
+ }
+
+-#else
+-
+-#ifdef USE_TREMOLO
+- #include <Tremolo/ivorbiscodec.h>
+- #include <Tremolo/codec_internal.h>
+- typedef ogg_int16_t vorbis_sample_t;
+-#else
+- #include <tremor/ivorbiscodec.h>
+- typedef ogg_int32_t vorbis_sample_t;
+-#endif
++#else /* USE_TREMOLO */
+
++#include <Tremolo/ivorbiscodec.h>
++#include <Tremolo/codec_internal.h>
++typedef ogg_int16_t vorbis_sample_t;
+ typedef struct _ogg_packet_wrapper ogg_packet_wrapper;
+
+ struct _ogg_packet_wrapper {
+@@ -91,26 +116,6 @@
+ ogg_buffer buf;
+ };
+
+-#define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to integer audio"
+-
+-#define GST_VORBIS_DEC_SRC_CAPS \
+- GST_STATIC_CAPS ("audio/x-raw-int, " \
+- "rate = (int) [ 1, MAX ], " \
+- "channels = (int) [ 1, 6 ], " \
+- "endianness = (int) BYTE_ORDER, " \
+- "width = (int) { 16, 32 }, " \
+- "depth = (int) 16, " \
+- "signed = (boolean) true")
+-
+-#define GST_VORBIS_DEC_DEFAULT_SAMPLE_WIDTH (16)
+-
+-/* we need a different type name here */
+-#define GST_VORBIS_DEC_GLIB_TYPE_NAME GstIVorbisDec
+-
+-/* and still have it compile */
+-typedef struct _GstVorbisDec GstIVorbisDec;
+-typedef struct _GstVorbisDecClass GstIVorbisDecClass;
+-
+ /* compensate minor variation */
+ #define vorbis_synthesis(a, b) vorbis_synthesis (a, b, 1)
+
+@@ -154,7 +159,7 @@
+ return &(packet->packet);
+ }
+
+-#endif
++#endif /* USE_TREMOLO */
+
+ typedef void (*CopySampleFunc)(vorbis_sample_t *out, vorbis_sample_t **in,
+ guint samples, gint channels, gint width);
diff --git a/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36.ebuild b/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36.ebuild
new file mode 100644
index 000000000000..015c09d8c594
--- /dev/null
+++ b/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36.ebuild,v 1.1 2013/01/20 17:51:36 eva Exp $
+
+EAPI="5"
+
+inherit gst-plugins-base gst-plugins10
+
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
+IUSE=""
+
+RDEPEND="media-libs/tremor"
+DEPEND="${RDEPEND}"
+
+GST_PLUGINS_BUILD_DIR="vorbis"
+
+src_prepare() {
+ epatch "${FILESDIR}"/0.10.36-header-shuffle.patch
+
+ gst-plugins10_system_link \
+ gst-libs/gst/audio:gstreamer-audio \
+ gst-libs/gst/tag:gstreamer-tag
+}
diff --git a/media-plugins/gst-plugins-ivorbis/metadata.xml b/media-plugins/gst-plugins-ivorbis/metadata.xml
new file mode 100644
index 000000000000..9e260ceca3e3
--- /dev/null
+++ b/media-plugins/gst-plugins-ivorbis/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gstreamer</herd>
+</pkgmetadata>