summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2008-02-10 21:18:08 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2008-02-10 21:18:08 +0000
commit3089583433d8d524d737012d3386640d622393ef (patch)
tree2aa0833940d2dd99b9bd206795e8f2a59b82bf7a /media-video/vdr
parentx86 stable, bug #209000 (diff)
downloadgentoo-2-3089583433d8d524d737012d3386640d622393ef.tar.gz
gentoo-2-3089583433d8d524d737012d3386640d622393ef.tar.bz2
gentoo-2-3089583433d8d524d737012d3386640d622393ef.zip
vdr-1.4.7-r10 stabel on x86; cleanup old versions
(Portage version: 2.1.3.19)
Diffstat (limited to 'media-video/vdr')
-rw-r--r--media-video/vdr/ChangeLog12
-rw-r--r--media-video/vdr/files/extensions-patch-32-plugin-link-error.diff21
-rw-r--r--media-video/vdr/files/vdr-1.2.6-gentoo.diff59
-rw-r--r--media-video/vdr/files/vdr-1.2.6_CAN-2005-0071.patch25
-rw-r--r--media-video/vdr/vdr-1.2.6-r1.ebuild46
-rw-r--r--media-video/vdr/vdr-1.3.36-r3.ebuild214
-rw-r--r--media-video/vdr/vdr-1.4.1-r2.ebuild271
-rw-r--r--media-video/vdr/vdr-1.4.3.ebuild273
-rw-r--r--media-video/vdr/vdr-1.4.4.ebuild203
-rw-r--r--media-video/vdr/vdr-1.4.4_p3.ebuild215
-rw-r--r--media-video/vdr/vdr-1.4.5.ebuild215
-rw-r--r--media-video/vdr/vdr-1.4.7-r10.ebuild8
-rw-r--r--media-video/vdr/vdr-1.4.7-r4.ebuild354
-rw-r--r--media-video/vdr/vdr-1.4.7-r5.ebuild350
-rw-r--r--media-video/vdr/vdr-1.4.7-r6.ebuild351
-rw-r--r--media-video/vdr/vdr-1.4.7-r7.ebuild353
-rw-r--r--media-video/vdr/vdr-1.4.7-r8.ebuild349
-rw-r--r--media-video/vdr/vdr-1.4.7-r9.ebuild354
18 files changed, 16 insertions, 3657 deletions
diff --git a/media-video/vdr/ChangeLog b/media-video/vdr/ChangeLog
index 7b9c71787aa6..cb50fe15a2f9 100644
--- a/media-video/vdr/ChangeLog
+++ b/media-video/vdr/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for media-video/vdr
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.102 2008/02/10 18:34:15 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.103 2008/02/10 21:18:08 hd_brummy Exp $
+
+ 10 Feb 2008; Joerg Bornkessel <hd_brummy@gentoo.org>
+ -files/vdr-1.2.6-gentoo.diff, -files/vdr-1.2.6_CAN-2005-0071.patch,
+ -files/extensions-patch-32-plugin-link-error.diff, -vdr-1.2.6-r1.ebuild,
+ -vdr-1.3.36-r3.ebuild, -vdr-1.4.1-r2.ebuild, -vdr-1.4.3.ebuild,
+ -vdr-1.4.4.ebuild, -vdr-1.4.4_p3.ebuild, -vdr-1.4.5.ebuild,
+ -vdr-1.4.7-r4.ebuild, -vdr-1.4.7-r5.ebuild, -vdr-1.4.7-r6.ebuild,
+ -vdr-1.4.7-r7.ebuild, -vdr-1.4.7-r8.ebuild, -vdr-1.4.7-r9.ebuild,
+ vdr-1.4.7-r10.ebuild:
+ vdr-1.4.7-r10 stabel on x86; cleanup old versions
10 Feb 2008; Joerg Bornkessel <hd_brummy@gentoo.org> vdr-1.4.7-r10.ebuild:
added test for multiple menu manipulation ; bug 201601
diff --git a/media-video/vdr/files/extensions-patch-32-plugin-link-error.diff b/media-video/vdr/files/extensions-patch-32-plugin-link-error.diff
deleted file mode 100644
index ff3a021881d2..000000000000
--- a/media-video/vdr/files/extensions-patch-32-plugin-link-error.diff
+++ /dev/null
@@ -1,21 +0,0 @@
---- vdr-1.4.7_extensions.diff 2007-06-24 12:12:15.000000000 +0200
-+++ vdr-1.4.7_extensions-linking.diff 2007-07-05 12:51:06.000000000 +0200
-@@ -7987,6 +7987,18 @@
- dlls.Add(new cDll(buffer, Args));
- free(buffer);
- free(s);
-+@@ -328,7 +336,11 @@ bool cPluginManager::LoadPlugins(bool Lo
-+ {
-+ for (cDll *dll = dlls.First(); dll; dll = dlls.Next(dll)) {
-+ if (!dll->Load(Log))
-++#ifdef USE_PLUGINMISSING
-++ ;
-++#else
-+ return false;
-++#endif /* PLUGINMISSING */
-+ }
-+ return true;
-+ }
- diff -ruN vdr-1.4.7/rcontroller.c vdr-1.4.7-extensions/rcontroller.c
- --- vdr-1.4.7/rcontroller.c 1970-01-01 01:00:00.000000000 +0100
- +++ vdr-1.4.7-extensions/rcontroller.c 2007-06-24 12:25:13.000000000 +0200
diff --git a/media-video/vdr/files/vdr-1.2.6-gentoo.diff b/media-video/vdr/files/vdr-1.2.6-gentoo.diff
deleted file mode 100644
index a5462331e97d..000000000000
--- a/media-video/vdr/files/vdr-1.2.6-gentoo.diff
+++ /dev/null
@@ -1,59 +0,0 @@
-diff -uprN vdr-1.2.6.orig/config.h vdr-1.2.6/config.h
---- vdr-1.2.6.orig/config.h 2005-03-19 18:34:22.799245568 +0100
-+++ vdr-1.2.6/config.h 2005-03-19 18:34:27.120588624 +0100
-@@ -137,7 +137,7 @@ public:
- bool Save(void)
- {
- bool result = true;
-- T *l = (T *)First();
-+ T *l = (T *)cList<T>::First();
- cSafeFile f(fileName);
- if (f.Open()) {
- while (l) {
-diff -uprN vdr-1.2.6.orig/Makefile vdr-1.2.6/Makefile
---- vdr-1.2.6.orig/Makefile 2005-03-19 18:34:22.796246024 +0100
-+++ vdr-1.2.6/Makefile 2005-03-19 18:52:32.140640504 +0100
-@@ -16,8 +16,8 @@ CXXFLAGS ?= -g -O2 -Wall -Woverloaded-vi
-
- DVBDIR = ../DVB
- DTVDIR = ./libdtv
--MANDIR = /usr/local/man
--BINDIR = /usr/local/bin
-+MANDIR = /usr/man
-+BINDIR = /usr/bin
-
- PLUGINDIR= ./PLUGINS
- PLUGINLIBDIR= $(PLUGINDIR)/lib
-@@ -121,12 +121,15 @@ plugins-clean:
- # Install the files:
-
- install:
-- @cp vdr runvdr $(BINDIR)
-- @gzip -c vdr.1 > $(MANDIR)/man1/vdr.1.gz
-- @gzip -c vdr.5 > $(MANDIR)/man5/vdr.5.gz
-+ @mkdir -p $(DESTDIR)$(BINDIR)
-+ @cp vdr runvdr $(DESTDIR)$(BINDIR)
-+ @mkdir -p $(DESTDIR)$(MANDIR)/man1
-+ @mkdir -p $(DESTDIR)$(MANDIR)/man5
-+ @gzip -c vdr.1 > $(DESTDIR)$(MANDIR)/man1/vdr.1.gz
-+ @gzip -c vdr.5 > $(DESTDIR)$(MANDIR)/man5/vdr.5.gz
- @if [ ! -d $(VIDEODIR) ]; then\
-- mkdir $(VIDEODIR);\
-- cp *.conf $(VIDEODIR);\
-+ mkdir -p $(DESTDIR)$(VIDEODIR);\
-+ cp *.conf $(DESTDIR)$(VIDEODIR);\
- fi
-
- # Source documentation:
-diff -uprN vdr-1.2.6.orig/plugin.c vdr-1.2.6/plugin.c
---- vdr-1.2.6.orig/plugin.c 2005-03-19 18:34:22.810243896 +0100
-+++ vdr-1.2.6/plugin.c 2005-03-19 18:34:27.120588624 +0100
-@@ -162,7 +162,7 @@ bool cDll::Load(bool Log)
- const char *error = dlerror();
- if (!error) {
- void *(*creator)(void);
-- (void *)creator = dlsym(handle, "VDRPluginCreator");
-+ creator = (void *(*)())dlsym(handle, "VDRPluginCreator");
- if (!(error = dlerror()))
- plugin = (cPlugin *)creator();
- }
diff --git a/media-video/vdr/files/vdr-1.2.6_CAN-2005-0071.patch b/media-video/vdr/files/vdr-1.2.6_CAN-2005-0071.patch
deleted file mode 100644
index d9d573383e63..000000000000
--- a/media-video/vdr/files/vdr-1.2.6_CAN-2005-0071.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- vdr-1.2.6/dvbdevice.c.orig 2005-01-24 14:33:57.478927267 +0100
-+++ vdr-1.2.6/dvbdevice.c 2005-01-24 14:37:04.732811047 +0100
-@@ -505,8 +505,10 @@
- Quality = 255; //XXX is this 'best'???
-
- isyslog("grabbing to %s (%s %d %d %d)", FileName, Jpeg ? "JPEG" : "PNM", Quality, vm.width, vm.height);
-- FILE *f = fopen(FileName, "wb");
-- if (f) {
-+ int fd = open(FileName, O_CREAT | O_EXCL | O_TRUNC | O_RDWR, 0600);
-+ if (fd > -1) {
-+ FILE *f = fdopen(fd, "wb");
-+ if (f) {
- if (Jpeg) {
- // write JPEG file:
- struct jpeg_compress_struct cinfo;
-@@ -540,7 +542,8 @@
- }
- }
- fclose(f);
-- }
-+ }
-+ }
- else {
- LOG_ERROR_STR(FileName);
- result |= 1;
diff --git a/media-video/vdr/vdr-1.2.6-r1.ebuild b/media-video/vdr/vdr-1.2.6-r1.ebuild
deleted file mode 100644
index fcfebea0d892..000000000000
--- a/media-video/vdr/vdr-1.2.6-r1.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.2.6-r1.ebuild,v 1.7 2007/11/27 11:50:06 zzam Exp $
-
-inherit eutils check-kernel
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/people/kls/vdr"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ~ppc ~amd64"
-IUSE="lirc"
-
-DEPEND="sys-libs/ncurses
- lirc? ( app-misc/lirc )
- media-libs/jpeg
- media-tv/linuxtv-dvb-headers"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-gentoo.diff"
- epatch "${FILESDIR}/${P}_CAN-2005-0071.patch"
-}
-
-src_compile() {
- local myconf="VIDEODIR=/etc/vdr"
- use lirc && myconf="${myconf} REMOTE=LIRC"
- emake ${myconf} || die "make failed"
-}
-
-src_install() {
- make VIDEODIR=/etc/vdr DESTDIR="${D}" install || die "install failed"
- dodoc INSTALL README MANUAL CONTRIBUTORS HISTORY
- dohtml PLUGINS.html
- dodir /usr/share/doc/${PF}/scripts
- insinto /usr/share/doc/${PF}/scripts
- doins "${S}"/epg2html.pl "${S}"/runvdr "${S}"/svdrpsend.pl
-
- # install header files
- dodir /usr/include/vdr
- insinto /usr/include/vdr
- doins *.h
-}
diff --git a/media-video/vdr/vdr-1.3.36-r3.ebuild b/media-video/vdr/vdr-1.3.36-r3.ebuild
deleted file mode 100644
index 5e095d010310..000000000000
--- a/media-video/vdr/vdr-1.3.36-r3.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.3.36-r3.ebuild,v 1.12 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils
-
-IUSE="aio bigpatch jumpplay lnbsharing sourcecaps yaepg setup-plugin subtitles"
-
-PATCHSET_V=0.2
-PATCHSET_NAME=${P}-gentoo-patchset-${PATCHSET_V}
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/Developer/${P}.tar.bz2
- mirror://gentoo/${PATCHSET_NAME}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.2.2"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup-plugin? ( media-plugins/vdr-setup )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-VDR_INCLUDE_DIR=/usr/include/vdr
-PLUGIN_LIB_DIR=/usr/lib/vdr/plugins
-CONF_DIR=/etc/vdr
-RC_DIR=/usr/lib/vdr/rcscript
-CAP_FILE=${S}/vdr-capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-# works like use to check for active (and not active !abc) useflags
-# if more than one flag is given it returns that all flags are active
-#
-# "use_multi_and a b !c !d"
-# ==
-# "use a && use b && use !c && use !d"
-#
-use_multi_and() {
- while [[ -n ${1} ]]; do
- use ${1} || return 1
-
- shift
- done
- return 0
-}
-
-# reads the line GENTOO_USE out of the beginning of the patch
-# example: GENTOO_USE: aio !bigpatch
-# and checks weather the useflags are set appropriate (via use_multi_and)
-# if check returns true the patch is applied
-#
-apply_vdr_patch() {
- local APPLY=1
- local p="${1}"
- debug-print "PATCH:"
- debug-print " $(basename ${p})"
- local V1
- local V2
- while read V1 V2; do
- case ${V1} in
- GENTOO_USE:)
- APPLY=0
- if use_multi_and ${V2}; then
- APPLY=1
- break
- fi
- ;;
- +++|---|diff|@@)
- break;
- ;;
- *)
- ;;
- esac
- done < "${p}"
- [[ ${APPLY} == 0 ]] && return
- debug-print " --> applied"
- epatch "${p}"
-}
-
-# call apply_vdr_patch for all patchfiles in given directory
-
-apply_vdr_patchset() {
- local p
- for p in ${1}/*.{diff,patch}; do
- [[ -f "${p}" ]] || continue
- apply_vdr_patch "${p}"
- done
-}
-
-src_unpack() {
- unpack ${A}
- if [[ -n "${VDR_LOCAL_PATCHSET}" && -d "${VDR_LOCAL_PATCHSET}" ]]; then
- PATCHSET_DIR="${VDR_LOCAL_PATCHSET}"
- else
- PATCHSET_DIR=${WORKDIR}/${PATCHSET_NAME}
- fi
-
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
- sed -e 's-$(DVBDIR)/include-$(DVBDIR)-' -i Makefile
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFIGDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIB_DIR}
- CONFIGDIR = ${CONF_DIR}
-
- DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
- EOT
- eend 0
-
- apply_vdr_patchset ${PATCHSET_DIR}
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- echo
- elog "Applying local patches"
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PV}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_SHUTDOWN_SVDRP
-
- echo -e ${CAPS} > "${CAP_FILE}"
-}
-
-src_install() {
- exeinto /usr/bin
- doexe vdr
- doexe svdrpsend.pl
-
- insinto ${VDR_INCLUDE_DIR}
- doins *.h
- doins Make.config
-
- insinto ${VDR_INCLUDE_DIR}/libsi
- doins libsi/*.h
-
- keepdir ${CONF_DIR}/plugins
-
- insinto ${CONF_DIR}
- doins *.conf channels.conf.*
-
- chown -R vdr:vdr "${D}"/${CONF_DIR}
- keepdir "${PLUGIN_LIB_DIR}"
-
- doman vdr.1 vdr.5
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- insinto ${RC_DIR}
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- elog "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup-plugin; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.1-r2.ebuild b/media-video/vdr/vdr-1.4.1-r2.ebuild
deleted file mode 100644
index b8497910bce4..000000000000
--- a/media-video/vdr/vdr-1.4.1-r2.ebuild
+++ /dev/null
@@ -1,271 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.1-r2.ebuild,v 1.12 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE="debug vanilla aio bigpatch jumpplay dolby-record-switch dvbplayer
- lnbsharing sourcecaps cmdsubmenu dxr3-audio-denoise
- child-protection yaepg setup-plugin submenu subtitles rotor"
-
-PATCHSET_V=2
-PATCHSET_NAME=gentoo-${PN}-patchset-${PV}-${PATCHSET_V}
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- !vanilla? ( mirror://gentoo/${PATCHSET_NAME}.tar.bz2
- http://dev.gentoo.org/~zzam/distfiles/${PATCHSET_NAME}.tar.bz2 )"
-
-KEYWORDS="~amd64 ~ppc x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- !vanilla? ( >=media-tv/gentoo-vdr-scripts-0.3.5 )"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup-plugin? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-VDR_INCLUDE_DIR=/usr/include/vdr
-PLUGIN_LIB_DIR=/usr/$(get_libdir)/vdr/plugins
-CONF_DIR=/etc/vdr
-CAP_FILE=${S}/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
-}
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-# works like use to check for active (and not active !abc) useflags
-# if more than one flag is given it returns that all flags are active
-#
-# "use_multi_and a b !c !d"
-# ==
-# "use a && use b && use !c && use !d"
-#
-use_multi_and() {
- while [[ -n ${1} ]]; do
- use ${1} || return 1
-
- shift
- done
- return 0
-}
-
-# reads the line GENTOO_USE out of the beginning of the patch
-# example: GENTOO_USE: aio !bigpatch
-# and checks weather the useflags are set appropriate (via use_multi_and)
-# if check returns true the patch is applied
-#
-apply_vdr_patch() {
- local APPLY=0
- local COUNT_USE=0
- local CAP=""
- local p="${1}"
- debug-print "PATCH:"
- debug-print " $(basename ${p})"
- local V1
- local V2
- while read V1 V2; do
- case ${V1} in
- GENTOO_USE:)
- : $((COUNT_USE++))
- if use_multi_and ${V2}; then
- APPLY=1
- fi
- ;;
- GENTOO_CAP:)
- CAP="${V2}"
- ;;
- +++|---|diff|@@)
- break;
- ;;
- *)
- ;;
- esac
- done < "${p}"
- if [[ ${COUNT_USE} -eq 0 ]]; then
- APPLY=1
- fi
- [[ ${APPLY} == 0 ]] && return
- debug-print " --> applied"
- epatch "${p}"
- [[ -n "${CAP}" ]] && add_cap ${CAP}
-}
-
-# call apply_vdr_patch for all patchfiles in given directory
-
-apply_vdr_patchset() {
- local p
- for p in ${1}/*.{diff,patch}; do
- [[ -f "${p}" ]] || continue
- apply_vdr_patch "${p}"
- done
-}
-
-src_unpack() {
- unpack ${P}.tar.bz2
- if ! use vanilla; then
- if [[ -n "${VDR_LOCAL_PATCHSET}" && -d "${VDR_LOCAL_PATCHSET}" ]]; then
- ewarn "Using local developer patchset."
- PATCHSET_DIR="${VDR_LOCAL_PATCHSET}"
- else
- unpack ${PATCHSET_NAME}.tar.bz2
- PATCHSET_DIR=${WORKDIR}/${PATCHSET_NAME}
- fi
- fi
-
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
- sed -e 's-$(DVBDIR)/include-$(DVBDIR)-' -i Makefile
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFIGDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIB_DIR}
- CONFIGDIR = ${CONF_DIR}
-
- DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
- EOT
- eend 0
-
- if use vanilla; then
- ewarn "OK - You are on your own now!"
- ewarn "no gentoo-patches will be applied!"
- else
- apply_vdr_patchset ${PATCHSET_DIR}
-
- if use setup-plugin && use submenu; then
- ewarn "Did not apply submenu-patch, can not be used at the same time as setup-plugin-patch."
- fi
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- echo
- elog "Applying local patches"
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PV}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_SHUTDOWN_SVDRP \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- exeinto /usr/bin
- doexe vdr
- doexe svdrpsend.pl
-
- insinto ${VDR_INCLUDE_DIR}
- doins *.h
- doins Make.config
-
- insinto ${VDR_INCLUDE_DIR}/libsi
- doins libsi/*.h
-
- keepdir ${CONF_DIR}/plugins
- keepdir ${CONF_DIR}/themes
-
- insinto ${CONF_DIR}
- doins *.conf channels.conf.*
-
- keepdir "${PLUGIN_LIB_DIR}"
-
- doman vdr.1 vdr.5
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- elog "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup-plugin; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
- chown -R vdr:vdr "${D}"/${CONF_DIR}
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup-plugin; then
- echo
- eerror "It is very important to emerge media-plugins/vdr-setup now"
- eerror "and to have it activated in /etc/conf.d/vdr.plugins"
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file=${ROOT}/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.3.ebuild b/media-video/vdr/vdr-1.4.3.ebuild
deleted file mode 100644
index d23c35b97047..000000000000
--- a/media-video/vdr/vdr-1.4.3.ebuild
+++ /dev/null
@@ -1,273 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.3.ebuild,v 1.11 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE="debug vanilla aio bigpatch jumpplay dolby-record-switch dvbplayer
- lnbsharing sourcecaps cmdsubmenu dxr3-audio-denoise
- child-protection yaepg setup-plugin submenu subtitles rotor"
-
-PATCHSET_V=1
-PATCHSET_NAME=gentoo-${PN}-patchset-${PV}-${PATCHSET_V}
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- !vanilla? ( mirror://gentoo/${PATCHSET_NAME}.tar.bz2
- http://dev.gentoo.org/~zzam/distfiles/${PATCHSET_NAME}.tar.bz2 )"
-
-KEYWORDS="~amd64 ~ppc x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- !vanilla? (
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5
- )"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup-plugin? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-VDR_INCLUDE_DIR=/usr/include/vdr
-PLUGIN_LIB_DIR=/usr/$(get_libdir)/vdr/plugins
-CONF_DIR=/etc/vdr
-CAP_FILE=${S}/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
-}
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-# works like use to check for active (and not active !abc) useflags
-# if more than one flag is given it returns that all flags are active
-#
-# "use_multi_and a b !c !d"
-# ==
-# "use a && use b && use !c && use !d"
-#
-use_multi_and() {
- while [[ -n ${1} ]]; do
- use ${1} || return 1
-
- shift
- done
- return 0
-}
-
-# reads the line GENTOO_USE out of the beginning of the patch
-# example: GENTOO_USE: aio !bigpatch
-# and checks weather the useflags are set appropriate (via use_multi_and)
-# if check returns true the patch is applied
-#
-apply_vdr_patch() {
- local APPLY=0
- local COUNT_USE=0
- local CAP=""
- local p="${1}"
- debug-print "PATCH:"
- debug-print " $(basename ${p})"
- local V1
- local V2
- while read V1 V2; do
- case ${V1} in
- GENTOO_USE:)
- : $((COUNT_USE++))
- if use_multi_and ${V2}; then
- APPLY=1
- fi
- ;;
- GENTOO_CAP:)
- CAP="${V2}"
- ;;
- +++|---|diff|@@)
- break;
- ;;
- *)
- ;;
- esac
- done < "${p}"
- if [[ ${COUNT_USE} -eq 0 ]]; then
- APPLY=1
- fi
- [[ ${APPLY} == 0 ]] && return
- debug-print " --> applied"
- epatch "${p}"
- [[ -n "${CAP}" ]] && add_cap ${CAP}
-}
-
-# call apply_vdr_patch for all patchfiles in given directory
-
-apply_vdr_patchset() {
- local p
- for p in ${1}/*.{diff,patch}; do
- [[ -f "${p}" ]] || continue
- apply_vdr_patch "${p}"
- done
-}
-
-src_unpack() {
- unpack ${P}.tar.bz2
- if ! use vanilla; then
- if [[ -n "${VDR_LOCAL_PATCHSET}" && -d "${VDR_LOCAL_PATCHSET}" ]]; then
- ewarn "Using local developer patchset."
- PATCHSET_DIR="${VDR_LOCAL_PATCHSET}"
- else
- unpack ${PATCHSET_NAME}.tar.bz2
- PATCHSET_DIR=${WORKDIR}/${PATCHSET_NAME}
- fi
- fi
-
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
- sed -e 's-$(DVBDIR)/include-$(DVBDIR)-' -i Makefile
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFIGDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIB_DIR}
- CONFIGDIR = ${CONF_DIR}
-
- DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
- EOT
- eend 0
-
- if use vanilla; then
- ewarn "OK - You are on your own now!"
- ewarn "no gentoo-patches will be applied!"
- else
- apply_vdr_patchset ${PATCHSET_DIR}
-
- if use setup-plugin && use submenu; then
- ewarn "Did not apply submenu-patch, can not be used at the same time as setup-plugin-patch."
- fi
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- echo
- elog "Applying local patches"
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PV}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_SHUTDOWN_SVDRP \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- exeinto /usr/bin
- doexe vdr
- doexe svdrpsend.pl
-
- insinto ${VDR_INCLUDE_DIR}
- doins *.h
- doins Make.config
-
- insinto ${VDR_INCLUDE_DIR}/libsi
- doins libsi/*.h
-
- keepdir ${CONF_DIR}/plugins
- keepdir ${CONF_DIR}/themes
-
- insinto ${CONF_DIR}
- doins *.conf channels.conf.*
-
- keepdir "${PLUGIN_LIB_DIR}"
-
- doman vdr.1 vdr.5
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- elog "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup-plugin; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
- chown -R vdr:vdr "${D}"/${CONF_DIR}
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup-plugin; then
- echo
- eerror "It is very important to emerge media-plugins/vdr-setup now"
- eerror "and to have it activated in /etc/conf.d/vdr.plugins"
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file=${ROOT}/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.4.ebuild b/media-video/vdr/vdr-1.4.4.ebuild
deleted file mode 100644
index 5ec5d2a91733..000000000000
--- a/media-video/vdr/vdr-1.4.4.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.4.ebuild,v 1.11 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE="debug vanilla aio bigpatch jumpplay dolby-record-switch dvbplayer
- lnbsharing sourcecaps cmdsubmenu dxr3-audio-denoise
- child-protection yaepg setup-plugin submenu subtitles rotor noepg"
-
-PATCHSET_V=1
-PATCHSET_NAME=gentoo-${PN}-patchset-${PV}-${PATCHSET_V}
-
-MY_P="${P%_p*}"
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${MY_P}.tar.bz2
- mirror://gentoo/${PATCHSET_NAME}.tar.bz2
- http://dev.gentoo.org/~zzam/distfiles/${PATCHSET_NAME}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup-plugin? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-VDR_INCLUDE_DIR=/usr/include/vdr
-PLUGIN_LIB_DIR=/usr/$(get_libdir)/vdr/plugins
-CONF_DIR=/etc/vdr
-CAP_FILE=${S}/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
-}
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- if [[ -n "${VDR_LOCAL_PATCHSET}" && -d "${VDR_LOCAL_PATCHSET}" ]]; then
- ewarn "Using local developer patchset."
- PATCHSET_DIR="${VDR_LOCAL_PATCHSET}"
- else
- unpack ${PATCHSET_NAME}.tar.bz2
- PATCHSET_DIR=${WORKDIR}/${PATCHSET_NAME}
- fi
-
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
- sed -e 's-$(DVBDIR)/include-$(DVBDIR)-' -i Makefile
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFIGDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIB_DIR}
- CONFIGDIR = ${CONF_DIR}
-
- DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
- EOT
- eend 0
-
- source ${PATCHSET_DIR}/apply_patchset.sh
- apply_vdr_patchset "${PATCHSET_DIR}"
-
- if use !vanilla; then
- if use setup-plugin && use submenu; then
- ewarn "Did not apply submenu-patch, can not be used at the same time as setup-plugin-patch."
- fi
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- echo
- elog "Applying local patches"
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PV}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_SHUTDOWN_SVDRP \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- exeinto /usr/bin
- doexe vdr
- doexe svdrpsend.pl
-
- insinto ${VDR_INCLUDE_DIR}
- doins *.h
- doins Make.config
-
- insinto ${VDR_INCLUDE_DIR}/libsi
- doins libsi/*.h
-
- keepdir ${CONF_DIR}/plugins
- keepdir ${CONF_DIR}/themes
-
- insinto ${CONF_DIR}
- doins *.conf channels.conf.*
-
- keepdir "${PLUGIN_LIB_DIR}"
-
- doman vdr.1 vdr.5
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- elog "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup-plugin; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
- chown -R vdr:vdr "${D}"/${CONF_DIR}
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup-plugin; then
- echo
- eerror "It is very important to emerge media-plugins/vdr-setup now"
- eerror "and to have it activated in /etc/conf.d/vdr.plugins"
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file=${ROOT}/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.4_p3.ebuild b/media-video/vdr/vdr-1.4.4_p3.ebuild
deleted file mode 100644
index cb901fe261a8..000000000000
--- a/media-video/vdr/vdr-1.4.4_p3.ebuild
+++ /dev/null
@@ -1,215 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.4_p3.ebuild,v 1.10 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE="debug vanilla aio bigpatch jumpplay dolby-record-switch dvbplayer
- lnbsharing sourcecaps cmdsubmenu dxr3-audio-denoise
- child-protection yaepg setup-plugin submenu subtitles rotor noepg"
-
-PATCHSET_V=1
-PATCHSET_NAME=gentoo-${PN}-patchset-${PV}-${PATCHSET_V}
-
-MY_P="${P%_p*}"
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${MY_P}.tar.bz2
- mirror://gentoo/${PATCHSET_NAME}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup-plugin? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-VDR_INCLUDE_DIR=/usr/include/vdr
-PLUGIN_LIB_DIR=/usr/$(get_libdir)/vdr/plugins
-CONF_DIR=/etc/vdr
-CAP_FILE=${S}/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
-}
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- if [[ -n "${VDR_LOCAL_PATCHSET}" && -d "${VDR_LOCAL_PATCHSET}" ]]; then
- ewarn "Using local developer patchset."
- PATCHSET_DIR="${VDR_LOCAL_PATCHSET}"
- else
- unpack ${PATCHSET_NAME}.tar.bz2
- PATCHSET_DIR=${WORKDIR}/${PATCHSET_NAME}
- fi
-
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
- sed -e 's-$(DVBDIR)/include-$(DVBDIR)-' -i Makefile
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFIGDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIB_DIR}
- CONFIGDIR = ${CONF_DIR}
-
- DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
- EOT
- eend 0
-
- source ${PATCHSET_DIR}/apply_patchset.sh
- apply_vdr_patchset "${PATCHSET_DIR}"
-
- if use !vanilla; then
- if use setup-plugin && use submenu; then
- ewarn "Did not apply submenu-patch, can not be used at the same time as setup-plugin-patch."
- fi
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- elog
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- elog "Applying local patches"
- else
- elog "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_SHUTDOWN_SVDRP \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- exeinto /usr/bin
- doexe vdr
- doexe svdrpsend.pl
-
- insinto ${VDR_INCLUDE_DIR}
- doins *.h
- doins Make.config
-
- insinto ${VDR_INCLUDE_DIR}/libsi
- doins libsi/*.h
-
- keepdir ${CONF_DIR}/plugins
- keepdir ${CONF_DIR}/themes
-
- insinto ${CONF_DIR}
- doins *.conf channels.conf.*
-
- keepdir "${PLUGIN_LIB_DIR}"
-
- doman vdr.1 vdr.5
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- elog "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup-plugin; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
- chown -R vdr:vdr "${D}"/${CONF_DIR}
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup-plugin; then
- echo
- eerror "It is very important to emerge media-plugins/vdr-setup now"
- eerror "and to have it activated in /etc/conf.d/vdr.plugins"
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file=${ROOT}/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.5.ebuild b/media-video/vdr/vdr-1.4.5.ebuild
deleted file mode 100644
index f21a149c28ee..000000000000
--- a/media-video/vdr/vdr-1.4.5.ebuild
+++ /dev/null
@@ -1,215 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.5.ebuild,v 1.10 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE="debug vanilla aio bigpatch jumpplay dolby-record-switch dvbplayer
- lnbsharing sourcecaps cmdsubmenu dxr3-audio-denoise
- child-protection yaepg setup-plugin submenu subtitles rotor noepg"
-
-PATCHSET_V=1
-PATCHSET_NAME=gentoo-${PN}-patchset-${PV}-${PATCHSET_V}
-
-MY_P="${P%_p*}"
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${MY_P}.tar.bz2
- mirror://gentoo/${PATCHSET_NAME}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup-plugin? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-VDR_INCLUDE_DIR=/usr/include/vdr
-PLUGIN_LIB_DIR=/usr/$(get_libdir)/vdr/plugins
-CONF_DIR=/etc/vdr
-CAP_FILE=${S}/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
-}
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- if [[ -n "${VDR_LOCAL_PATCHSET}" && -d "${VDR_LOCAL_PATCHSET}" ]]; then
- ewarn "Using local developer patchset."
- PATCHSET_DIR="${VDR_LOCAL_PATCHSET}"
- else
- unpack ${PATCHSET_NAME}.tar.bz2
- PATCHSET_DIR=${WORKDIR}/${PATCHSET_NAME}
- fi
-
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
- sed -e 's-$(DVBDIR)/include-$(DVBDIR)-' -i Makefile
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFIGDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIB_DIR}
- CONFIGDIR = ${CONF_DIR}
-
- DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
- EOT
- eend 0
-
- source ${PATCHSET_DIR}/apply_patchset.sh
- apply_vdr_patchset "${PATCHSET_DIR}"
-
- if use !vanilla; then
- if use setup-plugin && use submenu; then
- ewarn "Did not apply submenu-patch, can not be used at the same time as setup-plugin-patch."
- fi
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- elog
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- elog "Applying local patches"
- else
- elog "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_SHUTDOWN_SVDRP \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- exeinto /usr/bin
- doexe vdr
- doexe svdrpsend.pl
-
- insinto ${VDR_INCLUDE_DIR}
- doins *.h
- doins Make.config
-
- insinto ${VDR_INCLUDE_DIR}/libsi
- doins libsi/*.h
-
- keepdir ${CONF_DIR}/plugins
- keepdir ${CONF_DIR}/themes
-
- insinto ${CONF_DIR}
- doins *.conf channels.conf.*
-
- keepdir "${PLUGIN_LIB_DIR}"
-
- doman vdr.1 vdr.5
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- elog "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup-plugin; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
- chown -R vdr:vdr "${D}"/${CONF_DIR}
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup-plugin; then
- echo
- eerror "It is very important to emerge media-plugins/vdr-setup now"
- eerror "and to have it activated in /etc/conf.d/vdr.plugins"
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file=${ROOT}/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.7-r10.ebuild b/media-video/vdr/vdr-1.4.7-r10.ebuild
index 897198687f92..7a50e8690eac 100644
--- a/media-video/vdr/vdr-1.4.7-r10.ebuild
+++ b/media-video/vdr/vdr-1.4.7-r10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r10.ebuild,v 1.2 2008/02/10 18:34:15 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r10.ebuild,v 1.3 2008/02/10 21:18:08 hd_brummy Exp $
inherit eutils flag-o-matic multilib
@@ -27,7 +27,7 @@ SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
#http://dev.gentoo.org/~zzam/extensions-patch/${EXT_P}.tar.bz2"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
SLOT="0"
LICENSE="GPL-2"
@@ -60,13 +60,15 @@ pkg_setup() {
check_menu_flags () {
+ count=0
+
for flag in menuorg setup submenu; do
use $flag && count=$((count+1))
done
if [ $count -gt 1 ] ; then
echo
- eerror "Please use only one of this USE-Flags"
+ eerror "Please use only one of these USE-Flags"
eerror "submenu setup menuorg"
die "multiple menu manipulation"
fi
diff --git a/media-video/vdr/vdr-1.4.7-r4.ebuild b/media-video/vdr/vdr-1.4.7-r4.ebuild
deleted file mode 100644
index f5edd18e1354..000000000000
--- a/media-video/vdr/vdr-1.4.7-r4.ebuild
+++ /dev/null
@@ -1,354 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r4.ebuild,v 1.4 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
- dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft
- jumpplay liemikuutio livebuffer lnbshare mainmenuhooks noepg osdmaxitems pinplugin
- rotor settime setup sortrecords sourcecaps submenu
- subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg
- syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter"
-
-IUSE="debug vanilla ${IUSE_EXTENSIONS}"
-
-EXT_V="32"
-EXT_P=VDR-Extensions-Patch-${EXT_V}
-EXT_DIR=${WORKDIR}/${EXT_P}/
-# Set if != $PV
-#EXT_VDR_PV=1.5.3
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- http://www.zulu-entertainment.de/files/patches/${EXT_P}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap
- dev-util/unifdef"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-CONF_DIR=/etc/vdr
-CAP_FILE=${S}/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
-}
-
-add_cap() {
- while [ "$1" ]; do
- CAPS="${CAPS}\n$1=1"
- shift
- done
-}
-
-enable_patch() {
- local patch
- while [ "$1" ]; do
- patch="$1"
- echo "$patch = 1" >> Make.config
- shift
- done
-}
-
-extensions_add_make_conf()
-{
- # copy all ifdef for extensions-patch to Make.config
- sed -e '1,/need to touch the following:/d' \
- -e '/ifdef DVBDIR/,/^$/d' \
- Make.config.template >> Make.config
-}
-
-extensions_all_defines() {
- # extract all possible settings for extensions-patch
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
- Make.config.template \
- | sort \
- | tr '[:upper:]' '[:lower:]'
-}
-
-extensions_all_defines_unset() {
- # extract all possible settings for extensions-patch
- # and convert them to -U... for unifdef
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
- Make.config.template \
- | tr '\n' ' '
-}
-
-do_unifdef() {
- ebegin "Unifdef sources"
- local mf="Makefile.get"
- cat <<'EOT' > $mf
-include Makefile
-show_def:
- @echo $(DEFINES)
-show_src_files:
- @echo $(OBJS:%.o=%.c)
-EOT
-
- local DEFINES=$(extensions_all_defines_unset)
-
- local RAW_DEFINES=$(make -f "$mf" show_def)
- local VDR_SRC_FILES="$(make -f "$mf" show_src_files)"
- local KEEP_FILES="genfontfile.c $(echo font*.c)"
- rm "$mf"
-
- local def
- for def in $RAW_DEFINES; do
- case "${def}" in
- -DUSE*)
- DEFINES="${DEFINES} ${def}"
- ;;
- esac
- done
-
- local f
- for f in *.c; do
-
- # Removing the src files the Makefile does not use for compiling vdr
- if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
- rm -f ${f} ${f%.c}.h
- continue
- fi
-
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- for f in *.h; do
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- eend 0
-}
-
-src_unpack() {
-
- unpack ${A}
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- BINDIR = /usr/bin
- MANDIR = /usr/share/man
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIBDIR}
- CONFDIR = ${CONF_DIR}
- VIDEODIR = /var/vdr/video
- HEADERDIR = /usr/include
-
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
-
- EOT
- eend 0
-
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff
-
- sed -i Makefile \
- -e 's/runvdr//' \
- -e 's/ install-plugins//'
-
- if ! use vanilla; then
-
- # changes to extensions-patch to be applicable to vdr-$PV
- cd "${EXT_DIR}"
- local LOCAL_EXT_CHANGES="${FILESDIR}/extensions-patch-${EXT_V}-vdr-${PV}.diff"
- if [[ -f "${LOCAL_EXT_CHANGES}" ]]; then
- epatch "${LOCAL_EXT_CHANGES}"
- fi
- epatch "${FILESDIR}/extensions-patch-32-plugin-link-error.diff"
-
- cd "${S}"
- epatch "${EXT_DIR}/${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
- #epatch "${FILESDIR}/${P}-gentoo-hardlinkcutter.diff"
-
- epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff"
- add_cap CAP_SHUTDOWN_SVDRP
-
- epatch "${FILESDIR}/vdr-set-dumpable.diff"
-
- # This allows us to start even if some plugin does not exist
- # or is not loadable.
- enable_patch PLUGINMISSING
-
- # Patch necessary for media-plugins/vdr-reelchannelscan
- # it does not change anything when plugin is not used
- enable_patch CHANNELSCAN
-
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
- einfo "Doing maintainer checks:"
-
- # these patches we do not support
- # (or have them already hard enabled)
- local IGNORE_PATCHES="channelscan pluginapi pluginmissing"
-
- extensions_all_defines > "${T}"/new.IUSE
- echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
- if [[ -z ${DIFFS} ]]; then
- einfo "IUSE_EXTENSIONS is up to date."
- else
- ewarn "IUSE differences!"
- local diff
- for diff in $DIFFS; do
- ewarn "$diff"
- done
- fi
- fi
-
- ebegin "Enabling selected patches"
- local flag
- for flag in $IUSE_EXTENSIONS; do
- FLAG_UP=$(echo $flag|tr '[:lower:]' '[:upper:]')
- use $flag && enable_patch ${FLAG_UP}
- done
- eend 0
-
- extensions_add_make_conf
-
- ebegin "Make fonts"
- emake font >/dev/null
- eend $? "make fonts failed"
-
- ebegin "Make depend"
- emake .dependencies >/dev/null
- eend $? "make depend failed"
-
- do_unifdef
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- echo
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- einfo "Applying local patches"
- else
- einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}"
-
- keepdir ${CONF_DIR}/plugins
- keepdir ${CONF_DIR}/themes
-
- keepdir "${PLUGIN_LIBDIR}"
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
- newdoc ${EXT_DIR}/README README.extensions-patch
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- einfo "Installing sources"
- insinto "${VDRSOURCE_DIR}"/${P}
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}"/${P}/PLUGINS/lib
- fi
-
- if use setup; then
- insinto /usr/share/vdr/setup
- doins "${S}"/menu.c
- fi
- chown -R vdr:vdr "${D}"/${CONF_DIR}
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup; then
- if ! has_version media-plugins/vdr-setup || \
- ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
-
- echo
- ewarn "You have compiled media-video/vdr with USE=\"setup\""
- ewarn "It is very important to emerge media-plugins/vdr-setup now!"
- ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
- fi
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file=${ROOT}/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.7-r5.ebuild b/media-video/vdr/vdr-1.4.7-r5.ebuild
deleted file mode 100644
index 61bb88914de7..000000000000
--- a/media-video/vdr/vdr-1.4.7-r5.ebuild
+++ /dev/null
@@ -1,350 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r5.ebuild,v 1.3 2007/10/08 15:00:18 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
- dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft
- jumpplay liemikuutio livebuffer lnbshare mainmenuhooks noepg osdmaxitems pinplugin
- rotor settime setup sortrecords sourcecaps submenu
- subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg
- syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter"
-
-IUSE="debug vanilla ${IUSE_EXTENSIONS}"
-
-EXT_V="34.1"
-EXT_P=vdr-extensions-patch-"${EXT_V}"
-EXT_DIR="${WORKDIR}/${EXT_P}/"
-# Set if != $PV
-#EXT_VDR_PV=1.5.3
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- mirror://gentoo/${EXT_P}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap
- dev-util/unifdef"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-CONF_DIR=/etc/vdr
-CAP_FILE="${S}"/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
-}
-
-add_cap() {
- local arg
- for arg; do
- CAPS="${CAPS}\n${arg}=1"
- done
-}
-
-enable_patch() {
- local arg
- for arg; do
- echo "${arg} = 1" >> Make.config
- done
-}
-
-extensions_add_make_conf()
-{
- # copy all ifdef for extensions-patch to Make.config
- sed -e '1,/need to touch the following:/d' \
- -e '/ifdef DVBDIR/,/^$/d' \
- Make.config.template >> Make.config
-}
-
-extensions_all_defines() {
- # extract all possible settings for extensions-patch
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
- Make.config.template \
- | sort \
- | tr '[:upper:]' '[:lower:]'
-}
-
-extensions_all_defines_unset() {
- # extract all possible settings for extensions-patch
- # and convert them to -U... for unifdef
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
- Make.config.template \
- | tr '\n' ' '
-}
-
-do_unifdef() {
- ebegin "Unifdef sources"
- local mf="Makefile.get"
- cat <<'EOT' > $mf
-include Makefile
-show_def:
- @echo $(DEFINES)
-show_src_files:
- @echo $(OBJS:%.o=%.c)
-EOT
-
- local DEFINES=$(extensions_all_defines_unset)
-
- local RAW_DEFINES=$(make -f "$mf" show_def)
- local VDR_SRC_FILES="$(make -f "$mf" show_src_files)"
- local KEEP_FILES="genfontfile.c $(echo font*.c)"
- rm "$mf"
-
- local def
- for def in $RAW_DEFINES; do
- case "${def}" in
- -DUSE*)
- DEFINES="${DEFINES} ${def}"
- ;;
- esac
- done
-
- local f
- for f in *.c; do
-
- # Removing the src files the Makefile does not use for compiling vdr
- if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
- rm -f ${f} ${f%.c}.h
- continue
- fi
-
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- for f in *.h; do
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- eend 0
-}
-
-src_unpack() {
-
- unpack ${A}
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- BINDIR = /usr/bin
- MANDIR = /usr/share/man
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIBDIR}
- CONFDIR = ${CONF_DIR}
- VIDEODIR = /var/vdr/video
- HEADERDIR = /usr/include
-
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
-
- EOT
- eend 0
-
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff
-
- sed -i Makefile \
- -e 's/runvdr//' \
- -e 's/ install-plugins//'
-
- if ! use vanilla; then
-
- cd "${S}"
- epatch "${EXT_DIR}/${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
-
- epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff"
- add_cap CAP_SHUTDOWN_SVDRP
-
- epatch "${FILESDIR}/vdr-set-dumpable.diff"
-
- # This allows us to start even if some plugin does not exist
- # or is not loadable.
- enable_patch PLUGINMISSING
-
- # Patch necessary for media-plugins/vdr-reelchannelscan
- # it does not change anything when plugin is not used
- enable_patch CHANNELSCAN
-
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
- einfo "Doing maintainer checks:"
-
- # these patches we do not support
- # (or have them already hard enabled)
- local IGNORE_PATCHES="channelscan pluginapi pluginmissing"
-
- extensions_all_defines > "${T}"/new.IUSE
- echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
- if [[ -z ${DIFFS} ]]; then
- einfo "IUSE_EXTENSIONS is up to date."
- else
- ewarn "IUSE differences!"
- local diff
- for diff in $DIFFS; do
- ewarn "$diff"
- done
- fi
- fi
-
- ebegin "Enabling selected patches"
- local flag
- for flag in $IUSE_EXTENSIONS; do
- FLAG_UP=$(echo $flag|tr '[:lower:]' '[:upper:]')
- use $flag && enable_patch ${FLAG_UP}
- done
- eend 0
-
- extensions_add_make_conf
-
- ebegin "Make fonts"
- emake font >/dev/null
- eend $? "make fonts failed"
-
- ebegin "Make depend"
- emake .dependencies >/dev/null
- eend $? "make depend failed"
-
- do_unifdef
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- echo
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- einfo "Applying local patches"
- else
- einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}"
-
- keepdir "${CONF_DIR}"/plugins
- keepdir "${CONF_DIR}"/themes
-
- keepdir "${PLUGIN_LIBDIR}"
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY*
- dodoc TODO-enAIO-rm CONTRIBUTORS
-
- cd "${EXT_DIR}"/doc
- local f
- for f in *; do
- newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}"
- done
-
- cd "${S}"
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- einfo "Installing sources"
- insinto "${VDRSOURCE_DIR}/${P}"
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}/${P}"/PLUGINS/lib
- fi
-
- if use setup; then
- insinto /usr/share/vdr/setup
- doins "${S}/menu.c"
- fi
- chown -R vdr:vdr "${D}/${CONF_DIR}"
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now"
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup; then
- if ! has_version media-plugins/vdr-setup || \
- ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
-
- echo
- ewarn "You have compiled media-video/vdr with USE=\"setup\""
- ewarn "It is very important to emerge media-plugins/vdr-setup now!"
- ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
- fi
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file="${ROOT}"/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.7-r6.ebuild b/media-video/vdr/vdr-1.4.7-r6.ebuild
deleted file mode 100644
index 482160b5b46a..000000000000
--- a/media-video/vdr/vdr-1.4.7-r6.ebuild
+++ /dev/null
@@ -1,351 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r6.ebuild,v 1.2 2007/10/19 11:17:16 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
- dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft
- jumpplay liemikuutio livebuffer lnbshare mainmenuhooks menuorg noepg osdmaxitems pinplugin
- rotor settime setup sortrecords sourcecaps submenu
- subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg
- syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter"
-
-IUSE="debug vanilla ${IUSE_EXTENSIONS}"
-
-EXT_V="34.2"
-EXT_P=vdr-extensions-patch-"${EXT_V}"
-EXT_DIR="${WORKDIR}/${EXT_P}/"
-# Set if != $PV
-#EXT_VDR_PV=1.5.3
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- mirror://gentoo/${EXT_P}.tar.bz2
- http://dev.gentoo.org/~zzam/distfiles/${EXT_P}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap
- dev-util/unifdef"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-CONF_DIR=/etc/vdr
-CAP_FILE="${S}"/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
-}
-
-add_cap() {
- local arg
- for arg; do
- CAPS="${CAPS}\n${arg}=1"
- done
-}
-
-enable_patch() {
- local arg
- for arg; do
- echo "${arg} = 1" >> Make.config
- done
-}
-
-extensions_add_make_conf()
-{
- # copy all ifdef for extensions-patch to Make.config
- sed -e '1,/need to touch the following:/d' \
- -e '/ifdef DVBDIR/,/^$/d' \
- Make.config.template >> Make.config
-}
-
-extensions_all_defines() {
- # extract all possible settings for extensions-patch
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
- Make.config.template \
- | sort \
- | tr '[:upper:]' '[:lower:]'
-}
-
-extensions_all_defines_unset() {
- # extract all possible settings for extensions-patch
- # and convert them to -U... for unifdef
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
- Make.config.template \
- | tr '\n' ' '
-}
-
-do_unifdef() {
- ebegin "Unifdef sources"
- local mf="Makefile.get"
- cat <<'EOT' > $mf
-include Makefile
-show_def:
- @echo $(DEFINES)
-show_src_files:
- @echo $(OBJS:%.o=%.c)
-EOT
-
- local DEFINES=$(extensions_all_defines_unset)
-
- local RAW_DEFINES=$(make -f "$mf" show_def)
- local VDR_SRC_FILES="$(make -f "$mf" show_src_files)"
- local KEEP_FILES="genfontfile.c $(echo font*.c)"
- rm "$mf"
-
- local def
- for def in $RAW_DEFINES; do
- case "${def}" in
- -DUSE*)
- DEFINES="${DEFINES} ${def}"
- ;;
- esac
- done
-
- local f
- for f in *.c; do
-
- # Removing the src files the Makefile does not use for compiling vdr
- if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
- rm -f ${f} ${f%.c}.h
- continue
- fi
-
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- for f in *.h; do
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- [[ -s $f ]] || rm "$f"
- done
- eend 0
-}
-
-src_unpack() {
-
- unpack ${A}
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- BINDIR = /usr/bin
- MANDIR = /usr/share/man
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIBDIR}
- CONFDIR = ${CONF_DIR}
- VIDEODIR = /var/vdr/video
- HEADERDIR = /usr/include
-
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
-
- EOT
- eend 0
-
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff
-
- sed -i Makefile \
- -e 's/runvdr//' \
- -e 's/ install-plugins//'
-
- if ! use vanilla; then
-
- cd "${S}"
- epatch "${EXT_DIR}/${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
-
- epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff"
- add_cap CAP_SHUTDOWN_SVDRP
-
- epatch "${FILESDIR}/vdr-set-dumpable.diff"
-
- # This allows us to start even if some plugin does not exist
- # or is not loadable.
- enable_patch PLUGINMISSING
-
- # Patch necessary for media-plugins/vdr-reelchannelscan
- # it does not change anything when plugin is not used
- enable_patch CHANNELSCAN
-
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
- einfo "Doing maintainer checks:"
-
- # these patches we do not support
- # (or have them already hard enabled)
- local IGNORE_PATCHES="channelscan pluginapi pluginmissing"
-
- extensions_all_defines > "${T}"/new.IUSE
- echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
- if [[ -z ${DIFFS} ]]; then
- einfo "IUSE_EXTENSIONS is up to date."
- else
- ewarn "IUSE differences!"
- local diff
- for diff in $DIFFS; do
- ewarn "$diff"
- done
- fi
- fi
-
- ebegin "Enabling selected patches"
- local flag
- for flag in $IUSE_EXTENSIONS; do
- FLAG_UP=$(echo $flag|tr '[:lower:]' '[:upper:]')
- use $flag && enable_patch ${FLAG_UP}
- done
- eend 0
-
- extensions_add_make_conf
-
- ebegin "Make fonts"
- emake font >/dev/null
- eend $? "make fonts failed"
-
- ebegin "Make depend"
- emake .dependencies >/dev/null
- eend $? "make depend failed"
-
- do_unifdef
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- echo
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- einfo "Applying local patches"
- else
- einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}"
-
- keepdir "${CONF_DIR}"/plugins
- keepdir "${CONF_DIR}"/themes
-
- keepdir "${PLUGIN_LIBDIR}"
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY* CONTRIBUTORS
-
- cd "${EXT_DIR}"/doc
- local f
- for f in *; do
- newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}"
- done
-
- cd "${S}"
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- einfo "Installing sources"
- insinto "${VDRSOURCE_DIR}/${P}"
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}/${P}"/PLUGINS/lib
- fi
-
- if use setup; then
- insinto /usr/share/vdr/setup
- doins "${S}/menu.c"
- fi
- chown -R vdr:vdr "${D}/${CONF_DIR}"
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now."
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup; then
- if ! has_version media-plugins/vdr-setup || \
- ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
-
- echo
- ewarn "You have compiled media-video/vdr with USE=\"setup\""
- ewarn "It is very important to emerge media-plugins/vdr-setup now!"
- ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
- fi
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file="${ROOT}"/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.7-r7.ebuild b/media-video/vdr/vdr-1.4.7-r7.ebuild
deleted file mode 100644
index 8a78460812d4..000000000000
--- a/media-video/vdr/vdr-1.4.7-r7.ebuild
+++ /dev/null
@@ -1,353 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r7.ebuild,v 1.1 2007/11/11 15:46:35 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
- dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft iptv
- jumpplay liemikuutio livebuffer lnbshare mainmenuhooks menuorg noepg osdmaxitems pinplugin
- rotor settime setup sortrecords sourcecaps submenu
- subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg
- syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter"
-
-IUSE="debug vanilla ${IUSE_EXTENSIONS}"
-
-EXT_V="37.1"
-EXT_P=vdr-extensions-patch-"${EXT_V}"
-EXT_DIR="${WORKDIR}/${EXT_P}/"
-# Set if != $PV
-#EXT_VDR_PV=1.5.3
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- mirror://gentoo/${EXT_P}.tar.bz2
- http://dev.gentoo.org/~zzam/extensions-patch/${EXT_P}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap
- dev-util/unifdef"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-CONF_DIR=/etc/vdr
-CAP_FILE="${S}"/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
-}
-
-add_cap() {
- local arg
- for arg; do
- CAPS="${CAPS}\n${arg}=1"
- done
-}
-
-enable_patch() {
- local arg
- for arg; do
- echo "${arg} = 1" >> Make.config
- done
-}
-
-extensions_add_make_conf()
-{
- # copy all ifdef for extensions-patch to Make.config
- sed -e '1,/need to touch the following:/d' \
- -e '/ifdef DVBDIR/,/^$/d' \
- Make.config.template >> Make.config
-}
-
-extensions_all_defines() {
- # extract all possible settings for extensions-patch
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
- Make.config.template \
- | sort \
- | tr '[:upper:]' '[:lower:]'
-}
-
-extensions_all_defines_unset() {
- # extract all possible settings for extensions-patch
- # and convert them to -U... for unifdef
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
- Make.config.template \
- | tr '\n' ' '
-}
-
-do_unifdef() {
- ebegin "Unifdef sources"
- local mf="Makefile.get"
- cat <<'EOT' > $mf
-include Makefile
-show_def:
- @echo $(DEFINES)
-show_src_files:
- @echo $(OBJS:%.o=%.c)
-EOT
-
- local DEFINES=$(extensions_all_defines_unset)
-
- local RAW_DEFINES=$(make -f "$mf" show_def)
- local VDR_SRC_FILES="$(make -f "$mf" show_src_files)"
- local KEEP_FILES="genfontfile.c $(echo font*.c)"
- rm "$mf"
-
- local def
- for def in $RAW_DEFINES; do
- case "${def}" in
- -DUSE*)
- DEFINES="${DEFINES} ${def}"
- ;;
- esac
- done
-
- local f
- for f in *.c; do
-
- # Removing the src files the Makefile does not use for compiling vdr
- if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
- rm -f ${f} ${f%.c}.h
- continue
- fi
-
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- for f in *.h; do
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- [[ -s $f ]] || rm "$f"
- done
- eend 0
-}
-
-src_unpack() {
-
- unpack ${A}
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- BINDIR = /usr/bin
- MANDIR = /usr/share/man
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIBDIR}
- CONFDIR = ${CONF_DIR}
- VIDEODIR = /var/vdr/video
- HEADERDIR = /usr/include
-
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
-
- EOT
- eend 0
-
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff
-
- sed -i Makefile \
- -e 's/runvdr//' \
- -e 's/ install-plugins//'
-
- if ! use vanilla; then
-
- cd "${S}"
- epatch "${EXT_DIR}/${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
-
- epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff"
- add_cap CAP_SHUTDOWN_SVDRP
-
- epatch "${FILESDIR}/vdr-set-dumpable.diff"
-
- # This allows us to start even if some plugin does not exist
- # or is not loadable.
- enable_patch PLUGINMISSING
-
- # Patch necessary for media-plugins/vdr-reelchannelscan
- # it does not change anything when plugin is not used
- enable_patch CHANNELSCAN
-
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
- einfo "Doing maintainer checks:"
-
- # these patches we do not support
- # (or have them already hard enabled)
- local IGNORE_PATCHES="channelscan pluginapi pluginmissing"
-
- extensions_all_defines > "${T}"/new.IUSE
- echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
- if [[ -z ${DIFFS} ]]; then
- einfo "IUSE_EXTENSIONS is up to date."
- else
- ewarn "IUSE differences!"
- local diff
- for diff in $DIFFS; do
- ewarn "$diff"
- done
- fi
- fi
-
- ebegin "Enabling selected patches"
- local flag
- for flag in $IUSE_EXTENSIONS; do
- FLAG_UP=$(echo $flag|tr '[:lower:]' '[:upper:]')
- use $flag && enable_patch ${FLAG_UP}
- done
- eend 0
-
- extensions_add_make_conf
-
- ebegin "Make fonts"
- emake font >/dev/null
- eend $? "make fonts failed"
-
- ebegin "Make depend"
- emake .dependencies >/dev/null
- eend $? "make depend failed"
-
- do_unifdef
-
- use iptv && sed -i sources.conf -e 's/^#P/P/'
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- echo
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- einfo "Applying local patches"
- else
- einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}"
-
- keepdir "${CONF_DIR}"/plugins
- keepdir "${CONF_DIR}"/themes
-
- keepdir "${PLUGIN_LIBDIR}"
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY* CONTRIBUTORS
-
- cd "${EXT_DIR}"/doc
- local f
- for f in *; do
- newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}"
- done
-
- cd "${S}"
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- einfo "Installing sources"
- insinto "${VDRSOURCE_DIR}/${P}"
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}/${P}"/PLUGINS/lib
- fi
-
- if use setup; then
- insinto /usr/share/vdr/setup
- doins "${S}/menu.c"
- fi
- chown -R vdr:vdr "${D}/${CONF_DIR}"
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now."
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup; then
- if ! has_version media-plugins/vdr-setup || \
- ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
-
- echo
- ewarn "You have compiled media-video/vdr with USE=\"setup\""
- ewarn "It is very important to emerge media-plugins/vdr-setup now!"
- ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
- fi
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file="${ROOT}"/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.7-r8.ebuild b/media-video/vdr/vdr-1.4.7-r8.ebuild
deleted file mode 100644
index 22181b669dec..000000000000
--- a/media-video/vdr/vdr-1.4.7-r8.ebuild
+++ /dev/null
@@ -1,349 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r8.ebuild,v 1.1 2007/11/12 15:52:12 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
- dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft iptv
- jumpplay liemikuutio livebuffer lnbshare mainmenuhooks menuorg noepg osdmaxitems pinplugin
- rotor settime setup sortrecords sourcecaps submenu
- subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg
- syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter"
-
-IUSE="debug vanilla ${IUSE_EXTENSIONS}"
-
-EXT_V="37.1"
-EXT_P=vdr-extensions-patch-"${EXT_V}"
-EXT_DIR="${WORKDIR}/${EXT_P}/"
-# Set if != $PV
-#EXT_VDR_PV=1.5.3
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- mirror://gentoo/${EXT_P}.tar.bz2
- http://dev.gentoo.org/~zzam/extensions-patch/${EXT_P}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap
- dev-util/unifdef"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-CONF_DIR=/etc/vdr
-CAP_FILE="${S}"/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
-}
-
-add_cap() {
- local arg
- for arg; do
- CAPS="${CAPS}\n${arg}=1"
- done
-}
-
-enable_patch() {
- local arg
- for arg; do
- echo "${arg} = 1" >> Make.config
- done
-}
-
-extensions_add_make_conf()
-{
- # copy all ifdef for extensions-patch to Make.config
- sed -e '1,/need to touch the following:/d' \
- -e '/ifdef DVBDIR/,/^$/d' \
- Make.config.template >> Make.config
-}
-
-extensions_all_defines() {
- # extract all possible settings for extensions-patch
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
- Make.config.template \
- | sort \
- | tr '[:upper:]' '[:lower:]'
-}
-
-extensions_all_defines_unset() {
- # extract all possible settings for extensions-patch
- # and convert them to -U... for unifdef
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
- Make.config.template \
- | tr '\n' ' '
-}
-
-do_unifdef() {
- ebegin "Unifdef sources"
- local mf="Makefile.get"
- cat <<'EOT' > $mf
-include Makefile
-show_def:
- @echo $(DEFINES)
-show_src_files:
- @echo $(OBJS:%.o=%.c)
-EOT
-
- local DEFINES=$(extensions_all_defines_unset)
-
- local RAW_DEFINES=$(make -f "$mf" show_def)
- local VDR_SRC_FILES="$(make -f "$mf" show_src_files)"
- local KEEP_FILES="genfontfile.c $(echo font*.c)"
- rm "$mf"
-
- local def
- for def in $RAW_DEFINES; do
- case "${def}" in
- -DUSE*)
- DEFINES="${DEFINES} ${def}"
- ;;
- esac
- done
-
- local f
- for f in *.c; do
-
- # Removing the src files the Makefile does not use for compiling vdr
- if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
- rm -f ${f} ${f%.c}.h
- continue
- fi
-
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- for f in *.h; do
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- [[ -s $f ]] || rm "$f"
- done
- eend 0
-}
-
-src_unpack() {
-
- unpack ${A}
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- BINDIR = /usr/bin
- MANDIR = /usr/share/man
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIBDIR}
- CONFDIR = ${CONF_DIR}
- VIDEODIR = /var/vdr/video
- HEADERDIR = /usr/include
-
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
-
- EOT
- eend 0
-
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff
-
- sed -i Makefile \
- -e 's/runvdr//' \
- -e 's/ install-plugins//'
-
- if ! use vanilla; then
-
- cd "${S}"
- epatch "${EXT_DIR}/${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
-
- epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff"
- add_cap CAP_SHUTDOWN_SVDRP
-
- epatch "${FILESDIR}/vdr-set-dumpable.diff"
-
- # This allows us to start even if some plugin does not exist
- # or is not loadable.
- enable_patch PLUGINMISSING
-
- # Patch necessary for media-plugins/vdr-reelchannelscan
- # it does not change anything when plugin is not used
- enable_patch CHANNELSCAN
-
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
- einfo "Doing maintainer checks:"
-
- # these patches we do not support
- # (or have them already hard enabled)
- local IGNORE_PATCHES="channelscan pluginapi pluginmissing"
-
- extensions_all_defines > "${T}"/new.IUSE
- echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
- if [[ -z ${DIFFS} ]]; then
- einfo "IUSE_EXTENSIONS is up to date."
- else
- ewarn "IUSE differences!"
- local diff
- for diff in $DIFFS; do
- ewarn "$diff"
- done
- fi
- fi
-
- ebegin "Enabling selected patches"
- local flag
- for flag in $IUSE_EXTENSIONS; do
- FLAG_UP=$(echo $flag|tr '[:lower:]' '[:upper:]')
- use $flag && enable_patch ${FLAG_UP}
- done
- eend 0
-
- extensions_add_make_conf
-
- ebegin "Make depend"
- emake .dependencies >/dev/null || die "make depend failed"
- eend 0
-
- do_unifdef
-
- use iptv && sed -i sources.conf -e 's/^#P/P/'
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- echo
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- einfo "Applying local patches"
- else
- einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}" || die "make install failed"
-
- keepdir "${CONF_DIR}"/plugins
- keepdir "${CONF_DIR}"/themes
-
- keepdir "${PLUGIN_LIBDIR}"
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY* CONTRIBUTORS
-
- cd "${EXT_DIR}"/doc
- local f
- for f in *; do
- newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}"
- done
-
- cd "${S}"
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- einfo "Installing sources"
- insinto "${VDRSOURCE_DIR}/${P}"
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}/${P}"/PLUGINS/lib
- fi
-
- if use setup; then
- insinto /usr/share/vdr/setup
- doins "${S}/menu.c"
- fi
- chown -R vdr:vdr "${D}/${CONF_DIR}"
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now."
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup; then
- if ! has_version media-plugins/vdr-setup || \
- ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
-
- echo
- ewarn "You have compiled media-video/vdr with USE=\"setup\""
- ewarn "It is very important to emerge media-plugins/vdr-setup now!"
- ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
- fi
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file="${ROOT}"/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}
diff --git a/media-video/vdr/vdr-1.4.7-r9.ebuild b/media-video/vdr/vdr-1.4.7-r9.ebuild
deleted file mode 100644
index e28d937cb80f..000000000000
--- a/media-video/vdr/vdr-1.4.7-r9.ebuild
+++ /dev/null
@@ -1,354 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r9.ebuild,v 1.1 2007/12/23 19:48:07 zzam Exp $
-
-inherit eutils flag-o-matic multilib
-
-IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
- dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft iptv
- jumpplay liemikuutio livebuffer lnbshare mainmenuhooks menuorg noepg osdmaxitems pinplugin
- rotor settime setup sortrecords sourcecaps submenu
- subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg
- syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter
- volctrl lircsettings"
-
-IUSE="debug vanilla ${IUSE_EXTENSIONS}"
-
-EXT_V="41"
-EXT_P=VDR-Extensions-Patch-"${EXT_V}"
-EXT_DIR="${WORKDIR}/${EXT_P}/"
-# Set if != $PV
-#EXT_VDR_PV=1.5.3
-
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
-HOMEPAGE="http://www.cadsoft.de/vdr/"
-SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2
- http://www.zulu-entertainment.de/files/patches/${EXT_P}.tar.bz2"
-
-#http://dev.gentoo.org/~zzam/extensions-patch/${EXT_P}.tar.bz2"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-SLOT="0"
-LICENSE="GPL-2"
-
-DEPEND="media-libs/jpeg
- sys-apps/gawk
- media-tv/linuxtv-dvb-headers
- sys-libs/libcap
- dev-util/unifdef"
-
-RDEPEND="${DEPEND}
- dev-lang/perl
- || ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild )
- >=media-tv/gentoo-vdr-scripts-0.3.5"
-
-# pull in vdr-setup to get the xml files, else menu will not work
-PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )"
-
-# Relevant Pathes for vdr on gentoo
-DVB_DIR=/usr/include
-CONF_DIR=/etc/vdr
-CAP_FILE="${S}"/capabilities.sh
-CAPS="# Capabilities of the vdr-executable for use by startscript etc."
-
-pkg_setup() {
- use debug && append-flags -g
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
-}
-
-add_cap() {
- local arg
- for arg; do
- CAPS="${CAPS}\n${arg}=1"
- done
-}
-
-enable_patch() {
- local arg ARG_UPPER
- for arg; do
- ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]')
- echo "${ARG_UPPER} = 1" >> Make.config
- done
-}
-
-extensions_add_make_conf()
-{
- # copy all ifdef for extensions-patch to Make.config
- sed -e '1,/need to touch the following:/d' \
- -e '/ifdef DVBDIR/,/^$/d' \
- Make.config.template >> Make.config
-}
-
-extensions_all_defines() {
- # extract all possible settings for extensions-patch
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
- Make.config.template \
- | sort \
- | tr '[:upper:]' '[:lower:]'
-}
-
-extensions_all_defines_unset() {
- # extract all possible settings for extensions-patch
- # and convert them to -U... for unifdef
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
- Make.config.template \
- | tr '\n' ' '
-}
-
-do_unifdef() {
- ebegin "Unifdef sources"
- local mf="Makefile.get"
- cat <<'EOT' > $mf
-include Makefile
-show_def:
- @echo $(DEFINES)
-show_src_files:
- @echo $(OBJS:%.o=%.c)
-EOT
-
- local DEFINES=$(extensions_all_defines_unset)
-
- local RAW_DEFINES=$(make -f "$mf" show_def)
- local VDR_SRC_FILES="$(make -f "$mf" show_src_files)"
- local KEEP_FILES="genfontfile.c $(echo font*.c)"
- rm "$mf"
-
- local def
- for def in $RAW_DEFINES; do
- case "${def}" in
- -DUSE*)
- DEFINES="${DEFINES} ${def}"
- ;;
- esac
- done
-
- local f
- for f in *.c; do
-
- # Removing the src files the Makefile does not use for compiling vdr
- if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
- rm -f ${f} ${f%.c}.h
- continue
- fi
-
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- done
- for f in *.h; do
- unifdef ${DEFINES} "$f" > "tmp.$f"
- mv "tmp.$f" "$f"
- [[ -s $f ]] || rm "$f"
- done
- eend 0
-}
-
-src_unpack() {
-
- unpack ${A}
- cd "${S}"
-
- ebegin "Changing pathes for gentoo"
-
- sed \
- -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
- -i vdr.c
-
- cat > Make.config <<-EOT
- #
- # Generated by ebuild ${PF}
- #
- BINDIR = /usr/bin
- MANDIR = /usr/share/man
- DVBDIR = ${DVB_DIR}
- PLUGINLIBDIR = ${PLUGIN_LIBDIR}
- CONFDIR = ${CONF_DIR}
- VIDEODIR = /var/vdr/video
- HEADERDIR = /usr/include
-
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
-
- EOT
- eend 0
-
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff
- epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff
-
- sed -i Makefile \
- -e 's/runvdr//' \
- -e 's/ install-plugins//'
-
- if ! use vanilla; then
-
- cd "${S}"
- local fname="${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
- epatch "${EXT_DIR}/${fname}"
-
- epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff"
- add_cap CAP_SHUTDOWN_SVDRP
-
- epatch "${FILESDIR}/vdr-set-dumpable.diff"
-
- # This allows us to start even if some plugin does not exist
- # or is not loadable.
- enable_patch PLUGINMISSING
-
- # Patch necessary for media-plugins/vdr-reelchannelscan
- # it does not change anything when plugin is not used
- enable_patch CHANNELSCAN
-
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
- einfo "Doing maintainer checks:"
-
- # these patches we do not support
- # (or have them already hard enabled)
- local IGNORE_PATCHES="channelscan pluginapi pluginmissing"
-
- extensions_all_defines > "${T}"/new.IUSE
- echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
- if [[ -z ${DIFFS} ]]; then
- einfo "IUSE_EXTENSIONS is up to date."
- else
- ewarn "IUSE differences!"
- local diff
- for diff in $DIFFS; do
- ewarn "$diff"
- done
- fi
- fi
-
- ebegin "Enabling selected patches"
- local flag
- for flag in $IUSE_EXTENSIONS; do
- use $flag && enable_patch ${flag}
- done
- eend 0
-
- extensions_add_make_conf
-
- ebegin "Make depend"
- emake .dependencies >/dev/null || die "make depend failed"
- eend 0
-
- do_unifdef
-
- use iptv && sed -i sources.conf -e 's/^#P/P/'
- fi
-
- # apply local patches defined by variable VDR_LOCAL_PATCHES_DIR
- if test -n "${VDR_LOCAL_PATCHES_DIR}"; then
- local dir_tmp_var
- local LOCALPATCHES_SUBDIR=${PV}
- for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do
- if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then
- LOCALPATCHES_SUBDIR="${dir_tmp_var}"
- fi
- done
-
- echo
- if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then
- einfo "Applying local patches"
- else
- einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})"
- fi
-
- for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do
- test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
- done
- fi
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- cp -r "${S}" "${T}"/source-tree
- fi
-
- if ! use vanilla; then
- add_cap CAP_IRCTRL_RUNTIME_PARAM \
- CAP_VFAT_RUNTIME_PARAM \
- CAP_CHUID
-
- echo -e ${CAPS} > "${CAP_FILE}"
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}" || die "make install failed"
-
- keepdir "${CONF_DIR}"/plugins
- keepdir "${CONF_DIR}"/themes
-
- keepdir "${PLUGIN_LIBDIR}"
-
- dohtml *.html
- dodoc MANUAL INSTALL README* HISTORY* CONTRIBUTORS
-
- cd "${EXT_DIR}"
- local f
- rm *vdr-1.5* 2>/dev/null
- for f in BUGS README* HISTORY* patch.list; do
- [[ -f ${f} ]] || break
- newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}"
- done
-
- cd "${S}"
-
- insinto /usr/share/vdr
- doins "${CAP_FILE}"
-
- if [[ -n "${VDRSOURCE_DIR}" ]]; then
- einfo "Installing sources"
- insinto "${VDRSOURCE_DIR}/${P}"
- doins -r "${T}"/source-tree/*
- keepdir "${VDRSOURCE_DIR}/${P}"/PLUGINS/lib
- fi
-
- if use setup; then
- insinto /usr/share/vdr/setup
- doins "${S}/menu.c"
- fi
- chown -R vdr:vdr "${D}/${CONF_DIR}"
-}
-
-pkg_postinst() {
- elog "It is a good idea to run vdrplugin-rebuild now."
- if has_version "<media-video/vdr-1.3.36-r3"; then
- ewarn "Upgrade Info:"
- ewarn
- ewarn "If you had used the use-flags lirc, rcu or vfat"
- ewarn "then, you now have to enable the associated functionality"
- ewarn "in /etc/conf.d/vdr"
- ewarn
- ewarn "vfat is now set with VFAT_FILENAMES."
- ewarn "lirc/rcu are now set with IR_CTRL."
- ebeep
- fi
-
- if use setup; then
- if ! has_version media-plugins/vdr-setup || \
- ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
-
- echo
- ewarn "You have compiled media-video/vdr with USE=\"setup\""
- ewarn "It is very important to emerge media-plugins/vdr-setup now!"
- ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
- fi
- fi
-
- local keysfound=0
- local key
- local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
- local remote_file="${ROOT}"/etc/vdr/remote.conf
-
- if [[ -e ${remote_file} ]]; then
- for key in ${warn_keys}; do
- if grep -q -i "\.${key} " "${remote_file}"; then
- keysfound=1
- break
- fi
- done
- if [[ ${keysfound} == 1 ]]; then
- ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
- ewarn "Please remove these keys or vdr will not start:"
- ewarn "# ${warn_keys}"
- fi
- fi
-}