summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2013-01-20 17:51:41 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2013-01-20 17:51:41 +0000
commit7bb2f7a0bb0dd309d92f1ae90e4048865b190e4a (patch)
tree8ddb2a9116b7073391624699ec4c764311136b4a
parentInitial ebuild, bug #264329 with keywords copied from gst-plugins-base. (diff)
downloadhistorical-7bb2f7a0bb0dd309d92f1ae90e4048865b190e4a.tar.gz
historical-7bb2f7a0bb0dd309d92f1ae90e4048865b190e4a.tar.bz2
historical-7bb2f7a0bb0dd309d92f1ae90e4048865b190e4a.zip
Initial ebuild, bug #264329 with keywords copied from gst-plugins-base.
Package-Manager: portage-2.2.0_alpha154/cvs/Linux x86_64 Manifest-Sign-Key: 0xC6085806
-rw-r--r--media-plugins/gst-plugins-ivorbis/Manifest14
-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
4 files changed, 162 insertions, 2 deletions
diff --git a/media-plugins/gst-plugins-ivorbis/Manifest b/media-plugins/gst-plugins-ivorbis/Manifest
index 528311fbd557..e7017900834b 100644
--- a/media-plugins/gst-plugins-ivorbis/Manifest
+++ b/media-plugins/gst-plugins-ivorbis/Manifest
@@ -1,5 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
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
+EBUILD gst-plugins-ivorbis-0.10.36.ebuild 625 SHA256 314c11caa955bc76a593c5a96ada7c1c7cb5abb7d5a6481cb4d1921c380bf3d1 SHA512 f7ed07ca5b35ce38e7afabe2b88ef7efd451eda92557899d6ebd22b086a8e2e1e56d9c767735dec41bed0ee9de36a7d7c42e44f58a8a60d8e7114b3806a01a6d WHIRLPOOL cc2bee776734c31a0f92caf14800a1ba0ca0193eeede330baa51017a29a23c4814715064905588e7a5b3132eba9af400ccf05b92bcf91bd92d44e7cea2061225
+MISC ChangeLog 502 SHA256 74a58237180dd63e154b893f4f53132dff0a4d71249d39e0454ba3dad2a8e860 SHA512 d031308f951702711e8b5534a463ad0ce659c5b1d940ba039a5c2c544f76e78d9eec914b177c17279697fbff089ee73b6015a83443feb1f9a0c16ad61cae7246 WHIRLPOOL 7bcbdd36acdc17fadc71fcfed257763854f2078134cec99a9d7ba42ba32409f76ab9706bb5b369f9384da8572223523943b5998f101f3161fc2e70f454db1858
MISC metadata.xml 162 SHA256 3ac891ee23de8c6e2bef32e0c7aa3e6607e808de76ed723fbe7a1fb92f6093f1 SHA512 8b02f1dfc23c5609db66995b8b5f3b371d7c9ec232bd8117177af0522cd521f0217f5b49fb512213cb3db606c00df2511e0874ca0cac490ded306a8ddcfb5185 WHIRLPOOL b6621e0156545e7b124a3f55c2fe03a8878eb44d1b54fc3373adf9915dfe9c57a411741daf8863af74fdec93bacf929e905aa50954f906cec098bf0c4ddf2652
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEAREIAAYFAlD8LqoACgkQ1fmVwcYIWAZwjACffWmZwu+dQ3cOfLC0AIKikrua
+kwYAni8/DD9Ty3hs6NE8s3rRVeegDBLu
+=0MyA
+-----END PGP SIGNATURE-----
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>