diff options
Diffstat (limited to 'media-plugins/vdr-picselshow')
6 files changed, 143 insertions, 0 deletions
diff --git a/media-plugins/vdr-picselshow/Manifest b/media-plugins/vdr-picselshow/Manifest new file mode 100644 index 000000000000..d1ed91e83873 --- /dev/null +++ b/media-plugins/vdr-picselshow/Manifest @@ -0,0 +1 @@ +DIST vdr-picselshow-0.0.2.tar.gz 97365 SHA256 48cb37a10e9fe946b2a97b986c96fc943f89fb67e2fe5535df98bab1f4802ac7 diff --git a/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-gcc-4.4.diff b/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-gcc-4.4.diff new file mode 100644 index 000000000000..de72e9e5b31e --- /dev/null +++ b/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-gcc-4.4.diff @@ -0,0 +1,23 @@ +diff -ru picselshow-0.0.2-orig/data.c picselshow-0.0.2/data.c +--- picselshow-0.0.2-orig/data.c 2009-08-10 10:56:14.657708090 +0200 ++++ picselshow-0.0.2/data.c 2009-08-10 11:02:12.287665408 +0200 +@@ -453,7 +453,7 @@ + + bool cFileSource::Action(eAction act) + { +- static char *str[] = { "mount", "unmount", "eject", "status" }; ++ static const char *str[] = { "mount", "unmount", "eject", "status" }; + + char *cmd = 0; + asprintf(&cmd, "%s %s %s", g_szMountScript, str[act], basedir); +diff -ru picselshow-0.0.2-orig/imagecache.h picselshow-0.0.2/imagecache.h +--- picselshow-0.0.2-orig/imagecache.h 2009-08-10 10:56:14.654371019 +0200 ++++ picselshow-0.0.2/imagecache.h 2009-08-10 11:01:18.421003775 +0200 +@@ -5,6 +5,7 @@ + #ifndef VDR_IMAGECACHE_HPP + #define VDR_IMAGECACHE_HPP + ++#include <sys/types.h> + #include <map> + #include <vector> + #include <string> diff --git a/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-gentoo.diff b/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-gentoo.diff new file mode 100644 index 000000000000..a7f50817e069 --- /dev/null +++ b/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-gentoo.diff @@ -0,0 +1,11 @@ +--- picselshow-0.0.2-orig/picselshow.c 2007-05-17 23:25:57.000000000 +0200 ++++ picselshow-0.0.2/picselshow.c 2007-08-01 08:52:36.000000000 +0200 +@@ -58,7 +58,7 @@ + return ImageSetup.SetupParse(szName,szValue); + } + +-const char *g_szConfigDirectory = NULL; ++const char *g_szConfigDirectory = "picselshow"; + + const char *cPluginImage::CommandLineHelp(void) + { diff --git a/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-vdr-1.5.x.diff b/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-vdr-1.5.x.diff new file mode 100644 index 000000000000..f6c112f36b0b --- /dev/null +++ b/media-plugins/vdr-picselshow/files/vdr-picselshow-0.0.2-vdr-1.5.x.diff @@ -0,0 +1,51 @@ +--- control-image.c~ 2007-05-18 12:00:59.000000000 +0200 ++++ control-image.c 2007-06-11 15:38:54.000000000 +0200 +@@ -194,7 +194,11 @@ + + void cImageControl::FadeIn(void) + { +-needsFastResponse = true; ++#if VDRVERSNUM >= 10500 ++ SetNeedsFastResponse(true); ++#else ++ needsFastResponse = true; ++#endif + int i; + int alpha = 0; + +@@ -237,13 +241,21 @@ + fd--; + } + +-needsFastResponse = false; ++#if VDRVERSNUM >= 10500 ++ SetNeedsFastResponse(false); ++#else ++ needsFastResponse = false; ++#endif + } + + + void cImageControl::FadeOut(void) + { +-needsFastResponse = true; ++#if VDRVERSNUM >= 10500 ++ SetNeedsFastResponse(true); ++#else ++ needsFastResponse = true; ++#endif + int i; + int alpha = 255; + int fd = 16; +@@ -283,7 +295,11 @@ + fd--; + } + ++#if VDRVERSNUM >= 10500 ++ SetNeedsFastResponse(false); ++#else + needsFastResponse = false; ++#endif + } + + diff --git a/media-plugins/vdr-picselshow/metadata.xml b/media-plugins/vdr-picselshow/metadata.xml new file mode 100644 index 000000000000..d1b88e6872a7 --- /dev/null +++ b/media-plugins/vdr-picselshow/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> +<maintainer> +<email>vdr@gentoo.org</email> +<name>Gentoo VDR Project</name> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/media-plugins/vdr-picselshow/vdr-picselshow-0.0.2.ebuild b/media-plugins/vdr-picselshow/vdr-picselshow-0.0.2.ebuild new file mode 100644 index 000000000000..86ae00c88260 --- /dev/null +++ b/media-plugins/vdr-picselshow/vdr-picselshow-0.0.2.ebuild @@ -0,0 +1,45 @@ +# 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: picselshow for vdr-music" +HOMEPAGE="http://www.vdr.glaserei-franz.de/" +SRC_URI="http://www.kost.sh/vdr/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="imagemagick" + +PATCHES=("${FILESDIR}/${P}-vdr-1.5.x.diff" + "${FILESDIR}/${P}-gcc-4.4.diff" + "${FILESDIR}/${P}-gentoo.diff") + +DEPEND="imagemagick? ( media-gfx/imagemagick ) + !imagemagick? ( media-libs/imlib2 )" + +RDEPEND="media-plugins/vdr-image + media-plugins/vdr-music" + +src_prepare() { + vdr-plugin-2_src_prepare + + use imagemagick && sed -i Makefile -e "s:#HAVE_MAGICK=1:HAVE_MAGICK=1:" + + sed -i example/imagesources.conf -e "s:/media/vdrdaten/bilder:/mnt/images:" + + sed -i example/imagesources.conf -e \ + "s:/VDR/etc/plugins/music/downloads/music_cover:/etc/vdr/plugins/music/downloads/music_cover:" +} + +src_install() { + vdr-plugin-2_src_install + + insinto /etc/vdr/plugins/picselshow + doins -r picselshow/* + doins example/* +} |