media-plugins/vdr-audiorecorder: Remove last-rited pkg, #575138

This commit is contained in:
Michał Górny
2017-07-05 14:13:16 +02:00
parent f5c7846422
commit 57b67fd650
14 changed files with 0 additions and 481 deletions

View File

@@ -1,3 +0,0 @@
DIST vdr-audiorecorder-0.1.0-pre14.tgz 101437 SHA256 18b0dfd023e5bda4785cab832478aae205ca02548b32de4458d628672d6fb8e9 SHA512 bd5a12426ec45f7242f1c912ef916c794be69504ed7e0971373fdbee9d664646b4e42e79919489d9aae7bc8b140fee50ea2601f3bdb4f4b260180474879e99f6 WHIRLPOOL dded93a4d7792c8ea522d65aa082a2230ff4c87a8f88f59f65b3733c950c70c8157f96492d048dadb106e2095124a86c8e1794a3e7a369a656ddcdd0d2338549
DIST vdr-plugin-audiorecorder-2.0.0_rc3.tar.gz 43321 SHA256 ab8b4512ad2a1e592231a1fba57ed37f490107ffe87c01f638bdca054c475378 SHA512 d0e2c190a0d35d59dc36f18070e03002c957aa2879f42ee54dda9dab6bcb489b843d0426a4693d90a91df0760f294dd8bfa08f6db05558c4f7db4a3070d70141 WHIRLPOOL 478b14af7645eea9dedb3b1799f2f9f1feedfc7e774c0e9c0653a342c801d54f2233de536440e80037a878665993d3e3b764dfeda27b157e2e000b4632c513f4
DIST vdr-plugin-audiorecorder-2.0.0_rc5.tar.gz 45421 SHA256 7399c8c8a6639f03e133c9b2643c0b3abec9f309db0eb5361efff9561d6836f3 SHA512 07d9fe7b3e33d30c49b9aa152f56c6969b99eccc53796994399367489c561cbc7ecebb41ca1036173dd09b21d0dc41f323ef56de8bc607c939cc458386623a63 WHIRLPOOL 4db0ac19f992b6214cdf22e4d756026f4f25b0d9d87abc859a80be68eda1de5399ab38418c3116238781da20131f6253f14e4e6787df911376fb70dd44647432

View File

@@ -1,9 +0,0 @@
# /etc/conf.d/vdr.audiorecorder
# ################################################
#
# Directory to save the recorded and splited mp3s in
# allowed values: directory names
# default: /var/vdr/audiorecorder
#AUDIORECORDER_DIR=/var/vdr/audiorecorder

View File

@@ -1,12 +0,0 @@
#
# rc-addon-script for plugin audiorecorder
#
# Matthias Schwarzott <zzam@gentoo.org>
: ${AUDIORECORDER_DIR:=/var/vdr/audiorecorder}
plugin_pre_vdr_start() {
add_plugin_param "--recdir=${AUDIORECORDER_DIR}"
add_plugin_param "--debug=0"
}

View File

