summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-sound/ogmtools
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-sound/ogmtools')
-rw-r--r--media-sound/ogmtools/Manifest1
-rw-r--r--media-sound/ogmtools/files/ogmtools-1.5-comments.patch21
-rw-r--r--media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch11
-rw-r--r--media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch12
-rw-r--r--media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch12
-rw-r--r--media-sound/ogmtools/metadata.xml5
-rw-r--r--media-sound/ogmtools/ogmtools-1.5-r2.ebuild42
7 files changed, 104 insertions, 0 deletions
diff --git a/media-sound/ogmtools/Manifest b/media-sound/ogmtools/Manifest
new file mode 100644
index 000000000000..b03aabd4920b
--- /dev/null
+++ b/media-sound/ogmtools/Manifest
@@ -0,0 +1 @@
+DIST ogmtools-1.5.tar.bz2 214934 SHA256 c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea
diff --git a/media-sound/ogmtools/files/ogmtools-1.5-comments.patch b/media-sound/ogmtools/files/ogmtools-1.5-comments.patch
new file mode 100644
index 000000000000..0440a8040b8c
--- /dev/null
+++ b/media-sound/ogmtools/files/ogmtools-1.5-comments.patch
@@ -0,0 +1,21 @@
+--- vorbis_header_utils.c.orig Fri Aug 31 14:47:55 2007
++++ vorbis_header_utils.c Fri Aug 31 14:51:23 2007
+@@ -153,15 +153,15 @@
+ die("malloc");
+
+ memcpy(new_vc, vc, sizeof(vorbis_comment));
+- new_vc->user_comments = (char **)malloc((vc->comments + 1) * sizeof(char *));
+- new_vc->comment_lengths = (int *)malloc((vc->comments + 1) * sizeof(int));
++ new_vc->user_comments = (char **)malloc((vc->comments + 1) * sizeof(*new_vc->user_comments));
++ new_vc->comment_lengths = (int *)malloc((vc->comments + 1) * sizeof(*new_vc->comment_lengths));
+ if ((new_vc->user_comments == NULL) || (new_vc->comment_lengths == NULL))
+ die("malloc");
+ for (i = 0; i < vc->comments; i++)
+ new_vc->user_comments[i] = strdup(vc->user_comments[i]);
+ new_vc->user_comments[vc->comments] = 0;
+ memcpy(new_vc->comment_lengths, vc->comment_lengths,
+- (vc->comments + 1) * sizeof(char *));
++ (vc->comments + 1) * sizeof(*new_vc->comment_lengths));
+ new_vc->vendor = strdup(vc->vendor);
+
+ return new_vc;
diff --git a/media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch b/media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch
new file mode 100644
index 000000000000..8945ca47c082
--- /dev/null
+++ b/media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch
@@ -0,0 +1,11 @@
+--- avilib/avidump.c.orig 2004-11-02 15:30:16.000000000 +0000
++++ avilib/avidump.c 2004-11-17 19:12:02.730255128 +0000
+@@ -54,7 +54,7 @@
+ ((x<<8) & 0x00ff0000) |\
+ ((x<<24) & 0xff000000))
+ # define SWAP8(x) (((SWAP4(x)<<32) & 0xffffffff00000000ULL) |\
+- (SWAP4(x)))
++ SWAP4(x))
+ #else
+ # define SWAP2(a) (a)
+ # define SWAP4(a) (a)
diff --git a/media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch b/media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch
new file mode 100644
index 000000000000..8457918beb8f
--- /dev/null
+++ b/media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch
@@ -0,0 +1,12 @@
+diff -ur ogmtools-1.5.orig/ogminfo.c ogmtools-1.5/ogminfo.c
+--- ogmtools-1.5.orig/ogminfo.c 2003-11-21 00:21:36.000000000 +0200
++++ ogmtools-1.5/ogminfo.c 2009-05-12 12:41:58.000000000 +0300
+@@ -513,7 +513,7 @@
+ stream->serial, stream->size,
+ (stream->size * 8.0 / 1000.0) / now,
+ (stream->size / 1024.0) / now,
+- stream->num_packets, now * 1000.0);
++ stream->num_packets, now);
+ stream = stream->next;
+ }
+ }
diff --git a/media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch b/media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch
new file mode 100644
index 000000000000..085cc5d978d3
--- /dev/null
+++ b/media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch
@@ -0,0 +1,12 @@
+diff -ur ogmtools-1.5.orig/ogminfo.c ogmtools-1.5/ogminfo.c
+--- ogmtools-1.5.orig/ogminfo.c 2003-11-21 00:21:36.000000000 +0200
++++ ogmtools-1.5/ogminfo.c 2009-05-12 12:42:56.000000000 +0300
+@@ -188,7 +188,7 @@
+ }
+ vorbis_comment_clear(&vc);
+ } else if ((stream->stype == 'a') && stream->vorbis) {
+- if (verbose < 1)
++ if (verbose < 2)
+ return;
+ fprintf(stdout, "(%s) a%d: % 7ld bytes granulepos: % 10lld pno: % 10lld ",
+ __FILE__, stream->sno, pack->bytes, ogg_page_granulepos(page),
diff --git a/media-sound/ogmtools/metadata.xml b/media-sound/ogmtools/metadata.xml
new file mode 100644
index 000000000000..ae573a60407f
--- /dev/null
+++ b/media-sound/ogmtools/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>sound</herd>
+</pkgmetadata>
diff --git a/media-sound/ogmtools/ogmtools-1.5-r2.ebuild b/media-sound/ogmtools/ogmtools-1.5-r2.ebuild
new file mode 100644
index 000000000000..3c1d420fee99
--- /dev/null
+++ b/media-sound/ogmtools/ogmtools-1.5-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="Information, extraction or creation for OGG media streams"
+HOMEPAGE="http://www.bunkus.org/videotools/ogmtools/"
+SRC_URI="http://www.bunkus.org/videotools/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="dvd"
+
+RDEPEND="dvd? ( media-libs/libdvdread )
+ media-sound/vorbis-tools"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-comments.patch \
+ "${FILESDIR}"/${P}-endian-fix.patch \
+ "${FILESDIR}"/${P}-vorbis_verbosity.patch \
+ "${FILESDIR}"/${P}-summary_length.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with dvd dvdread)
+}
+
+src_install() {
+ dobin ogmmerge ogmdemux ogminfo ogmsplit ogmcat || die "dobin failed"
+
+ if use dvd; then
+ dobin dvdxchap || die "dobin failed"
+ fi
+
+ dodoc ChangeLog README TODO
+ doman *.1
+}