summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-text2skin
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-text2skin')
-rw-r--r--media-plugins/vdr-text2skin/Manifest8
-rw-r--r--media-plugins/vdr-text2skin/files/vdr-1.7.27.diff94
-rw-r--r--media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2-Makefile.patch71
-rw-r--r--media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2_vdr-2.1.2.diff15
-rw-r--r--media-plugins/vdr-text2skin/metadata.xml11
-rw-r--r--media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild87
6 files changed, 286 insertions, 0 deletions
diff --git a/media-plugins/vdr-text2skin/Manifest b/media-plugins/vdr-text2skin/Manifest
new file mode 100644
index 000000000000..26d57c169aa8
--- /dev/null
+++ b/media-plugins/vdr-text2skin/Manifest
@@ -0,0 +1,8 @@
+AUX vdr-1.7.27.diff 3814 SHA256 75909234a38c12b0bdee6be17768644316a605991cd1aa1227ea8e4b41a7faba SHA512 58983f674bd7bbd53437b2dfc92acd3365d20843f85ff67b91cc2f9f177054634804c29849df4f30eb147c3b78c13272d70b5615ecd9203376b4afa4519a7b35 WHIRLPOOL 4957ac1cbea709859bb4c995fa7035be922d42252fbe99ade6cff827a2ae9aefc4c50f2327c1ede831d7e12acecd30bae8367a6d309dd82883b83005fff05a42
+AUX vdr-text2skin-1.3.2-Makefile.patch 1808 SHA256 560078ae2d21f9717086035fdd5cb1123a5f8164ed181f131b3aecf5433cfa7a SHA512 e726ee9c2a9ff036cda68d44aca4ff11d0423674bfacd8f3e98c6c0bdc4006b9c4aa02deba6952976ff9d6ed0b971b2362bf3dbc8c13e8ffbe6971a294b869d8 WHIRLPOOL ad0763271783fc40757dbe9535ce47726d63adf3531eb9185020b49bb97b584c5540e7a3f983f671d8715d90b568b520c471583380303cd5b52621b6e11f7b89
+AUX vdr-text2skin-1.3.2_vdr-2.1.2.diff 612 SHA256 6cb71526a50c0ba4356d24dc5c4ccb54c4871a2022593e517ccaca540b9d4a90 SHA512 00f59897c4e31fa23e8da68935775fe738852679430bf476a33e41da309d9d1e6667b34197a91c84ee5f73f7b97a9e72845ac506ec79c154c428ef2c56bb5add WHIRLPOOL 4d985da3be687304116b97e0b5dbad66962af4f3dd2993851f4ada511c15a3b203817795ce46c1e1e6d9a9f89ddeac4848e4182acfcbda97c4afb3e6f2c4d988
+DIST vdr-text2skin-1.3.2.tgz 94476 SHA256 32d3e17cdf3a3b796b4ed7eae1ca8d2c6d56dcc901f4ed71daaf95dd6d2d6331 SHA512 418339f7132ddf854f1c7fbaa3b11aac5eb7aba0f15d427bb946d4175b6540199ac079fd895f9cebdccb4797dcf96b0681cee4db93a5e4c817abae04a08bdea9 WHIRLPOOL 6b0635a31a308d949c1abb4769cb759a34f787150442aa1f29b53fa923261ae2b898699ad21aff87c84bbdade2a530409bb31657ad445c29167e6bf8b5aedea7
+EBUILD vdr-text2skin-1.3.2-r1.ebuild 1789 SHA256 3010a0e27e6ca3ce31ac00ee66ad0c2001fbc4aba74159c1037442419d4aba3c SHA512 531a3afd60cec818b7b38a2c6c5c4170f63d6ff47b8979010a1d96e61a5b599d13a03cbbc18458df115eaef5c5f8556a7363ed9aa484afc7e5d960e362177365 WHIRLPOOL 654ce9546f3fae72c03dc4cf815b18121003e2299e7cc663c52522eeb54d42301f37d12d7aef5a3842ab9a9920d5ade40fb303600b398c47e883c65ee76c29a8
+MISC ChangeLog 2564 SHA256 a97cbab388bc95f034092cb247f72aa7f92c1367b0e615be1f1173e4cba9b341 SHA512 bc8665e9d8715f9f719d5394b066ba4019c882900ceeb6d904d8c35d68703c91ae6a45b93d374eeeb0e4c34719459b1deeed74d03fb5ac62116a5f6660299708 WHIRLPOOL 6c5c072bc9480123404ac3dd9ca6542e109d8800a4d1587780915a154c8407e57da787c89b8bcabd8244852d667c5c521567abdf38d3b2fa98467207b556cdfe
+MISC ChangeLog-2015 4327 SHA256 b67cad0ffb39faef8856b86c447822150fb37f09c1e6c7de350ce6c38d77e46b SHA512 64be5883d4c4ea0ce6f2d1db752ee94e153a239d2496c5d677e2667e039f21748c681c0aa758694098131d41e32671e27cecdff8bd5c54e2d7ff61f3311442d3 WHIRLPOOL 819f79d0d557e1441785aa1b856270f02107df7899d6245813cecc52530701099f90f54879f72a808446f013e66a6fb69e1314d6a640154890d82a19f93d4b2a
+MISC metadata.xml 327 SHA256 fc01152cca5fed3eacac9f2f1b65a9c89b792b1fadde3b345511698822783f7c SHA512 f22d86655f20776f78793a582203a4588353dc9d808ea83bd9d466e23c12762f8ecc626930b05a873d00064dbd92c51c6d0bf94226ec9911fc6259dd282d0f8d WHIRLPOOL 2ed1d6f9202e2d0a3d0a5923e34bc9d36fb10acedc761ff05516f967a8403eb9b457fa63457ab0976d0b5eb6995fd766209176400fdc8eb10c679a2990590171
diff --git a/media-plugins/vdr-text2skin/files/vdr-1.7.27.diff b/media-plugins/vdr-text2skin/files/vdr-1.7.27.diff
new file mode 100644
index 000000000000..9d3280cf5849
--- /dev/null
+++ b/media-plugins/vdr-text2skin/files/vdr-1.7.27.diff
@@ -0,0 +1,94 @@
+diff -Naur text2skin-1.3.2.orig/display.c text2skin-1.3.2/display.c
+--- text2skin-1.3.2.orig/display.c 2012-04-07 20:45:11.000000000 +0200
++++ text2skin-1.3.2/display.c 2012-04-07 20:45:47.000000000 +0200
+@@ -1233,17 +1233,17 @@
+
+ case tRecordingPriority:
+ return mRecording != NULL
+- ? (cxType)mRecording->priority
++ ? (cxType)mRecording->Priority()
+ : (cxType)false;
+
+ case tRecordingLifetime:
+ return mRecording != NULL
+- ? (cxType)mRecording->lifetime
++ ? (cxType)mRecording->Lifetime()
+ : (cxType)false;
+
+ case tRecordingDateTime:
+ return mRecording != NULL
+- ? (cxType)TimeType(mRecording->start, Token.Attrib.Text)
++ ? (cxType)TimeType(mRecording->Start(), Token.Attrib.Text)
+ : (cxType)false;
+
+ case tRecordingTitle:
+diff -Naur text2skin-1.3.2.orig/render.c text2skin-1.3.2/render.c
+--- text2skin-1.3.2.orig/render.c 2012-04-07 20:45:11.000000000 +0200
++++ text2skin-1.3.2/render.c 2012-04-07 20:48:29.000000000 +0200
+@@ -597,14 +597,14 @@
+ if (Marks) {
+ bool start = true;
+ for (const cMark *m = Marks->First(); m; m = Marks->Next(m)) {
+- txPoint pt(Pos.x + m->position * Size.w / Total, Pos.y);
++ txPoint pt(Pos.x + m->Position() * Size.w / Total, Pos.y);
+ if (Selected && start) {
+ const cMark *m2 = Marks->Next(m);
+ DrawRectangle(txPoint(pt.x, Pos.y + Size.h / 3),
+- txSize(((m2 ? m2->position : Total) - m->position)
++ txSize(((m2 ? m2->Position() : Total) - m->Position())
+ * Size.w / Total + 1, Size.h - Size.h * 2 / 3 + 1), Selected);
+ }
+- DrawMark(pt, Size, start, m->position == Current, false, Mark, Cur);
++ DrawMark(pt, Size, start, m->Position() == Current, false, Mark, Cur);
+ start = !start;
+ }
+ }
+@@ -614,15 +614,15 @@
+ if (Marks) {
+ bool start = true;
+ for (const cMark *m = Marks->First(); m; m = Marks->Next(m)) {
+- txPoint pt(Pos.x, Pos.y + m->position * Size.h / Total);
++ txPoint pt(Pos.x, Pos.y + m->Position() * Size.h / Total);
+ if (Selected && start) {
+ const cMark *m2 = Marks->Next(m);
+ DrawRectangle(txPoint(Pos.x + Size.w / 3, pt.y),
+ txSize(Size.w - Size.w * 2 / 3 + 1,
+- ((m2 ? m2->position : Total) - m->position)
++ ((m2 ? m2->Position() : Total) - m->Position())
+ * Size.h / Total + 1), Selected);
+ }
+- DrawMark(pt, Size, start, m->position == Current, true, Mark, Cur);
++ DrawMark(pt, Size, start, m->Position() == Current, true, Mark, Cur);
+ start = !start;
+ }
+ }
+diff -Naur text2skin-1.3.2.orig/common.c text2skin-1.3.2/common.c
+--- text2skin-1.3.2.orig/common.c 2012-04-07 20:54:59.000000000 +0200
++++ text2skin-1.3.2/common.c 2012-04-07 20:56:00.000000000 +0200
+@@ -255,11 +255,11 @@
+ int start = 1; // first frame
+ bool isStart = true;
+
+- for (cMark *m = marks.First(); m; m = marks.GetNext(m->position)) {
++ for (cMark *m = marks.First(); m; m = marks.GetNext(m->Position())) {
+ if (isStart)
+- start = m->position;
++ start = m->Position();
+ else
+- length += (double)(m->position - start + 1 + diffIFrame) / (60 * FramesPerSecond); // [min]
++ length += (double)(m->Position() - start + 1 + diffIFrame) / (60 * FramesPerSecond); // [min]
+
+ isStart = !isStart;
+ }
+diff -Naur text2skin-1.3.2.orig/status.c text2skin-1.3.2/status.c
+--- text2skin-1.3.2.orig/status.c 2012-04-07 20:59:39.000000000 +0200
++++ text2skin-1.3.2/status.c 2012-04-07 21:01:12.000000000 +0200
+@@ -314,7 +314,7 @@
+
+ case tReplayDateTime:
+ return mReplay != NULL
+- ? (cxType)TimeType(mReplay->start, Token.Attrib.Text)
++ ? (cxType)TimeType(mReplay->Start(), Token.Attrib.Text)
+ : (cxType)false;
+
+ case tReplayShortText:
diff --git a/media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2-Makefile.patch b/media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2-Makefile.patch
new file mode 100644
index 000000000000..cce51d79febc
--- /dev/null
+++ b/media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2-Makefile.patch
@@ -0,0 +1,71 @@
+diff --git a/Makefile b/Makefile
+index daa54d7..1163a8d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,6 +9,7 @@ STRIP=strip
+ # External image lib to use: imagemagick, graphicsmagick, imlib2 or none
+ IMAGELIB = imagemagick
+
++#
+
+ # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING
+ # -------------------------------------------------------------
+@@ -29,13 +30,18 @@ VERSION = $(shell grep 'const char \*cText2SkinPlugin::VERSION *=' $(PLUGIN).c |
+ ### The C++ compiler and options:
+
+ CXX ?= g++
+-CXXFLAGS ?= -fPIC -Wall -Woverloaded-virtual
++ifdef DEBUG
++CXXFLAGS ?= -Wall -Woverloaded-virtual
++else
++CXXFLAGS ?= -Wall -Woverloaded-virtual -O3
++endif
++CXXFLAGS += -fPIC
+
+ ### The directory environment:
+
+-VDRDIR = ../../..
+-LIBDIR = ../../lib
+-TMPDIR = /tmp
++VDRDIR ?= ../../..
++LIBDIR ?= ../../lib
++TMPDIR ?= /tmp
+
+ ### Make sure that necessary options are included (VDR >= 1.7.13):
+
+@@ -88,8 +94,7 @@ endif
+ ifdef DEBUG
+ CXXFLAGS += -g -fno-inline
+ DEFINES += -DDEBUG
+-else
+- CXXFLAGS += -O3
++ STRIP=
+ ifdef BENCH
+ DEFINES += -DBENCH
+ endif
+@@ -118,7 +123,7 @@ $(DEPFILE): Makefile
+ -include $(DEPFILE)
+
+ ### Internationalization (I18N):
+-
++#
+ PODIR = po
+ LOCALEDIR = $(VDRDIR)/locale
+ I18Npo = $(notdir $(wildcard $(PODIR)/*.po))
+@@ -134,6 +139,7 @@ $(I18Npot): $(wildcard *.c)
+ $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.po
+ @mkdir -p $(dir $@)
+ msgfmt -c -o $@ $<
++#
+
+ .PHONY: i18n
+ i18n: $(I18Npo:%.po=$(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo)
+@@ -143,7 +149,7 @@ i18n: $(I18Npo:%.po=$(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo)
+ libvdr-$(PLUGIN).so: $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
+ @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
+-ifndef DEBUG
++ifdef STRIP
+ $(STRIP) $(LIBDIR)/$@.$(APIVERSION)
+ endif
+
diff --git a/media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2_vdr-2.1.2.diff b/media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2_vdr-2.1.2.diff
new file mode 100644
index 000000000000..7a4873db751d
--- /dev/null
+++ b/media-plugins/vdr-text2skin/files/vdr-text2skin-1.3.2_vdr-2.1.2.diff
@@ -0,0 +1,15 @@
+diff -Naur text2skin-1.3.2.orig/render.c text2skin-1.3.2/render.c
+--- text2skin-1.3.2.orig/render.c 2013-10-26 22:29:16.000000000 +0200
++++ text2skin-1.3.2/render.c 2013-10-26 22:33:19.000000000 +0200
+@@ -813,7 +813,11 @@
+ switch (Token.Type) {
+ case tFreeDiskSpace: {
+ int FreeMB;
++#if APIVERSNUM > 20101
++ cVideoDirectory::VideoDiskSpace(&FreeMB);
++#else
+ VideoDiskSpace(&FreeMB);
++#endif
+ Dprintf("FreeMB: %d, attrib type is %d\n", FreeMB,Token.Attrib.Type);
+ return Token.Attrib.Type == aString && Token.Attrib.Text.length() > 0
+ ? (cxType)DurationType(FreeMB * 60 / MB_PER_MINUTE,
diff --git a/media-plugins/vdr-text2skin/metadata.xml b/media-plugins/vdr-text2skin/metadata.xml
new file mode 100644
index 000000000000..bd64b5471f53
--- /dev/null
+++ b/media-plugins/vdr-text2skin/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <use>
+ <flag name="contrib">Install user contributed scripts</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild b/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild
new file mode 100644
index 000000000000..88272279b7b2
--- /dev/null
+++ b/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit vdr-plugin-2
+
+VERSION="783" # changes with every version / new file :-(
+
+DESCRIPTION="VDR text2skin PlugIn"
+HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-text2skin"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE="contrib doc graphicsmagick +imagemagick imlib"
+
+RDEPEND="
+ >=media-video/vdr-1.6.0
+ imagemagick? (
+ graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
+ !graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
+ )
+ !imagemagick? (
+ imlib? (
+ media-libs/imlib2
+ >=media-video/vdr-1.6.0[-graphtft]
+ )
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+KEEP_I18NOBJECT="yes"
+
+src_prepare() {
+ local imagelib=
+
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+
+ sed -i common.c -e 's#cPlugin::ConfigDirectory(PLUGIN_NAME_I18N)#"/usr/share/vdr/"PLUGIN_NAME_I18N#'
+
+ if ! has_version ">=media-video/vdr-1.7.13"; then
+ sed -i "s:-include \$(VDRDIR)/Make.global:#-include \$(VDRDIR)/Make.global:" Makefile
+ fi
+
+ if use imagemagick; then
+ if use graphicsmagick; then
+ imagelib="graphicsmagick"
+ else
+ imagelib="imagemagick"
+ fi
+ else
+ if use imlib; then
+ imagelib="imlib2"
+ else
+ imagelib="none"
+ fi
+ fi
+
+ sed -i -e "s:\(IMAGELIB[[:space:]]*=\) .*:\1 ${imagelib}:" Makefile || die
+
+ vdr-plugin-2_src_prepare
+
+ if has_version ">=media-video/vdr-1.7.27"; then
+ epatch "${FILESDIR}/vdr-1.7.27.diff"
+ fi
+
+ epatch "${FILESDIR}/${P}_vdr-2.1.2.diff"
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ keepdir "/usr/share/vdr/${VDRPLUGIN}"
+
+ dodoc CONTRIBUTORS
+
+ if use doc; then
+ dodoc Docs/{Reference,Tutorial}.txt
+ fi
+
+ if use contrib; then
+ dodoc -r contrib/
+ fi
+}