@@ -1,16 +0,0 @@
https://bugs.gentoo.org/show_bug.cgi?id=443248
Index: audiorecorder-0.1.0-pre14/audiorecorder.c
===================================================================
--- audiorecorder-0.1.0-pre14.orig/audiorecorder.c
+++ audiorecorder-0.1.0-pre14/audiorecorder.c
@@ -176,7 +176,9 @@ bool cPluginAudiorecorder::Initialize(vo
bool cPluginAudiorecorder::Start(void)
{
/* initialize libavcodec */
+#if LIBAVCODEC_VERSION_MAJOR < 54
avcodec_init();
+#endif
avcodec_register_all();
probe_audio_codecs();

View File

@@ -1,58 +0,0 @@
diff -urN audiorecorder-0.1.0-pre14.old/convert.c audiorecorder-0.1.0-pre14/convert.c
--- audiorecorder-0.1.0-pre14.old/convert.c 2013-06-17 21:31:31.670412829 +0200
+++ audiorecorder-0.1.0-pre14/convert.c 2013-06-17 21:35:18.387404763 +0200
@@ -51,8 +51,8 @@
return;
}
- decoder_ctx = avcodec_alloc_context();
- decoder_open = avcodec_open(decoder_ctx, decoder_codec);
+ decoder_ctx = avcodec_alloc_context3(NULL);
+ decoder_open = avcodec_open2(decoder_ctx, decoder_codec, 0);
if (decoder_open < 0) {
dsyslog("[audiorecorder]: could not open codec mp2 (%s, "
@@ -77,13 +77,13 @@
return;
}
- encoder_ctx = avcodec_alloc_context();
+ encoder_ctx = avcodec_alloc_context3(NULL);
encoder_ctx->bit_rate = bit_rate;
encoder_ctx->sample_rate = sample_rate;
encoder_ctx->channels = channels;
- encoder_open = avcodec_open(encoder_ctx, encoder_codec);
+ encoder_open = avcodec_open2(encoder_ctx, encoder_codec, 0);
if (encoder_open < 0) {
dsyslog("[audiorecorder]: could not open codec %s (%s, %s())", codec, __FILE__, __func__);
@@ -111,9 +111,13 @@
avcodec_decode_audio(decoder_ctx, (short *)decoder_buf.data,
&decoder_buf.length, mpa_frame->data, mpa_frame->length);
#else
+ AVPacket avpkt;
+ av_init_packet(&avpkt);
+ avpkt.data = mpa_frame->data;
+ avpkt.size = mpa_frame->length;
decoder_buf.length = AVCODEC_MAX_AUDIO_FRAME_SIZE;
- avcodec_decode_audio2(decoder_ctx, (short *)decoder_buf.data,
- &decoder_buf.length, mpa_frame->data, mpa_frame->length);
+ int len = avcodec_decode_audio3(decoder_ctx, (short *)decoder_buf.data,
+ &decoder_buf.length, &avpkt);
#endif
}
diff -urN audiorecorder-0.1.0-pre14.old/convert.h audiorecorder-0.1.0-pre14/convert.h
--- audiorecorder-0.1.0-pre14.old/convert.h 2013-06-17 21:31:31.670412829 +0200
+++ audiorecorder-0.1.0-pre14/convert.h 2013-06-17 21:41:17.056392003 +0200
@@ -10,7 +10,8 @@
#include "a-tools.h"
extern "C" {
#include <libavcodec/avcodec.h>
+#include <libavutil/mem.h>
}

View File

@@ -1,132 +0,0 @@
unbundle source included tinyxml, use now shared libs from dev-libs/tinyxml
bugs.gentoo.org #349507
Joerg bornkessel <hd_brummy@g.o> 2010 Dec 28
diff -Naur audiorecorder-0.1.0-pre14.orig/Makefile audiorecorder-0.1.0-pre14/Makefile
--- audiorecorder-0.1.0-pre14.orig/Makefile 2010-12-28 16:10:30.000000000 +0100
+++ audiorecorder-0.1.0-pre14/Makefile 2010-12-28 16:25:52.000000000 +0100
@@ -46,6 +46,8 @@
LIBS = $(shell taglib-config --libs)
+LIBS += -ltinyxml
+
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DTIXML_USE_STL
ifdef AUDIORECORDER_DEVEL
@@ -68,7 +70,7 @@
### The object files (add further files here):
-OBJS = $(PLUGIN).o mainmenu.o browse.o browse-item.o column.o dispatcher.o audioreceiver.o postdata.o trackinfo.o postproc.o rds.o convert.o cache.o xml-cache.o xml-base.o setup.o mpa-frame.o tinyxml/tinyxml.o tinyxml/tinyxmlerror.o tinyxml/tinyxmlparser.o audiorecorder_i18n.o
+OBJS = $(PLUGIN).o mainmenu.o browse.o browse-item.o column.o dispatcher.o audioreceiver.o postdata.o trackinfo.o postproc.o rds.o convert.o cache.o xml-cache.o xml-base.o setup.o mpa-frame.o audiorecorder_i18n.o
### Implicit rules:
diff -Naur audiorecorder-0.1.0-pre14.orig/xml-base.c audiorecorder-0.1.0-pre14/xml-base.c
--- audiorecorder-0.1.0-pre14.orig/xml-base.c 2010-12-28 16:10:30.000000000 +0100
+++ audiorecorder-0.1.0-pre14/xml-base.c 2010-12-28 16:38:29.000000000 +0100
@@ -10,7 +10,7 @@
using namespace std;
-using namespace a_land;
+/*using namespace a_land; */
/* --- cXmlBase ------------------------------------------------------------- */
diff -Naur audiorecorder-0.1.0-pre14.orig/xml-base.h audiorecorder-0.1.0-pre14/xml-base.h
--- audiorecorder-0.1.0-pre14.orig/xml-base.h 2010-12-28 16:10:30.000000000 +0100
+++ audiorecorder-0.1.0-pre14/xml-base.h 2010-12-28 16:39:35.000000000 +0100
@@ -5,7 +5,7 @@
#ifndef __XML_BASE_H
#define __XML_BASE_H
-#include "tinyxml/tinyxml.h"
+#include <tinyxml.h>
#include <string>
@@ -13,8 +14,8 @@
private:
std::string path, root_element;
- a_land::TiXmlDocument *document;
- a_land::TiXmlElement *root;
+ TiXmlDocument *document;
+ TiXmlElement *root;
protected:
virtual ~cXmlBase();
@@ -25,11 +26,11 @@
bool load(const std::string &_path);
void clear(void);
- void add_subelement(a_land::TiXmlElement &main_element,
+ void add_subelement(TiXmlElement &main_element,
const char *name, const std::string &text);
- a_land::TiXmlDocument *get_document(void) { return document; }
- a_land::TiXmlElement *get_root(void) { return root; }
+ TiXmlDocument *get_document(void) { return document; }
+ TiXmlElement *get_root(void) { return root; }
void set_root(void);
};
diff -Naur audiorecorder-0.1.0-pre14.orig/xml-cache.c audiorecorder-0.1.0-pre14/xml-cache.c
--- audiorecorder-0.1.0-pre14.orig/xml-cache.c 2010-12-28 16:10:30.000000000 +0100
+++ audiorecorder-0.1.0-pre14/xml-cache.c 2010-12-28 16:41:27.000000000 +0100
@@ -19,7 +19,7 @@
using namespace std;
-using namespace a_land;
+/*using namespace a_land; */
/* --- cXmlCache ------------------------------------------------------------ */
@@ -111,7 +111,7 @@
trackinfo.get_title().empty())
return;
- a_land::TiXmlElement track("track");
+ TiXmlElement track("track");
track.SetAttribute("path", trackinfo.get_partial_path());
track.SetAttribute("date", trackinfo.get_date());
track.SetAttribute("time", trackinfo.get_time());
@@ -146,7 +146,7 @@
void cXmlCache::copy_to_objects(void)
{
- a_land::TiXmlElement *xml_track = get_root()->FirstChildElement("track");
+ TiXmlElement *xml_track = get_root()->FirstChildElement("track");
while (xml_track) {
cTrackInfo trackinfo;
@@ -155,7 +155,7 @@
if (path.empty()) {
/* remove deleted files from the xml-cache */
- a_land::TiXmlElement *tmp = xml_track;
+ TiXmlElement *tmp = xml_track;
xml_track = xml_track->NextSiblingElement("track");
get_root()->RemoveChild(tmp);
@@ -169,7 +169,7 @@
if (access(path.c_str(), F_OK) == -1) {
dsyslog("[audiorecorder]: copy %s : (%s, %s())", path.c_str(), __FILE__, __func__);
/* remove deleted files from the xml-cache */
- a_land::TiXmlElement *tmp = xml_track;
+ TiXmlElement *tmp = xml_track;
xml_track = xml_track->NextSiblingElement("track");
get_root()->RemoveChild(tmp);
@@ -181,7 +181,7 @@
if (xml_track->Attribute("time"))
trackinfo.set_time(xml_track->Attribute("time"));
- for (a_land::TiXmlElement *element = xml_track->FirstChildElement();
+ for (TiXmlElement *element = xml_track->FirstChildElement();
element; element = element->NextSiblingElement()) {
if (element->FirstChild() == NULL)
continue;

View File

@@ -1,30 +0,0 @@
diff -Naur audiorecorder-0.1.0-pre14.orig/audioreceiver.c audiorecorder-0.1.0-pre14/audioreceiver.c
--- audiorecorder-0.1.0-pre14.orig/audioreceiver.c 2014-04-19 11:16:11.038099054 +0200
+++ audiorecorder-0.1.0-pre14/audioreceiver.c 2014-04-19 11:20:39.847541064 +0200
@@ -9,9 +9,12 @@
/* --- cAudioReceiver ------------------------------------------------------- */
-cAudioReceiver::cAudioReceiver(const cChannel *_channel)
-:cReceiver(_channel->GetChannelID(), -2, _channel->Apid(0)), cThread()
+cAudioReceiver::cAudioReceiver(const cChannel* _channel)
+:cReceiver(_channel, -2), cThread("audiorecorder-receiver")
{
+ SetPids(NULL);
+ AddPid(_channel->Apid(0));
+
channel = _channel;
active = false;
diff -Naur audiorecorder-0.1.0-pre14.orig/audioreceiver.h audiorecorder-0.1.0-pre14/audioreceiver.h
--- audiorecorder-0.1.0-pre14.orig/audioreceiver.h 2014-04-19 11:16:10.982099587 +0200
+++ audiorecorder-0.1.0-pre14/audioreceiver.h 2014-04-19 11:21:18.453173527 +0200
@@ -44,7 +44,7 @@
virtual void Action(void);
virtual void Activate(bool on);
public:
- cAudioReceiver(const cChannel *_channel);
+ cAudioReceiver(const cChannel* _channel);
~cAudioReceiver();
void set_device_number(int _device_number) { device_number =

View File

@@ -1,28 +0,0 @@
fixed for obsolet i18n handling, up from vdr-1.7.27
vdr-plugin-2.eclass will not help in this case
signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> (2012/07/01)
diff -Naur audiorecorder-0.1.0-pre14.orig/audiorecorder_i18n.h audiorecorder-0.1.0-pre14/audiorecorder_i18n.h
--- audiorecorder-0.1.0-pre14.orig/audiorecorder_i18n.h 2012-07-01 12:49:17.000000000 +0200
+++ audiorecorder-0.1.0-pre14/audiorecorder_i18n.h 2012-07-01 12:49:59.000000000 +0200
@@ -11,6 +11,6 @@
#include <vdr/i18n.h>
-extern const tI18nPhrase Phrases[];
+//extern const tI18nPhrase Phrases[];
#endif //__I18N__H
diff -Naur audiorecorder-0.1.0-pre14.orig/Makefile audiorecorder-0.1.0-pre14/Makefile
--- audiorecorder-0.1.0-pre14.orig/Makefile 2012-07-01 12:49:17.000000000 +0200
+++ audiorecorder-0.1.0-pre14/Makefile 2012-07-01 12:49:44.000000000 +0200
@@ -70,7 +70,7 @@
### The object files (add further files here):
-OBJS = $(PLUGIN).o mainmenu.o browse.o browse-item.o column.o dispatcher.o audioreceiver.o postdata.o trackinfo.o postproc.o rds.o convert.o cache.o xml-cache.o xml-base.o setup.o mpa-frame.o audiorecorder_
+OBJS = $(PLUGIN).o mainmenu.o browse.o browse-item.o column.o dispatcher.o audioreceiver.o postdata.o trackinfo.o postproc.o rds.o convert.o cache.o xml-cache.o xml-base.o setup.o mpa-frame.o
### Implicit rules:

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>vdr@gentoo.org</email>
<name>Gentoo VDR Project</name>
</maintainer>
<longdescription lang="en">
</longdescription>
</pkgmetadata>

View File

@@ -1,51 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit vdr-plugin-2 flag-o-matic
MY_P=${P/_pre/-pre}
DESCRIPTION="VDR plugin: automatically record radio-channels and split it into tracks according to RadioText-Info"
HOMEPAGE="http://www.a-land.de/audiorecorder/"
SRC_URI="http://www.zulu-entertainment.de/files/${PN}/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
S=${WORKDIR}/${MY_P#vdr-}
DEPEND=">=media-video/vdr-1.6.0
media-libs/taglib
virtual/ffmpeg[encode,mp3]
>=dev-libs/tinyxml-2.6.1[stl]"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${P}-shared-tinyxml.diff"
vdr-plugin-2_src_prepare
sed -i "s:include <avcodec.h>:include <libavcodec/avcodec.h>:" convert.h audiorecorder.c
sed -i "s:RegisterI18n:// RegisterI18n:" audiorecorder.c
# UINT64_C is needed by ffmpeg headers
append-cxxflags -D__STDC_CONSTANT_MACROS
epatch "${FILESDIR}/${P}_obsolete-i18n.diff"
epatch "${FILESDIR}/${P}-ffmpeg-1.patch"
epatch "${FILESDIR}/${P}-libav9.patch"
}
src_install() {
vdr-plugin-2_src_install
keepdir /var/vdr/audiorecorder
chown -R vdr:vdr "${D}"/var/vdr
insinto /etc/vdr/plugins/audiorecorder
doins "${S}"/contrib/audiorecorder.conf
}

View File

@@ -1,55 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit vdr-plugin-2
MY_P=${P/_pre/-pre}
DESCRIPTION="VDR plugin: automatically record radio-channels and split it into tracks according to RadioText-Info"
HOMEPAGE="http://www.a-land.de/audiorecorder/"
SRC_URI="http://www.zulu-entertainment.de/files/${PN}/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
S=${WORKDIR}/${MY_P#vdr-}
DEPEND=">=media-video/vdr-1.6.0
media-libs/taglib
virtual/ffmpeg[encode,mp3]
>=dev-libs/tinyxml-2.6.1[stl]"
RDEPEND="${DEPEND}"
src_prepare() {
# remove untranslated po files
rm "${S}"/po/{ca_ES,cs_CZ,da_DK,el_GR,es_ES,et_EE,fi_FI,fr_FR,hr_HR,hu_HU,it_IT,nl_NL,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po
epatch "${FILESDIR}/${P}-shared-tinyxml.diff"
vdr-plugin-2_src_prepare
sed -i "s:include <avcodec.h>:include <libavcodec/avcodec.h>:" convert.h audiorecorder.c
sed -i "s:RegisterI18n:// RegisterI18n:" audiorecorder.c
# UINT64_C is needed by ffmpeg headers
append-cxxflags -D__STDC_CONSTANT_MACROS
epatch "${FILESDIR}/${P}_obsolete-i18n.diff"
epatch "${FILESDIR}/${P}-ffmpeg-1.patch"
epatch "${FILESDIR}/${P}-libav9.patch"
epatch "${FILESDIR}/${P}_compilefix.diff"
}
src_install() {
vdr-plugin-2_src_install
keepdir /var/vdr/audiorecorder
chown -R vdr:vdr "${D}"/var/vdr
insinto /etc/vdr/plugins/audiorecorder
doins "${S}"/contrib/audiorecorder.conf
}

View File

@@ -1,35 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit vdr-plugin-2
VERSION="1748" # every bump, new version
DESCRIPTION="VDR plugin: automatically record radio-channels and split it into tracks according to RadioText-Info"
HOMEPAGE="http://projects.vdr-developer.org/projects/plg-audiorecorder/"
SRC_URI="mirror://vdr-developerorg/${VERSION}/vdr-plugin-audiorecorder-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/vdr-plugin-audiorecorder-${PV}"
DEPEND=">=media-video/vdr-2
media-libs/taglib
virtual/ffmpeg[encode,mp3]
>=dev-libs/tinyxml-2.6.1[stl]"
RDEPEND="${DEPEND}"
src_install() {
vdr-plugin-2_src_install
keepdir /var/vdr/audiorecorder
chown -R vdr:vdr "${D}"/var/vdr
insinto /etc/vdr/plugins/audiorecorder
doins "${S}"/contrib/audiorecorder.conf
}

View File

@@ -1,35 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit vdr-plugin-2
VERSION="1818" # every bump, new version
DESCRIPTION="VDR plugin: automatically record radio-channels and split it into tracks according to RadioText-Info"
HOMEPAGE="http://projects.vdr-developer.org/projects/plg-audiorecorder/"
SRC_URI="mirror://vdr-developerorg/${VERSION}/vdr-plugin-audiorecorder-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/vdr-plugin-audiorecorder-${PV}"
DEPEND=">=media-video/vdr-2
media-libs/taglib
virtual/ffmpeg[encode,mp3]
>=dev-libs/tinyxml-2.6.1[stl]"
RDEPEND="${DEPEND}"
src_install() {
vdr-plugin-2_src_install
keepdir /var/vdr/audiorecorder
chown -R vdr:vdr "${D}"/var/vdr
insinto /etc/vdr/plugins/audiorecorder
doins "${S}"/contrib/audiorecorder.conf
}

View File

@@ -366,13 +366,6 @@ dev-libs/dee
# Removal in 30 days. Bug #603282.
www-plugins/pipelight
# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
# (on behalf of Treecleaner project)
# Does not support ffmpeg-3. Maintainer is unable to solve that,
# and nobody seems to be interested.
# Removal in 30 days. Bug #575138.
media-plugins/vdr-audiorecorder
# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
# (on behalf of Treecleaner project)
# Unmaintained in Gentoo. Multiple bugs, including a security