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-plugins/vdr-burn
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-plugins/vdr-burn')
-rw-r--r--media-plugins/vdr-burn/Manifest1
-rw-r--r--media-plugins/vdr-burn/files/confd27
-rw-r--r--media-plugins/vdr-burn/files/rc-addon.sh32
-rw-r--r--media-plugins/vdr-burn/files/vdr-burn-0.2.2-missing-include-for-function-setpriority.patch13
-rw-r--r--media-plugins/vdr-burn/files/vdr-burn-0.2.2-r1_gentoo-path.diff48
-rw-r--r--media-plugins/vdr-burn/files/vdr-burn-0.2.2_gentoo-path.diff47
-rw-r--r--media-plugins/vdr-burn/files/vdr-burn-0.2.2_makefile.diff15
-rw-r--r--media-plugins/vdr-burn/files/vdr-burn-0.2.2_setdefaults.diff32
-rw-r--r--media-plugins/vdr-burn/metadata.xml13
-rw-r--r--media-plugins/vdr-burn/vdr-burn-0.2.2-r1.ebuild117
10 files changed, 345 insertions, 0 deletions
diff --git a/media-plugins/vdr-burn/Manifest b/media-plugins/vdr-burn/Manifest
new file mode 100644
index 000000000000..5c256a7529c5
--- /dev/null
+++ b/media-plugins/vdr-burn/Manifest
@@ -0,0 +1 @@
+DIST vdr-burn-0.2.2.tgz 253570 SHA256 212a9bbf4b6a0974666a2cc095a076cae033153e5154f7e29fc09d06483d4bd3 SHA512 06e490ff238f35122c2bcb7b2d98500a183409c8e855748609fa43dab661cd4ef5bf492cd17ccf5c7b9b26373cb994b3e35dd20edafccfa8bf186318c8fcc346 WHIRLPOOL 28f11e8a24053f08e5fccd39199d47ff682ce44dd7ebfd01db344abd5d7f4b06a7fe76b36e29a7109629e778e0766cc51770d90263dc1526b5dca9518d615c6f
diff --git a/media-plugins/vdr-burn/files/confd b/media-plugins/vdr-burn/files/confd
new file mode 100644
index 000000000000..eab0feee0d1a
--- /dev/null
+++ b/media-plugins/vdr-burn/files/confd
@@ -0,0 +1,27 @@
+# Global config file for vdr burn plugin
+# $Id$
+
+############## Global config for vdr-burn #########################
+#
+# Restart of VDR is needed after some changes
+
+# Set way to your DVD Writer Drive
+# allowed values: directory names
+# default: /dev/dvd
+#
+#BURN_DVDWRITER="/dev/dvd"
+
+# Set your tmp DIR where the files will be converted
+# ! >= 10 Gb free Disc Space needed
+# allowed values: directory names
+# default: /var/vdr/video
+#
+#BURN_DATADIR="/var/vdr/video"
+
+# Way to your not burned iso files
+# allowed values: directory names
+# default: /var/vdr/video/dvd-images
+#
+#BURN_ISODIR="/var/vdr/video/dvd-images"
+
+
diff --git a/media-plugins/vdr-burn/files/rc-addon.sh b/media-plugins/vdr-burn/files/rc-addon.sh
new file mode 100644
index 000000000000..904a69925084
--- /dev/null
+++ b/media-plugins/vdr-burn/files/rc-addon.sh
@@ -0,0 +1,32 @@
+# $Id$
+#
+# rc-addon-script for plugin burn
+#
+# Joerg Bornkessel hd_brummy@gentoo.org
+
+. /etc/conf.d/vdr.burn
+
+: ${BURN_TMPDIR:=/tmp}
+: ${BURN_DATADIR:=/var/vdr/video}
+: ${BURN_DVDWRITER:=/dev/dvd}
+: ${BURN_ISODIR:=/var/vdr/video/dvd-images}
+
+# be shure BURN_ISODIR is available!
+make_isodir() {
+ if [ ! -e "${BURN_ISODIR}" ]; then
+ mkdir "${BURN_ISODIR}"
+ touch "${BURN_ISODIR}"/.keep.rc-burn
+ chown -R vdr:vdr "${BURN_ISODIR}"
+ fi
+}
+
+make_isodir
+
+plugin_pre_vdr_start() {
+
+ add_plugin_param "-t ${BURN_TMPDIR}"
+ add_plugin_param "-d ${BURN_DATADIR}"
+ add_plugin_param "-D ${BURN_DVDWRITER}"
+ add_plugin_param "-i ${BURN_ISODIR}"
+}
+
diff --git a/media-plugins/vdr-burn/files/vdr-burn-0.2.2-missing-include-for-function-setpriority.patch b/media-plugins/vdr-burn/files/vdr-burn-0.2.2-missing-include-for-function-setpriority.patch
new file mode 100644
index 000000000000..466c5672311c
--- /dev/null
+++ b/media-plugins/vdr-burn/files/vdr-burn-0.2.2-missing-include-for-function-setpriority.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/425596
+
+--- proctools/process.cc
++++ proctools/process.cc
+@@ -8,6 +8,8 @@
+ #include <cerrno>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++#include <sys/time.h>
++#include <sys/resource.h>
+ #include <unistd.h>
+
+ namespace proctools
diff --git a/media-plugins/vdr-burn/files/vdr-burn-0.2.2-r1_gentoo-path.diff b/media-plugins/vdr-burn/files/vdr-burn-0.2.2-r1_gentoo-path.diff
new file mode 100644
index 000000000000..cf1ab4ab628d
--- /dev/null
+++ b/media-plugins/vdr-burn/files/vdr-burn-0.2.2-r1_gentoo-path.diff
@@ -0,0 +1,48 @@
+some path adaption to gentoo vdr
+use corefonts instead of ttf-bitstream-vera, #335782
+
+Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> (1 Mar 2015)
+diff -Naur burn-0.2.0.orig/burn.c burn-0.2.0/burn.c
+--- burn-0.2.0.orig/burn.c 2012-02-12 19:46:51.000000000 +0100
++++ burn-0.2.0/burn.c 2012-02-12 19:49:21.000000000 +0100
+@@ -96,11 +96,11 @@
+
+ bool plugin::Start()
+ {
+- m_configPath = ConfigDirectory(PLUGIN_NAME);
++ m_configPath = "/usr/share/vdr/burn";
+
+ manager::start();
+ logger_vdr::start();
+- gdwrapper::setup::set_font_path( m_configPath + "/fonts" );
++ gdwrapper::setup::set_font_path( "/usr/share/fonts/corefonts" );
+ if ( !skin_list::get().load( get_config_path() ) )
+ return false;
+
+diff -Naur burn-0.2.0.orig/vdrburn-dvd.sh burn-0.2.0/vdrburn-dvd.sh
+--- burn-0.2.0.orig/vdrburn-dvd.sh 2012-02-12 19:46:51.000000000 +0100
++++ burn-0.2.0/vdrburn-dvd.sh 2012-02-12 19:52:22.000000000 +0100
+@@ -92,9 +92,8 @@
+ CUT="-cut $MPEG_DATA_PATH/px.cut"
+ fi
+
+- $IO_NICE $JAVA_EXE -Djava.awt.headless=true \
+- -jar $PROJECTX_JAR \
+- -ini $CONFIG_PATH/ProjectX.ini \
++ /usr/bin/projectx_cli \
++ -ini /usr/share/vdr/burn/projectx-vdr.ini \
+ $TTXT_OPTS \
+ $CUT -id $USED_TRACKS \
+ -demux -out "$MPEG_DATA_PATH" -name vdrsync \
+diff -Naur burn-0.2.0.orig/vdrburn-dvd.sh burn-0.2.0/vdrburn-dvd.sh
+--- burn-0.2.0.orig/vdrburn-dvd.sh 2012-02-15 21:58:34.000000000 +0100
++++ burn-0.2.0/vdrburn-dvd.sh 2012-02-15 22:00:47.000000000 +0100
+@@ -78,7 +78,7 @@
+ ;;
+
+ demux)
+- [ -r $CONFIG_PATH/vdrburn-dvd.conf ] && . $CONFIG_PATH/vdrburn-dvd.conf
++ PROJECTX_JAR="/usr/share/projectx/lib/projectx.jar"
+ [ -z "$JAVA_EXE" ] && JAVA_EXE=$(which java)
+
+ [ ! -x "$JAVA_EXE" ] && echo "ERROR: java executable \"$JAVA_EXE\" not found" && exit 1
diff --git a/media-plugins/vdr-burn/files/vdr-burn-0.2.2_gentoo-path.diff b/media-plugins/vdr-burn/files/vdr-burn-0.2.2_gentoo-path.diff
new file mode 100644
index 000000000000..e087b8b64caa
--- /dev/null
+++ b/media-plugins/vdr-burn/files/vdr-burn-0.2.2_gentoo-path.diff
@@ -0,0 +1,47 @@
+some path adaption to gentoo vdr
+
+Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> (15 Feb 2011)
+diff -Naur burn-0.2.0.orig/burn.c burn-0.2.0/burn.c
+--- burn-0.2.0.orig/burn.c 2012-02-12 19:46:51.000000000 +0100
++++ burn-0.2.0/burn.c 2012-02-12 19:49:21.000000000 +0100
+@@ -96,11 +96,11 @@
+
+ bool plugin::Start()
+ {
+- m_configPath = ConfigDirectory(PLUGIN_NAME);
++ m_configPath = "/usr/share/vdr/burn";
+
+ manager::start();
+ logger_vdr::start();
+- gdwrapper::setup::set_font_path( m_configPath + "/fonts" );
++ gdwrapper::setup::set_font_path( "/usr/share/fonts/ttf-bitstream-vera" );
+ if ( !skin_list::get().load( get_config_path() ) )
+ return false;
+
+diff -Naur burn-0.2.0.orig/vdrburn-dvd.sh burn-0.2.0/vdrburn-dvd.sh
+--- burn-0.2.0.orig/vdrburn-dvd.sh 2012-02-12 19:46:51.000000000 +0100
++++ burn-0.2.0/vdrburn-dvd.sh 2012-02-12 19:52:22.000000000 +0100
+@@ -92,9 +92,8 @@
+ CUT="-cut $MPEG_DATA_PATH/px.cut"
+ fi
+
+- $IO_NICE $JAVA_EXE -Djava.awt.headless=true \
+- -jar $PROJECTX_JAR \
+- -ini $CONFIG_PATH/ProjectX.ini \
++ /usr/bin/projectx_cli \
++ -ini /usr/share/vdr/burn/projectx-vdr.ini \
+ $TTXT_OPTS \
+ $CUT -id $USED_TRACKS \
+ -demux -out "$MPEG_DATA_PATH" -name vdrsync \
+diff -Naur burn-0.2.0.orig/vdrburn-dvd.sh burn-0.2.0/vdrburn-dvd.sh
+--- burn-0.2.0.orig/vdrburn-dvd.sh 2012-02-15 21:58:34.000000000 +0100
++++ burn-0.2.0/vdrburn-dvd.sh 2012-02-15 22:00:47.000000000 +0100
+@@ -78,7 +78,7 @@
+ ;;
+
+ demux)
+- [ -r $CONFIG_PATH/vdrburn-dvd.conf ] && . $CONFIG_PATH/vdrburn-dvd.conf
++ PROJECTX_JAR="/usr/share/projectx/lib/projectx.jar"
+ [ -z "$JAVA_EXE" ] && JAVA_EXE=$(which java)
+
+ [ ! -x "$JAVA_EXE" ] && echo "ERROR: java executable \"$JAVA_EXE\" not found" && exit 1
diff --git a/media-plugins/vdr-burn/files/vdr-burn-0.2.2_makefile.diff b/media-plugins/vdr-burn/files/vdr-burn-0.2.2_makefile.diff
new file mode 100644
index 000000000000..837321ef6874
--- /dev/null
+++ b/media-plugins/vdr-burn/files/vdr-burn-0.2.2_makefile.diff
@@ -0,0 +1,15 @@
+Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> (12 Feb 2012)
+
+diff -Naur burn-0.2.0.orig/Makefile burn-0.2.0/Makefile
+--- burn-0.2.0.orig/Makefile 2012-02-12 20:21:08.000000000 +0100
++++ burn-0.2.0/Makefile 2012-02-12 20:24:33.000000000 +0100
+@@ -9,6 +9,9 @@
+ #
+ PLUGIN = burn
+
++# Enable DMH Archive
++#ENABLE_DMH_ARCHIVE = 1
++
+ ### The version number of this plugin (taken from the main source file):
+
+ VERSION = $(shell grep 'const char\* plugin::VERSION *=' $(PLUGIN).c | awk '{ print $$5 }' | sed -e 's/[";]//g')
diff --git a/media-plugins/vdr-burn/files/vdr-burn-0.2.2_setdefaults.diff b/media-plugins/vdr-burn/files/vdr-burn-0.2.2_setdefaults.diff
new file mode 100644
index 000000000000..676b11a9ceb4
--- /dev/null
+++ b/media-plugins/vdr-burn/files/vdr-burn-0.2.2_setdefaults.diff
@@ -0,0 +1,32 @@
+set default settings
+unset gentoo unsupportede packages (m2vrequantizer)
+disable unneeded menuentrys
+
+Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> (12 Feb 2012)
+diff -Naur burn-0.2.0.orig/setup.c burn-0.2.0/setup.c
+--- burn-0.2.0.orig/setup.c 2012-02-12 20:14:01.000000000 +0100
++++ burn-0.2.0/setup.c 2012-02-12 20:18:10.000000000 +0100
+@@ -88,10 +88,10 @@
+ //!--- plugin_setup -----------------------------------------------------------
+
+ plugin_setup::plugin_setup():
+- PROCTOOLS_INIT_PROPERTY( RemovePath, false ),
++ PROCTOOLS_INIT_PROPERTY( RemovePath, true ),
+ PROCTOOLS_INIT_PROPERTY( CustomDiskSize, 200 ),
+ PROCTOOLS_INIT_PROPERTY( BurnSpeed, 0 ),
+- PROCTOOLS_INIT_PROPERTY( RequantType, requanttype_metakine ),
++ PROCTOOLS_INIT_PROPERTY( RequantType, requanttype_transcode ),
+ PROCTOOLS_INIT_PROPERTY( PreserveLogFiles, false ),
+ PROCTOOLS_INIT_PROPERTY( DefaultLanguage, 0 ),
+ PROCTOOLS_INIT_PROPERTY( MainMenuStatus, true ),
+@@ -226,8 +226,8 @@
+ m_defaults = job_defaults();
+
+ Add( new menu::text_item( tr("--- Common settings --------------------------------------------------") ) );
+- Add( new menu::bool_edit_item( tr("Remove path component"), m_setup.RemovePath ) );
+- Add( new menu::list_edit_item( tr("Requant using"), m_setup.RequantType, requanttype_strings ) );
++// Add( new menu::bool_edit_item( tr("Remove path component"), m_setup.RemovePath ) );
++// Add( new menu::list_edit_item( tr("Requant using"), m_setup.RequantType, requanttype_strings ) );
+ Add( new menu::number_edit_item( tr("Burn speed"), m_setup.BurnSpeed, 0, 32, tr("unlimited") ) );
+ Add( new menu::bool_edit_item( tr("Preserve logfiles"), m_setup.PreserveLogFiles ) );
+ Add( new menu::list_edit_item( tr("Spare language code"), m_setup.DefaultLanguage, track_info::get_language_codes(), false ) );
diff --git a/media-plugins/vdr-burn/metadata.xml b/media-plugins/vdr-burn/metadata.xml
new file mode 100644
index 000000000000..073e3273a77c
--- /dev/null
+++ b/media-plugins/vdr-burn/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+ <maintainer>
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <longdescription>VDR plugin to burn DVD's and DVD file structures</longdescription>
+ <use>
+ <flag name='dvdarchive'>DMH DVD - Archive</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-plugins/vdr-burn/vdr-burn-0.2.2-r1.ebuild b/media-plugins/vdr-burn/vdr-burn-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..119668612864
--- /dev/null
+++ b/media-plugins/vdr-burn/vdr-burn-0.2.2-r1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit vdr-plugin-2
+
+VERSION="1252" # every bump, new version!
+
+DESCRIPTION="VDR Plugin: burn records on DVD"
+HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-burn"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="dvdarchive"
+
+DEPEND=">=media-video/vdr-1.7.36-r1
+ media-libs/gd[png,truetype,jpeg]"
+RDEPEND="${DEPEND}
+ >=dev-libs/libcdio-0.71
+ >=media-video/dvdauthor-0.6.14
+ >=media-video/mjpegtools-1.6.2[png]
+ media-video/transcode
+ media-fonts/corefonts
+ virtual/eject
+ >=app-cdr/dvd+rw-tools-5.21
+ >=media-video/projectx-0.90.4.00_p32
+ dvdarchive? ( media-video/vdrtools-genindex )"
+
+# depends that are not rdepend
+DEPEND="${DEPEND}
+ >=dev-libs/boost-1.32.0"
+
+S="${WORKDIR}/${P#vdr-}"
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ epatch \
+ "${FILESDIR}"/${P}-r1_gentoo-path.diff \
+ "${FILESDIR}"/${P}_setdefaults.diff \
+ "${FILESDIR}"/${P}_makefile.diff \
+ "${FILESDIR}"/${P}-missing-include-for-function-setpriority.patch
+
+ use dvdarchive && sed -i Makefile \
+ -e "s:#ENABLE_DMH_ARCHIVE:ENABLE_DMH_ARCHIVE:"
+
+ sed -i Makefile \
+ -e 's:^ISODIR=.*$:ISODIR=/var/vdr/video/dvd-images:'
+
+ sed -i Makefile -e 's:DEFINES += -DTTXT_SUBTITLES:#DEFINES += -DTTXT_SUBTITLES:'
+
+ if has_version ">=media-video/vdr-2.1.2"; then
+ sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \
+ -i jobs.c
+ fi
+
+ # ttf-bitstream-vera deprecated, bug #335782
+ sed -e "s:Vera:arial:" -i skins.c
+
+ fix_vdr_libsi_include scanner.c
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ dobin "${S}"/*.sh
+
+ insinto /usr/share/vdr/burn
+ doins "${S}"/burn/menu-silence.mp2
+ newins "${S}"/burn/menu-button.png menu-button-default.png
+ newins "${S}"/burn/menu-bg.png menu-bg-default.png
+ dosym menu-bg-default.png /usr/share/vdr/burn/menu-bg.png
+ dosym menu-button-default.png /usr/share/vdr/burn/menu-button.png
+
+ newins "${S}"/burn/ProjectX.ini projectx-vdr.ini
+
+ fowners -R vdr:vdr /usr/share/vdr/burn
+
+ (
+ diropts -ovdr -gvdr
+ keepdir /usr/share/vdr/burn/counters
+ )
+}
+
+pkg_preinst() {
+ if [[ -d ${ROOT}/etc/vdr/plugins/burn && ( ! -L ${ROOT}/etc/vdr/plugins/burn ) ]]; then
+ einfo "Moving /etc/vdr/plugins/burn away"
+ mv "${ROOT}"/etc/vdr/plugins/burn "${ROOT}"/etc/vdr/plugins/burn_old
+ fi
+}
+
+pkg_postinst() {
+
+ local DMH_FILE="${ROOT}/usr/share/vdr/burn/counters/standard"
+ if [[ ! -e "${DMH_FILE}" ]]; then
+ echo 0001 > "${DMH_FILE}"
+ chown vdr:vdr "${DMH_FILE}"
+ fi
+
+ vdr-plugin-2_pkg_postinst
+
+ einfo
+ einfo "This ebuild comes only with the standard template"
+ einfo "'emerge vdr-burn-templates' for more templates"
+ einfo "To change the templates, use the vdr-image plugin"
+
+ if [[ -e ${ROOT}/etc/vdr/reccmds/reccmds.burn.conf ]]; then
+ eerror
+ eerror "Please remove the following unneeded file:"
+ eerror "\t/etc/vdr/reccmds/reccmds.burn.conf"
+ eerror
+ fi
+}