commit:     37c6d491b31628a53a5dc9da98db87a51c410bf4
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 10 20:51:10 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 20:51:10 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c6d491

media-sound/sox: remove old

 media-sound/sox/Manifest                         |   1 -
 media-sound/sox/files/sox-14.4.0-avcodec54.patch | 103 -----------------------
 media-sound/sox/files/sox-14.4.0-ffmpeg.patch    |  11 ---
 media-sound/sox/files/sox-14.4.0-libav-9.patch   |  39 ---------
 media-sound/sox/files/sox-14.4.1-ffmpeg2.patch   |  16 ----
 media-sound/sox/files/sox-14.4.1-ffmpeg24.patch  |  17 ----
 media-sound/sox/files/sox-14.4.1-uclibc.patch    |  21 -----
 media-sound/sox/sox-14.4.1.ebuild                |  92 --------------------
 8 files changed, 300 deletions(-)

diff --git a/media-sound/sox/Manifest b/media-sound/sox/Manifest
index 5af964a..1fa23db 100644
--- a/media-sound/sox/Manifest
+++ b/media-sound/sox/Manifest
@@ -1,2 +1 @@
-DIST sox-14.4.1.tar.gz 1111653 SHA256 
9a8c2c6fe51e608da346a157e111508a957af9e3ecf3de26781d36e9a67fa89b SHA512 
a35c0f424ffaa51d06291e69b28ae7f2248a750fa8aded911dcd7e123877ecb5142c292f943eb723142c50dbd890b58163c6ef24c9c0573377855fad1b36fb25
 WHIRLPOOL 
e1523027ea5221f31b9b6f8ff90503555d25fb68d3a35d5a7442142503140ed702a03d84a833056255cd2efa21b15d31358968ffbd1d252176996ed7e24bcf24
 DIST sox-14.4.2.tar.gz 1134299 SHA256 
b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c SHA512 
b5c6203f4f5577503a034fe5b3d6a033ee97fe4d171c533933e2b036118a43a14f97c9668433229708609ccf9ee16abdeca3fc7501aa0aafe06baacbba537eca
 WHIRLPOOL 
dbed6c60eb96cf946168666d39d3310c669e22136a982dc3547125a30214916e8ab99542dee124d5dc570d32dda8921ff003e6bfe9fd6292d82df2344b9d5fdb

