diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-mplayer | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-mplayer')
-rw-r--r-- | media-plugins/vdr-mplayer/Manifest | 1 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/files/0.10.2/01_gentoo.diff | 33 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/files/confd-0.9.15.sh | 11 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/files/mplayersources.conf | 3 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh | 23 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/files/vdr-mplayer-0.10.1-glibc-2.10.patch | 12 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/metadata.xml | 16 | ||||
-rw-r--r-- | media-plugins/vdr-mplayer/vdr-mplayer-0.10.2.ebuild | 68 |
8 files changed, 167 insertions, 0 deletions
diff --git a/media-plugins/vdr-mplayer/Manifest b/media-plugins/vdr-mplayer/Manifest new file mode 100644 index 000000000000..825eb3020fa6 --- /dev/null +++ b/media-plugins/vdr-mplayer/Manifest @@ -0,0 +1 @@ +DIST vdr-mp3-0.10.2.tar.gz 131512 SHA256 284def742b7ced5a34315eac2663a3f091237608274ee4fcd02797510b93506f SHA512 8f65d9f41643266137fcc950d0da66ef9c4ce5dff82828c88230cda9d8ef4f7e39d096557d69bf124a287496276508dc9464c0868b4cbef9059de1108cd35f40 WHIRLPOOL 4872707dabaf14965a2b0733a2e04f3798735be48cf05c2383d06850dae0446884779025bd0b6837e80fac2ca0d9c95692d2a35814b80c5c3b6a1040ce1a34d9 diff --git a/media-plugins/vdr-mplayer/files/0.10.2/01_gentoo.diff b/media-plugins/vdr-mplayer/files/0.10.2/01_gentoo.diff new file mode 100644 index 000000000000..6eb95c7239ca --- /dev/null +++ b/media-plugins/vdr-mplayer/files/0.10.2/01_gentoo.diff @@ -0,0 +1,33 @@ +diff -Naur mp3-0.10.1.orig/Makefile mp3-0.10.1/Makefile +--- mp3-0.10.1.orig/Makefile 2008-03-02 16:58:40.988974674 +0100 ++++ mp3-0.10.1/Makefile 2008-03-02 16:59:36.879557750 +0100 +@@ -24,14 +24,14 @@ + # in the VDR directory an set them there. + + ### uncomment one of these lines, if you don't want one of the plugins +-#WITHOUT_MP3=1 ++WITHOUT_MP3=1 + #WITHOUT_MPLAYER=1 + + ### uncomment the following line, if you don't have libsndfile installed +-#WITHOUT_LIBSNDFILE=1 ++WITHOUT_LIBSNDFILE=1 + + ### uncomment the following line, if you don't have libvorbisfile installed +-#WITHOUT_LIBVORBISFILE=1 ++WITHOUT_LIBVORBISFILE=1 + + ### uncomment the following line, if you want OSS sound output + #WITH_OSS_OUTPUT=1 +diff -Naur mp3-0.10.1.orig/mplayer.c mp3-0.10.1/mplayer.c +--- mp3-0.10.1.orig/mplayer.c 2008-03-02 16:58:41.068960305 +0100 ++++ mp3-0.10.1/mplayer.c 2008-03-02 17:00:53.845333952 +0100 +@@ -832,7 +832,7 @@ + #else + i18n_name="vdr-mplayer"; + #endif +- MPlaySources.Load(AddDirectory(ConfigDirectory(sourcesSub),"mplayersources.conf")); ++ MPlaySources.Load(AddDirectory(ConfigDirectory(sourcesSub),"mplayer/mplayersources.conf")); + if(MPlaySources.Count()<1) { + esyslog("ERROR: you must have defined at least one source in mplayersources.conf"); + fprintf(stderr,"No source(s) defined in mplayersources.conf\n"); diff --git a/media-plugins/vdr-mplayer/files/confd-0.9.15.sh b/media-plugins/vdr-mplayer/files/confd-0.9.15.sh new file mode 100644 index 000000000000..b336c5b9e5a1 --- /dev/null +++ b/media-plugins/vdr-mplayer/files/confd-0.9.15.sh @@ -0,0 +1,11 @@ +# Global config file for vdr mplayer plugin +# +# Restart of VDR is needed after changes + + +# Selected the script to call mplayer +# +# allowed value: mplay.sh mplayer.sh +# default value: prefer the first installed from the listed possibilities +# +#MPLAYER_PLUGIN_CALL="mplay.sh" diff --git a/media-plugins/vdr-mplayer/files/mplayersources.conf b/media-plugins/vdr-mplayer/files/mplayersources.conf new file mode 100644 index 000000000000..96858a41f028 --- /dev/null +++ b/media-plugins/vdr-mplayer/files/mplayersources.conf @@ -0,0 +1,3 @@ +/var/vdr/video;Video-Verzeichnis;0 +/mnt/cdrom;CDRom;1 + diff --git a/media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh b/media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh new file mode 100644 index 000000000000..c2de41b208f0 --- /dev/null +++ b/media-plugins/vdr-mplayer/files/rc-addon-0.9.15.sh @@ -0,0 +1,23 @@ +# $Id$ +# +# rc-addon plugin-startup-skript for vdr-mplayer +# + +: ${MPLAYER_PLUGIN_CALL:=mplay.sh} +: ${MPLAYER_PLUGIN_MOUNT:=mount-mplayer.sh} + +plugin_pre_vdr_start() { + local P=/usr/share/vdr/mplayer/bin + local CALL="" + if [ -f $P/${MPLAYER_PLUGIN_CALL} ]; then + CALL=${MPLAYER_PLUGIN_CALL} + elif [ -f $P/mplay.sh ]; then + CALL=mplay.sh + elif [ -f $P/mplayer.sh ]; then + CALL=mplayer.sh + else + eerror "vdr-mplayer: No mplayer-script found" + fi + add_plugin_param "-m ${P}/${MPLAYER_PLUGIN_MOUNT}" + add_plugin_param "-M ${P}/${CALL}" +} diff --git a/media-plugins/vdr-mplayer/files/vdr-mplayer-0.10.1-glibc-2.10.patch b/media-plugins/vdr-mplayer/files/vdr-mplayer-0.10.1-glibc-2.10.patch new file mode 100644 index 000000000000..a70d214b4e0b --- /dev/null +++ b/media-plugins/vdr-mplayer/files/vdr-mplayer-0.10.1-glibc-2.10.patch @@ -0,0 +1,12 @@ +diff -ur mp3-0.10.1.orig/data.c mp3-0.10.1/data.c +--- mp3-0.10.1.orig/data.c 2006-05-16 20:31:09.000000000 +0300 ++++ mp3-0.10.1/data.c 2009-08-11 12:22:35.000000000 +0300 +@@ -420,7 +420,7 @@ + description=strdup(Description); + if(Include) { + do { +- char *s=index(Include,'/'); ++ char *s=const_cast<char*> (index(Include,'/')); + int l=s ? s-Include : strlen(Include); + if(l) { + char **s=(char **)realloc(include,(incCount+2)*sizeof(char *)); diff --git a/media-plugins/vdr-mplayer/metadata.xml b/media-plugins/vdr-mplayer/metadata.xml new file mode 100644 index 000000000000..7db232940db5 --- /dev/null +++ b/media-plugins/vdr-mplayer/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> +<maintainer> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</name> + <description> + Please contacts maintainer before you something change. + </description> +</maintainer> + <longdescription> + VDR Plugin to play video files, the plugin use for this the mplayer. + All supported file types in mplayer will be played. + </longdescription> +</pkgmetadata> diff --git a/media-plugins/vdr-mplayer/vdr-mplayer-0.10.2.ebuild b/media-plugins/vdr-mplayer/vdr-mplayer-0.10.2.ebuild new file mode 100644 index 000000000000..11624a4a7836 --- /dev/null +++ b/media-plugins/vdr-mplayer/vdr-mplayer-0.10.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit vdr-plugin-2 + +DESCRIPTION="VDR Plugin: Play video files not supported by VDR with mplayer (divx and more)" +HOMEPAGE="http://www.muempf.de/" +SRC_URI="http://www.muempf.de/down/vdr-mp3-${PV}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=media-video/vdr-1.4.2" + +RDEPEND="${DEPEND} + || ( media-video/mplay-sh >=media-video/mplayer-sh-0.8.6-r1 ) + virtual/eject" + +S=${WORKDIR}/mp3-${PV} + +PATCHES=( "${FILESDIR}/${PV}/01_gentoo.diff" ) + +VDR_RCADDON_FILE=${FILESDIR}/rc-addon-0.9.15.sh +VDR_CONFD_FILE=${FILESDIR}/confd-0.9.15.sh + +src_prepare() { + vdr-plugin-2_src_prepare + + if has_version ">=media-video/vdr-2.1.2"; then + sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \ + -i decoder.c \ + -i player-mplayer.c + fi +} + +src_install() { + vdr-plugin-2_src_install + + insinto /etc/vdr/plugins/mplayer + doins "${FILESDIR}/mplayersources.conf" + + into /usr/share/vdr/mplayer + newbin examples/mount.sh.example mount-mplayer.sh + + dodoc HISTORY MANUAL README examples/{image_convert,network}.sh.example +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + echo + elog "Edit all config's /etc/vdr/plugins/mplayer" + echo + + if ! has_version "media-plugins/vdr-mp3ng" ; then + elog "Splitted ebuild!, no support for Audio files" + elog "To play mp3, ogg and wav files," + elog "emerge media-plugins/vdr-mp3ng -pv" + elog "or" + elog "emerge media-plugins/vdr-mp3 -pv" + echo + fi +} |