diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-extrecmenu |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-extrecmenu')
8 files changed, 454 insertions, 0 deletions
diff --git a/media-plugins/vdr-extrecmenu/Manifest b/media-plugins/vdr-extrecmenu/Manifest new file mode 100644 index 000000000000..de8c0236f858 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/Manifest @@ -0,0 +1,12 @@ +AUX dvdarchive-2.3-beta-configfile.patch 302 SHA256 bf57eb01dedef979c2eec550ba99e9bcdbb787e84313d0a8ebc502a7b99c96da SHA512 59c113d672580c34b08a1a314b4104bb6400e18fa2855f02a70583975c5fd675de672006d057e1f207919aab488cf42505072fa57a61f931a58d4c1f84756ea5 WHIRLPOOL e6f6884594b829add2c1c1950b06ec9f01a97cc562af43d24da35020712813f60df51caba1c9d68da9c3f827f420550edaac20557f7e80bb8a9b44eb3b8f5c2c +AUX dvdarchive.conf 633 SHA256 761ed894c225fca7be33bd6f3a844c1e952fc5c20c38d76bd480d7b15243578e SHA512 1b4f7c68f83617d861277a491dbddfdd76b92fbf342d1cfda7cbb958cc77ce19291b8223d65774aafcd22cfcb273913c1122821eb0be97e7423b4842e9237fd0 WHIRLPOOL 7ee360b5291373fd7e70bcb7cfaab5f92fd64a2eb86b51a0bee0c9d5447d727f5cb49cc643bf3dd7b6a53fd2f0ad521c9d87bb5ce50842595109a55410b6b7fd +AUX extrecmenu.mk 3323 SHA256 0e143126838279df4286536d4bbfa00416ab3d56eeec1bf5181f21d8f343db35 SHA512 b16dad6d7be92e9a5483fa7aad8ac2a25bd26bf2d14d50bb3e2fefdd4eef8c837277747030f1403e5248d1c6c0a18530bb55521976656e8a5c2ac26f2d1827d9 WHIRLPOOL 2c4886613fbb1fcb1e54bdf8c6705274ae438dcac4b5259d6f3f08d4cc501e46c601833f2435f04b8dfce1ae67da4ec4af84370882ac502933d06226fff31b63 +AUX vdr-extrecmenu-1.2.2_vdr-2.1.2.diff 5354 SHA256 7f4a37db0e8f452d4570bfb4a843afbf24a280dad5b17fc6a6110ae498b93887 SHA512 ac98098a48890651c5c98aa9659f7ba495facdbd647be9d735fcfe4e7e20ca12c2f32ef25c723a4684144e98ae0446c7c1a4a61c2c4a7c96ad354347f819fa13 WHIRLPOOL 5755d9a1a60211739368ffec8b043ad6c4c311e47b6b445955adb85d08d95727a310b60f297852182af9bd2243cd943f6492a9177ec5e9e0ec7830c23be0e31c +DIST dvdarchive-2.3-beta.sh.gz 3412 SHA256 e8df7ea215e8a856cef1c03373d419c24ddace5c63f780282cbc6b18679000bd SHA512 18262b1e6749961bae37894649f518f88ad2ca100b83965eb48ce7344bbf4f7bfac9d36c9b9d91744281c00c4b89fa49209cc98ca5d848b46225facf4ef7a48f WHIRLPOOL fcc459d67ee33080af5a3079b4238d203c27b1dcc62af5b0c06b63082bb881462a47e1b97afc43865f250e86dce7cd12e122de83bf30edd0ccdda71fc22020b6 +DIST vdr-extrecmenu-1.2.2.tgz 734012 SHA256 ac920ee4c43497958ca158d2b81490208cd5caf92545ce809adb8a73f71dfe5e SHA512 071fd3c1d44afe17081ff2cdd747555d4218cffa2fd101ffa9c77b81376114af829bf58ce2f70f74eb7eb1090699b6a85a8e7105e3bf748ee7e8cb39ebee4f3c WHIRLPOOL 0f5504665e901bd24639682f5869f82af8ea9346013c8b66e5da5bd22ea3f927594334cf7ec53e2659caf0f420aae7e0949065807139166908fdaf5c6e9fd402 +DIST vdr-extrecmenu-1.2.4.tgz 731823 SHA256 9e96eb36576f59525183ebe0aca4e899aa2f8f9ce34c4b293a0a605508ca2074 SHA512 a750c6ad244e2afd3f04cafe634ec3c58baf4a38a809121a7c9045c327b4f10cb28b7aab4b7bd0e86d0b7febf85cc7fbc258bdd83386a60ddfe748347192f592 WHIRLPOOL 8715f24c53eab99f60ad33d8de62a0f8d5da196be95f0054a4dbec093bc2bf00c9578466d5e4aef8049c360b084277d90c56dcb2eff724896f4501d020078b01 +EBUILD vdr-extrecmenu-1.2.2-r2.ebuild 1370 SHA256 ef562e8ab7a0afd3d236fea7799bc788457f9730f31119278d8f2f75ecb12d52 SHA512 86a871674319bf06b0404d574ad15ff735f644d98a88f0bc5e265e07634a732bac4ef823d54854cf1914a7f1938e489809a6d2c053b9383a09dfa8062314db31 WHIRLPOOL e605b90fc1a1364cb4d804a3c2c654a69113e6c6bc073e1f0c35d613d78e003b26aa6b6defe95aa175ab98f1f44e2d287608f9a23a1796aa263648a1f0321432 +EBUILD vdr-extrecmenu-1.2.4.ebuild 975 SHA256 3fca20283e54a74a509569866814e51add6072294683b4ac9df94081fa4e6c2e SHA512 24d056ab8a5bcbcd4c474b324062e5ec533db1e41f160040150528a67c64cb82a5c55e18b782161bb8bdded026519ca18bc2002d29368161c08d56ae0e0d7390 WHIRLPOOL a67964eafc301796008fd5699d3d8a250834f917ee6e56eb36732d522254a05b503931670586e48c53ddd2aba012c7f05589d5d04aa1cd1b3305253b4023d910 +MISC ChangeLog 2851 SHA256 a2b13291b9b07cf13f40a87249ff0d7ae1e531cb384eb85926281f2c2c39b127 SHA512 48bfbebdfe0a190b7417d24b2ae8d3022969b4aa26ebc9489c1c003be7b04dc06bb6e7eaef407756061b78a1dcd6a036f80938fefd77d928f45dad3b2f7921af WHIRLPOOL 934477c1121e4411b2ec168407474d91a2f4708b96767914f01b8ff96d1592e3043077d7e7fc1a6a1f8a0c4250cc21c895e6affa6b2cc22a090c3604c4f0ec6f +MISC ChangeLog-2015 7982 SHA256 56faad0fdbbfaa2e5f53d2208307bbffeb47324a05df8102cfe0f8be5b072f81 SHA512 a35f342cc9def1a5565dc6d661903f4a725a80642710068fa1f8ac78f393fb81721fa240780ad1bebf89d5c4c7cc7d7a894da7515beabd5aad17df2ce1c8da87 WHIRLPOOL 9b14729a67c27a92f5a0e0f76977b65ea6fa702f6cfa32dda7d0a2aee3e93dbad3010e66910aca1ec49e9238e3631dc30f74ce71691d832376aa33d306973b3c +MISC metadata.xml 326 SHA256 edeabc496893e45f78b474dcb42431f9ff2f667a0e71b7a2bd56daa12b021568 SHA512 ab292243f2de07735059f4f98c72be9198abb330eda2bb51269a727bc60294778bb93094c34db3ffe39bfa4b50e36c163fd379e276a03b24bf5fad92072d2863 WHIRLPOOL 3ad320fcffe03563314748e8dd7de9982c1da3c6a37fe5fd998f233bbff012d25e883bd693ecc6214af923b20aba6ab92111ca2c146e76b684d5b89984f17fc4 diff --git a/media-plugins/vdr-extrecmenu/files/dvdarchive-2.3-beta-configfile.patch b/media-plugins/vdr-extrecmenu/files/dvdarchive-2.3-beta-configfile.patch new file mode 100644 index 000000000000..723610e8c58e --- /dev/null +++ b/media-plugins/vdr-extrecmenu/files/dvdarchive-2.3-beta-configfile.patch @@ -0,0 +1,13 @@ +--- dvdarchive-2.3-beta.sh 2009-10-06 16:23:20.000000000 +0200 ++++ dvdarchive-2.3-beta.sh 2009-10-06 17:32:43.000000000 +0200 +@@ -118,6 +118,10 @@ + DEBUGLOG="/tmp/dvdarchive.sh-debug.log" + + #</Configuration> ++ ++# read config file ++. /etc/vdr/dvdarchive.conf ++ + # + # No changes needed after this mark + diff --git a/media-plugins/vdr-extrecmenu/files/dvdarchive.conf b/media-plugins/vdr-extrecmenu/files/dvdarchive.conf new file mode 100644 index 000000000000..e404f8160699 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/files/dvdarchive.conf @@ -0,0 +1,23 @@ +# config file for /usr/bin/dvdarchive.sh +# this is used by vdr-extrecmenu for dvdarchives + +# Mountpoint, the same as in fstab +MOUNTPOINT="/mnt/cdrom" # no trailing '/' + +# Eject DVD for exit-codes 2 and 3 (no or wrong dvd). 1 = yes, 0 = no. +EJECTWRONG=1 + +# Eject DVD after unmounting. 1 = yes, 0 = no. +EJECTUMOUNT=0 + +# Log warnings/errors in syslog. 1 = yes, 0 = no. +SYSLOG=1 + +# Create a length.vdr after mounting the dvd for the played recording. 1 = yes, 0 = no. +# Only for non-vfat and with index.vdr only on dvd. +GETLENGTH=1 + +# Put debug infos in file $DEBUGLOG. Only if $DEBUG=1. +DEBUG=0 +DEBUGLOG="/tmp/dvdarchive.sh-debug.log" + diff --git a/media-plugins/vdr-extrecmenu/files/extrecmenu.mk b/media-plugins/vdr-extrecmenu/files/extrecmenu.mk new file mode 100644 index 000000000000..b08519610a69 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/files/extrecmenu.mk @@ -0,0 +1,127 @@ +# +# Makefile for a Video Disk Recorder plugin +# + +# The official name of this plugin. +# This name will be used in the '-P...' option of VDR to load the plugin. +# By default the main source file also carries this name. + +PLUGIN = extrecmenu + +### The version number of this plugin (taken from the main source file): + +VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') + +### The directory environment: + +# Use package data if installed...otherwise assume we're under the VDR source directory: +PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc)) +LIBDIR = $(call PKGCFG,libdir) +LOCDIR = $(call PKGCFG,locdir) +PLGCFG = $(call PKGCFG,plgcfg) +# +TMPDIR ?= /tmp + +### The compiler options: + +export CFLAGS = $(call PKGCFG,cflags) +export CXXFLAGS = $(call PKGCFG,cxxflags) + +### The version number of VDR's plugin API: + +APIVERSION = $(call PKGCFG,apiversion) + +### Allow user defined options to overwrite defaults: + +-include $(PLGCFG) + +### The name of the distribution archive: + +ARCHIVE = $(PLUGIN)-$(VERSION) +PACKAGE = vdr-$(ARCHIVE) + +### The name of the shared object file: + +SOFILE = libvdr-$(PLUGIN).so + +### Includes and Defines (add further entries here): + +INCLUDES += + +DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' + +ifdef USE_PINPLUGIN +DEFINES += -DUSE_PINPLUGIN +endif + +DEFINES += -DUSE_VDR_CUTTER + +### The object files (add further files here): + +OBJS = $(PLUGIN).o mymenurecordings.o mymenueditrecording.o myreplaycontrol.o mymenucommands.o mymenusetup.o tools.o + +### The main target: + +all: $(SOFILE) i18n + +### Implicit rules: + +%.o: %.c + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< + +### Dependencies: + +MAKEDEP = $(CXX) -MM -MG +DEPFILE = .dependencies +$(DEPFILE): Makefile + @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ + +-include $(DEPFILE) + +### Internationalization (I18N): + +PODIR = po +I18Npo = $(wildcard $(PODIR)/*.po) +I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) +I18Nmsgs = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Npot = $(PODIR)/$(PLUGIN).pot + +%.mo: %.po + msgfmt -c -o $@ $< + +$(I18Npot): $(wildcard *.c) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^` + +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $< + @touch $@ + +$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + install -D -m644 $< $@ + +.PHONY: i18n +i18n: $(I18Nmo) $(I18Npot) + +install-i18n: $(I18Nmsgs) + +### Targets: + +$(SOFILE): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ + +install-lib: $(SOFILE) + install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) + +install: install-lib install-i18n + +dist: $(I18Npo) clean + @-rm -rf $(TMPDIR)/$(ARCHIVE) + @mkdir $(TMPDIR)/$(ARCHIVE) + @cp -a * $(TMPDIR)/$(ARCHIVE) + @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE) + @-rm -rf $(TMPDIR)/$(ARCHIVE) + @echo Distribution package created as $(PACKAGE).tgz + +clean: + @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot + @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ diff --git a/media-plugins/vdr-extrecmenu/files/vdr-extrecmenu-1.2.2_vdr-2.1.2.diff b/media-plugins/vdr-extrecmenu/files/vdr-extrecmenu-1.2.2_vdr-2.1.2.diff new file mode 100644 index 000000000000..b1f4d391a44a --- /dev/null +++ b/media-plugins/vdr-extrecmenu/files/vdr-extrecmenu-1.2.2_vdr-2.1.2.diff @@ -0,0 +1,167 @@ +diff -Naur extrecmenu-1.2.2.orig/mymenueditrecording.c extrecmenu-1.2.2/mymenueditrecording.c +--- extrecmenu-1.2.2.orig/mymenueditrecording.c 2013-10-23 13:14:38.010071212 +0200 ++++ extrecmenu-1.2.2/mymenueditrecording.c 2013-10-23 13:21:12.560096164 +0200 +@@ -76,7 +76,11 @@ + + if(isdir) + { ++#if APIVERSNUM > 20101 ++ if(-1==asprintf(&oldname,"%s%s%s/%s",cVideoDirectory::Name(),tmppath?"/":"",dirbase?dirbase:"",dirname)) ++#else + if(-1==asprintf(&oldname,"%s%s%s/%s",VideoDirectory,tmppath?"/":"",dirbase?dirbase:"",dirname)) ++#endif + oldname=NULL; + } + else +@@ -84,7 +88,11 @@ + + if(oldname) + { ++#if APIVERSNUM > 20101 ++ if(-1==asprintf(&newname,"%s%s%s/%s%s",cVideoDirectory::Name(),tmppath?"/":"",tmppath?tmppath:"",tmpname,isdir?"":strrchr(recording->FileName(),'/'))) ++#else + if(-1==asprintf(&newname,"%s%s%s/%s%s",VideoDirectory,tmppath?"/":"",tmppath?tmppath:"",tmpname,isdir?"":strrchr(recording->FileName(),'/'))) ++#endif + newname=NULL; + + if(newname) +@@ -305,7 +313,11 @@ + + if(dirname) + { ++#if APIVERSNUM > 20101 ++ if(-1==asprintf(&oldname,"%s%s%s/%s",cVideoDirectory::Name(),dirbase?"/":"",tmpdirbase?tmpdirbase:"",tmpdirname)) ++#else + if(-1==asprintf(&oldname,"%s%s%s/%s",VideoDirectory,dirbase?"/":"",tmpdirbase?tmpdirbase:"",tmpdirname)) ++#endif + oldname=NULL; + } + else +@@ -357,7 +369,11 @@ + if(dir) + dir=ExchangeChars(dir,true); + ++#if APIVERSNUM > 20101 ++ if(-1==asprintf(&_newname,"%s%s%s%s",cVideoDirectory::Name(),dir?"/":"",dir?dir:"",strrchr(dirname?oldname:recording->FileName(),'/'))) ++#else + if(-1==asprintf(&_newname,"%s%s%s%s",VideoDirectory,dir?"/":"",dir?dir:"",strrchr(dirname?oldname:recording->FileName(),'/'))) ++#endif + _newname=NULL; + + if(_newname) +@@ -424,7 +440,11 @@ + { + if(!strncmp(oldname,rec->FileName(),strlen(oldname))) + { ++#if APIVERSNUM > 20101 ++ char *_buf=ExchangeChars(strdup(oldname+strlen(cVideoDirectory::Name())+1),false); ++#else + char *_buf=ExchangeChars(strdup(oldname+strlen(VideoDirectory)+1),false); ++#endif + + if(strcmp(rec->Name(),_buf)) + { +diff -Naur extrecmenu-1.2.2.orig/mymenurecordings.c extrecmenu-1.2.2/mymenurecordings.c +--- extrecmenu-1.2.2.orig/mymenurecordings.c 2013-10-23 13:14:38.010071212 +0200 ++++ extrecmenu-1.2.2/mymenurecordings.c 2013-10-23 13:27:17.916785937 +0200 +@@ -590,7 +590,11 @@ + { + if(mysetup.FileSystemFreeMB) + { ++#if APIVERSNUM > 20101 ++ string path=cVideoDirectory::Name(); ++#else + string path=VideoDirectory; ++#endif + path+="/"; + char *tmpbase=base?ExchangeChars(strdup(base),true):NULL; + if(base) +@@ -634,7 +638,11 @@ + else + { + int freemb; ++#if APIVERSNUM > 20101 ++ cVideoDirectory::VideoDiskSpace(&freemb); ++#else + VideoDiskSpace(&freemb); ++#endif + return freemb; + } + +@@ -747,7 +755,11 @@ + for(cRecording *recording=Recordings.First();recording;recording=Recordings.Next(recording)) + list->Add(new myRecListItem(recording)); + // sort my recordings list ++#if APIVERSNUM > 20101 ++ string path=cVideoDirectory::Name(); ++#else + string path=VideoDirectory; ++#endif + path+="/"; + if(base) + path+=base; +@@ -1211,7 +1223,11 @@ + { + char *strBase=base?ExchangeChars(strdup(base), true):NULL; + char *strName=ExchangeChars(strdup(item->Name()), true); ++#if APIVERSNUM > 20101 ++ if(-1==asprintf(¶meter,"\"%s/%s/%s\"",cVideoDirectory::Name(),strBase?strBase:"", strName)) ++#else + if(-1==asprintf(¶meter,"\"%s/%s/%s\"",VideoDirectory,strBase?strBase:"", strName)) ++#endif + parameter=NULL; + free(strBase); + free(strName); +@@ -1235,7 +1251,11 @@ + // change sorting + eOSState myMenuRecordings::ChangeSorting() + { ++#if APIVERSNUM > 20101 ++ string path=cVideoDirectory::Name(); ++#else + string path=VideoDirectory; ++#endif + path+="/"; + if(base) + path+=base; +diff -Naur extrecmenu-1.2.2.orig/tools.c extrecmenu-1.2.2/tools.c +--- extrecmenu-1.2.2.orig/tools.c 2013-10-23 13:14:38.010071212 +0200 ++++ extrecmenu-1.2.2/tools.c 2013-10-23 13:36:56.026822499 +0200 +@@ -152,7 +152,11 @@ + { + if(!strncmp(OldName,item->recording->FileName(),strlen(OldName))) + { ++#if APIVERSNUM > 20101 ++ buf=strdup(OldName+strlen(cVideoDirectory::Name())+1); ++#else + buf=strdup(OldName+strlen(VideoDirectory)+1); ++#endif + if(buf) + { + buf=ExchangeChars(buf,false); +@@ -240,8 +244,13 @@ + { + myRecListItem *item=(myRecListItem*)&ListObject; + ++#if APIVERSNUM > 20101 ++ char *s1=StripEpisodeName(strdup(filename+strlen(cVideoDirectory::Name()))); ++ char *s2=StripEpisodeName(strdup(item->filename+strlen(cVideoDirectory::Name()))); ++#else + char *s1=StripEpisodeName(strdup(filename+strlen(VideoDirectory))); + char *s2=StripEpisodeName(strdup(item->filename+strlen(VideoDirectory))); ++#endif + + int compare; + if(mysetup.DescendSorting) +@@ -699,7 +708,11 @@ + + isyslog("[extrecmenu] moving canceled"); + ++#if APIVERSNUM > 20101 ++ cVideoDirectory::RemoveVideoFile(To.c_str()); ++#else + RemoveVideoFile(To.c_str()); ++#endif + + return true; + } diff --git a/media-plugins/vdr-extrecmenu/metadata.xml b/media-plugins/vdr-extrecmenu/metadata.xml new file mode 100644 index 000000000000..51ad9a486270 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</name> + </maintainer> + <longdescription>VDR plugin to rename records on OSD</longdescription> +</pkgmetadata> diff --git a/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.2-r2.ebuild b/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.2-r2.ebuild new file mode 100644 index 000000000000..290f0caff387 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.2-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit vdr-plugin-2 + +VERSION="936" #every bump, new version + +DVDARCHIVE="dvdarchive-2.3-beta.sh" + +DESCRIPTION="VDR Plugin: Extended recordings menu" +HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-extrecmenu" +SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz + mirror://gentoo/${DVDARCHIVE}.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=">=media-video/vdr-1.6.0" +RDEPEND="${DEPEND}" + +src_prepare() { + + cd "${WORKDIR}" + epatch "${FILESDIR}/${DVDARCHIVE%.sh}-configfile.patch" + + cd "${S}" + if grep -q fskProtection /usr/include/vdr/timers.h; then + einfo "Enabling parentalrating option" + sed -i "s:#WITHPINPLUGIN:WITHPINPLUGIN:" Makefile + fi + + vdr-plugin-2_src_prepare + + if has_version ">=media-video/vdr-1.7.28"; then + sed -i "s:SetRecording(recording->FileName(),recording->Title:SetRecording(recording->FileName:" mymenurecordings.c + fi + + if has_version ">=media-video/vdr-1.7.32"; then + export EXTRECMENU_USE_VDR_CUTTER=1 + einfo "disabled plugin cutter" + einfo "plugin use now the vdr included cutter" + fi + + epatch "${FILESDIR}/${P}_vdr-2.1.2.diff" +} + +src_install() { + vdr-plugin-2_src_install + + cd "${WORKDIR}" + newbin ${DVDARCHIVE} dvdarchive.sh + + insinto /etc/vdr + doins "${FILESDIR}"/dvdarchive.conf +} diff --git a/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.4.ebuild b/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.4.ebuild new file mode 100644 index 000000000000..27adf4061c33 --- /dev/null +++ b/media-plugins/vdr-extrecmenu/vdr-extrecmenu-1.2.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit vdr-plugin-2 + +VERSION="1783" #every bump, new version + +DVDARCHIVE="dvdarchive-2.3-beta.sh" + +DESCRIPTION="VDR Plugin: Extended recordings menu" +HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-extrecmenu" +SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz + mirror://gentoo/${DVDARCHIVE}.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +DEPEND=">=media-video/vdr-2" +RDEPEND="${DEPEND}" + +src_prepare() { + rm "${S}"/po/{ca_ES,da_DK,el_GR,et_EE,hr_HR,hu_HU,nl_NL,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po + + cp "${FILESDIR}"/extrecmenu.mk "${S}"/Makefile + + cd "${WORKDIR}" + epatch "${FILESDIR}/${DVDARCHIVE%.sh}-configfile.patch" + + vdr-plugin-2_src_prepare +} + +src_install() { + vdr-plugin-2_src_install + + cd "${WORKDIR}" + newbin ${DVDARCHIVE} dvdarchive.sh + + insinto /etc/vdr + doins "${FILESDIR}"/dvdarchive.conf +} |