diff --git a/media-sound/sox/files/sox-14.4.0-avcodec54.patch 
b/media-sound/sox/files/sox-14.4.0-avcodec54.patch
deleted file mode 100644
index a9551f8..00000000
--- a/media-sound/sox/files/sox-14.4.0-avcodec54.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-Fix build with ffmpeg 0.11.
-https://bugs.gentoo.org/show_bug.cgi?id=407621
-
-Index: sox-14.4.0/m4/ffmpeg.m4
-===================================================================
---- sox-14.4.0.orig/m4/ffmpeg.m4
-+++ sox-14.4.0/m4/ffmpeg.m4
-@@ -49,7 +49,7 @@ then
-   LIBS="$LIBS $FFMPEG_LIBS"
-   have_ffmpeg="no"
-   AC_CHECK_HEADERS([libavformat/avformat.h ffmpeg/avformat.h],
--    [AC_CHECK_LIB(avformat, av_open_input_file,
-+    [AC_CHECK_LIB(avformat, avformat_open_input,
-       [AC_CHECK_HEADERS([libavcodec/avcodec.h ffmpeg/avcodec.h],
-         [AC_CHECK_LIB(avcodec, avcodec_decode_audio3, have_ffmpeg=yes)])])
-     break])
-Index: sox-14.4.0/src/ffmpeg.c
-===================================================================
---- sox-14.4.0.orig/src/ffmpeg.c
-+++ sox-14.4.0/src/ffmpeg.c
-@@ -92,8 +92,10 @@ static int stream_component_open(priv_t
-   enc->workaround_bugs = 1;
- #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
-   enc->error_resilience = 1;
--#else
-+#elif LIBAVCODEC_VERSION_INT < ((54<<16)+(0<<8)+0)
-   enc->error_recognition = 1;
-+#else
-+  ic->error_recognition = 1;
- #endif
- 
-   if (!codec || avcodec_open(enc, codec) < 0)
-@@ -157,7 +159,7 @@ static int audio_decode_frame(priv_t * f
- static int startread(sox_format_t * ft)
- {
-   priv_t * ffmpeg = (priv_t *)ft->priv;
--  AVFormatParameters params;
-+  AVDictionary *params;
-   int ret;
-   int i;
- 
-@@ -172,7 +174,7 @@ static int startread(sox_format_t * ft)
- 
-   /* Open file and get format */
-   memset(&params, 0, sizeof(params));
--  if ((ret = av_open_input_file(&ffmpeg->ctxt, ft->filename, NULL, 0, 
&params)) < 0) {
-+  if ((ret = avformat_open_input(&ffmpeg->ctxt, ft->filename, NULL, &params)) 
< 0) {
-     lsx_fail("ffmpeg cannot open file for reading: %s (code %d)", 
ft->filename, ret);
-     return SOX_EOF;
-   }
-@@ -231,7 +233,7 @@ static size_t read_samples(sox_format_t
-     /* If input buffer empty, read more data */
-     if (ffmpeg->audio_buf_index * 2 >= ffmpeg->audio_buf_size) {
-       if ((ret = av_read_frame(ffmpeg->ctxt, pkt)) < 0 &&
--        (ret == AVERROR_EOF || url_ferror(ffmpeg->ctxt->pb)))
-+        (ret == AVERROR_EOF || ( ffmpeg->ctxt->pb && 
ffmpeg->ctxt->pb->error)))
-       break;
-       ffmpeg->audio_buf_size = audio_decode_frame(ffmpeg, 
ffmpeg->audio_buf_aligned, AVCODEC_MAX_AUDIO_FRAME_SIZE);
-       ffmpeg->audio_buf_index = 0;
-@@ -373,13 +375,6 @@ static int startwrite(sox_format_t * ft)
-       return SOX_EOF;
-   }
- 
--  /* set the output parameters (must be done even if no
--     parameters). */
--  if (av_set_parameters(ffmpeg->ctxt, NULL) < 0) {
--    lsx_fail("ffmpeg invalid output format parameters");
--    return SOX_EOF;
--  }
--
-   /* Next line for debugging */
-   /* dump_format(ffmpeg->ctxt, 0, ft->filename, 1); */
- 
-@@ -391,14 +386,14 @@ static int startwrite(sox_format_t * ft)
- 
-   /* open the output file, if needed */
-   if (!(ffmpeg->fmt->flags & AVFMT_NOFILE)) {
--    if (url_fopen(&ffmpeg->ctxt->pb, ft->filename, URL_WRONLY) < 0) {
-+    if (avio_open(&ffmpeg->ctxt->pb, ft->filename, AVIO_FLAG_WRITE) < 0) {
-       lsx_fail("ffmpeg could not open `%s'", ft->filename);
-       return SOX_EOF;
-     }
-   }
- 
-   /* write the stream header, if any */
--  av_write_header(ffmpeg->ctxt);
-+  avformat_write_header(ffmpeg->ctxt, NULL);
- 
-   return SOX_SUCCESS;
- }
-@@ -475,11 +470,7 @@ static int stopwrite(sox_format_t * ft)
- 
-   if (!(ffmpeg->fmt->flags & AVFMT_NOFILE)) {
-     /* close the output file */
--#if (LIBAVFORMAT_VERSION_INT < 0x340000)
--    url_fclose(&ffmpeg->ctxt->pb);
--#else
--    url_fclose(ffmpeg->ctxt->pb);
--#endif
-+    avio_close(ffmpeg->ctxt->pb);
-   }
- 
-   /* Free the output context */

diff --git a/media-sound/sox/files/sox-14.4.0-ffmpeg.patch 
b/media-sound/sox/files/sox-14.4.0-ffmpeg.patch
deleted file mode 100644
index 74dcc57..00000000
--- a/media-sound/sox/files/sox-14.4.0-ffmpeg.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- sox-14.4.0/src/ffmpeg.h
-+++ sox-14.4.0/src/ffmpeg.h
-@@ -27,6 +27,8 @@
- #include <ffmpeg/avformat.h>
- #endif
- 
-+#include <libavutil/mathematics.h>
-+
- #if defined __SUNPRO_C
-   #pragma enable_warn
- #elif defined _MSC_VER

diff --git a/media-sound/sox/files/sox-14.4.0-libav-9.patch 
b/media-sound/sox/files/sox-14.4.0-libav-9.patch
deleted file mode 100644
index d969cbc..00000000
--- a/media-sound/sox/files/sox-14.4.0-libav-9.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -burN sox-14.4.0.old//src/ffmpeg.c sox-14.4.0/src/ffmpeg.c
---- sox-14.4.0.old//src/ffmpeg.c       2012-11-25 21:59:45.990825656 +0100
-+++ sox-14.4.0/src/ffmpeg.c    2012-11-25 22:07:06.436809624 +0100
-@@ -98,7 +98,7 @@
-   ic->error_recognition = 1;
- #endif
- 
--  if (!codec || avcodec_open(enc, codec) < 0)
-+  if (!codec || avcodec_open2(enc, codec, NULL) < 0)
-     return -1;
-   if (enc->codec_type != AVMEDIA_TYPE_AUDIO) {
-     lsx_fail("ffmpeg CODEC %x is not an audio CODEC", enc->codec_type);
-@@ -180,7 +180,7 @@
-   }
- 
-   /* Get CODEC parameters */
--  if ((ret = av_find_stream_info(ffmpeg->ctxt)) < 0) {
-+  if ((ret = avformat_find_stream_info(ffmpeg->ctxt, NULL)) < 0) {
-     lsx_fail("ffmpeg could not find CODEC parameters for %s", ft->filename);
-     return SOX_EOF;
-   }
-@@ -274,7 +274,7 @@
-   AVCodecContext *c;
-   AVStream *st;
- 
--  st = av_new_stream(oc, 1);
-+  st = avformat_new_stream(oc, NULL);
-   if (!st) {
-     lsx_fail("ffmpeg could not alloc stream");
-     return NULL;
-@@ -308,7 +308,7 @@
-   }
- 
-   /* open it */
--  if (avcodec_open(c, codec) < 0) {
-+  if (avcodec_open2(c, codec, NULL) < 0) {
-     lsx_fail("ffmpeg could not open CODEC");
-     return SOX_EOF;
-   }

diff --git a/media-sound/sox/files/sox-14.4.1-ffmpeg2.patch 
b/media-sound/sox/files/sox-14.4.1-ffmpeg2.patch
deleted file mode 100644
index 2c35936..00000000
--- a/media-sound/sox/files/sox-14.4.1-ffmpeg2.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Index: sox-14.4.1/src/ffmpeg.c
-===================================================================
---- sox-14.4.1.orig/src/ffmpeg.c
-+++ sox-14.4.1/src/ffmpeg.c
-@@ -57,6 +57,11 @@
- #define PKT_FLAG_KEY AV_PKT_FLAG_KEY
- #endif
- 
-+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
-+#define AVCODEC_MAX_AUDIO_FRAME_SIZE (192000 * 4)
-+#endif
-+
-+
- /* Private data for ffmpeg files */
- typedef struct {
-   int audio_index;

diff --git a/media-sound/sox/files/sox-14.4.1-ffmpeg24.patch 
b/media-sound/sox/files/sox-14.4.1-ffmpeg24.patch
deleted file mode 100644
index 88653cc..00000000
--- a/media-sound/sox/files/sox-14.4.1-ffmpeg24.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Index: sox-14.4.1/src/ffmpeg.c
-===================================================================
---- sox-14.4.1.orig/src/ffmpeg.c
-+++ sox-14.4.1/src/ffmpeg.c
-@@ -263,8 +263,12 @@ static int stopread(sox_format_t * ft)
-   if (ffmpeg->audio_stream >= 0)
-     stream_component_close(ffmpeg, ffmpeg->audio_stream);
-   if (ffmpeg->ctxt) {
-+#if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(53,25,0)
-+    avformat_close_input(&ffmpeg->ctxt);
-+#else
-     av_close_input_file(ffmpeg->ctxt);
-     ffmpeg->ctxt = NULL; /* safety */
-+#endif
-   }
- 
-   free(ffmpeg->audio_buf_raw);

diff --git a/media-sound/sox/files/sox-14.4.1-uclibc.patch 
b/media-sound/sox/files/sox-14.4.1-uclibc.patch
deleted file mode 100644
index 84a37d3..00000000
--- a/media-sound/sox/files/sox-14.4.1-uclibc.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Index: sox-14.4.1/src/formats.c
-===================================================================
---- sox-14.4.1.orig/src/formats.c
-+++ sox-14.4.1/src/formats.c
-@@ -409,7 +409,7 @@ static void UNUSED rewind_pipe(FILE * fp
- #if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__
-   fp->_p -= PIPE_AUTO_DETECT_SIZE;
-   fp->_r += PIPE_AUTO_DETECT_SIZE;
--#elif defined __GLIBC__
-+#elif defined __GLIBC__ && ! defined __UCLIBC__
-   fp->_IO_read_ptr = fp->_IO_read_base;
- #elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || defined 
_ISO_STDIO_ISO_H
-   fp->_ptr = fp->_base;
-@@ -417,7 +417,6 @@ static void UNUSED rewind_pipe(FILE * fp
-   /* To fix this #error, either simply remove the #error line and live without
-    * file-type detection with pipes, or add support for your compiler in the
-    * lines above.  Test with cat monkey.wav | ./sox --info - */
--  #error FIX NEEDED HERE
-   #define NO_REWIND_PIPE
-   (void)fp;
- #endif

diff --git a/media-sound/sox/sox-14.4.1.ebuild 
b/media-sound/sox/sox-14.4.1.ebuild
deleted file mode 100644
index e9f67fe..00000000
--- a/media-sound/sox/sox-14.4.1.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-inherit eutils flag-o-matic autotools
-
-DESCRIPTION="The swiss army knife of sound processing programs"
-HOMEPAGE="http://sox.sourceforge.net";
-SRC_URI="mirror://sourceforge/sox/${P}.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd 
~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
-IUSE="alsa amr ao debug encode ffmpeg flac id3tag ladspa mad ogg openmp oss 
png pulseaudio sndfile static-libs twolame wavpack"
-
-# libtool required for libltdl
-RDEPEND=">=sys-devel/libtool-2.2.6b
-       >=media-sound/gsm-1.0.12-r1
-       alsa? ( media-libs/alsa-lib )
-       amr? ( media-libs/opencore-amr )
-       ao? ( media-libs/libao )
-       encode? ( >=media-sound/lame-3.98.4 )
-       ffmpeg? ( >=virtual/ffmpeg-0.9 )
-       flac? ( >=media-libs/flac-1.1.3 )
-       id3tag? ( media-libs/libid3tag )
-       ladspa? ( media-libs/ladspa-sdk )
-       mad? ( media-libs/libmad )
-       ogg? ( media-libs/libvorbis     media-libs/libogg )
-       png? ( media-libs/libpng sys-libs/zlib )
-       pulseaudio? ( media-sound/pulseaudio )
-       sndfile? ( >=media-libs/libsndfile-1.0.11 )
-       twolame? ( media-sound/twolame )
-       wavpack? ( media-sound/wavpack )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog NEWS README )
-
-src_prepare() {
-       sed -i -e 's:CFLAGS="-g":CFLAGS="$CFLAGS -g":' configure || die #386027
-
-       epatch \
-               "${FILESDIR}"/${PN}-14.4.1-uclibc.patch \
-               "${FILESDIR}"/${PN}-14.4.0-ffmpeg.patch \
-               "${FILESDIR}"/${PN}-14.4.0-avcodec54.patch \
-               "${FILESDIR}"/${PN}-14.4.0-libav-9.patch
-
-       if has_version '>=media-video/ffmpeg-2' ; then
-               epatch "${FILESDIR}"/${PN}-14.4.1-ffmpeg2.patch
-               sed -i -e 's/ CODEC_ID/ AV_CODEC_ID/g' \
-                          -e 's/ CodecID/ AVCodecID/g' \
-                          src/ffmpeg.c || die
-               epatch "${FILESDIR}"/${PN}-14.4.1-ffmpeg24.patch
-       fi
-       eautoreconf
-}
-
-src_configure() {
-       # Fixes wav segfaults. See Bug #35745.
-       append-flags -fsigned-char
-
-       econf \
-               $(use_with alsa) \
-               $(use_with amr amrnb) \
-               $(use_with amr amrwb) \
-               $(use_with ao) \
-               $(use_enable debug) \
-               $(use_with encode lame) \
-               $(use_with ffmpeg) \
-               $(use_with flac) \
-               $(use_with id3tag) \
-               $(use_with ladspa) \
-               $(use_with mad) \
-               $(use_enable openmp gomp) \
-               $(use_with ogg oggvorbis) \
-               $(use_with oss) \
-               $(use_with png) \
-               $(use_with pulseaudio) \
-               $(use_with sndfile) \
-               $(use_enable static-libs static) \
-               $(use_with twolame) \
-               $(use_with wavpack) \
-               --with-distro="Gentoo"
-}
-
-src_install() {
-       default
-       # libltdl is used for loading plugins, keeping libtool files with empty
-       # dependency_libs what otherwise would be -exec rm -f {} +
-       find "${ED}" -name '*.la' -exec sed -i -e 
"/^dependency_libs/s:=.*:='':" {} +
-}

Reply via email to