summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-freecell
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-freecell
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-freecell')
-rw-r--r--media-plugins/vdr-freecell/Manifest9
-rw-r--r--media-plugins/vdr-freecell/files/gcc-3.4.patch139
-rw-r--r--media-plugins/vdr-freecell/files/vdr-freecell-0.0.2-gentoo.diff24
-rw-r--r--media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_vdr-1.5.4-compile.diff20
-rw-r--r--media-plugins/vdr-freecell/files/vdr-freecell-time_ms.diff12
-rw-r--r--media-plugins/vdr-freecell/metadata.xml8
-rw-r--r--media-plugins/vdr-freecell/vdr-freecell-0.0.2-r3.ebuild37
7 files changed, 249 insertions, 0 deletions
diff --git a/media-plugins/vdr-freecell/Manifest b/media-plugins/vdr-freecell/Manifest
new file mode 100644
index 000000000000..a973bc3b7522
--- /dev/null
+++ b/media-plugins/vdr-freecell/Manifest
@@ -0,0 +1,9 @@
+AUX gcc-3.4.patch 4223 SHA256 4db76e063f63321fff96a2e9ac95277f4bb2c999b5d3e7be673140ba6c3da3cb SHA512 107dc08995f98beddab329dba4d332df9dfd739b3797749a0c7810e4bf34660db2d9339eafc0142287d5714ed6c43d0915afd8d35584d03a78735258754539d9 WHIRLPOOL 5c6ed6a0419331c4f9dfcea16beb26476bd5be90cd0a3e79ca9ac5090256deee722e940274cf60bf34ff5cbf2121a33333de32c901ee4abb3c5826ae5918030c
+AUX vdr-freecell-0.0.2-gentoo.diff 997 SHA256 fd0f3274a38c4a7f8010bc6fef9726e601b2468d847979c5111eb2f16d5ee276 SHA512 168ea085b2ffd0385ab3258e030344651dd71fd8342e47d699f9a92498ee0016e3c9ac13d745a8580a30c36c167e6169c9234c530641739b7b65b0f5ce308407 WHIRLPOOL bfb8e60c79a9e2598ed5f472f9c5596f024f0907f67b545c895354891dca98d601603997ac5098921fc05cf0eff80ba26442965ebbd89d5d26abf2c5b7076e99
+AUX vdr-freecell-0.0.2_vdr-1.5.4-compile.diff 570 SHA256 e94598688d906e114754ba1309f5d9bb14bcf5b52e1444f126d4539e1cb77903 SHA512 63add756e5f7ec84728f48545301792f8ea1dcc9851b6d9e3c92b84b90bb9f73acfd01b32512e204018540c6ce91f1b7a5c156688b9f41f6da2b1cf8286dd37c WHIRLPOOL f13496faa6c9576a45773fbdda3d794328168ccbe4dcd4f75f127cea037d3c89200e1009d7a384a31024f59bcc409886f972ed93506996379daf6f5d1cb1c939
+AUX vdr-freecell-time_ms.diff 332 SHA256 52a2a95849e168704ac9dcae92b6cb1ac4250aa1aedc8ab0f37402c69c653f6f SHA512 8a00f7d82fc48adc29ebff3802c971387306735b0be562c2cc25813c70a68f386708f8e10b10ec3bde7d634a6d68b829558c97bd12705091c7237dfc279ea542 WHIRLPOOL 25087efc90710a3e62ab95f9a8a1bea8be9b32a077f5467d291a4a2b672a6db64b7eb8065f85c9d8eaf909f6433cd1bd2e9f45925f9bb501cd2c442c338294de
+DIST vdr-freecell-0.0.2.tgz 44019 SHA256 ca3aa2823b59f100ff2d1b7a5a3000e7320ac1e822f94bfc530c3a2b47654bba SHA512 78288f10e56baffdd42a0448c118ccd619bdb3f94123a89661918976fc818052f45db0e3a6e0e45794dbe9f3db00b9ccfc140426e0f26d647c863c666827feb8 WHIRLPOOL afcf788ad80706ee2e493a4ac8bcd409df0da331e74affaedbe1e88ebe5470aece266a77cfd616771d87262df8ab5caffbdc2f18cd5f05483c1cdbff5ec37d0f
+EBUILD vdr-freecell-0.0.2-r3.ebuild 827 SHA256 d54289f83a063eaa0347968e4f4f66bbbf855f3ae1e27d48cc786d74d26ca819 SHA512 234e02cf585af8c959b9d3b260b1aaa1f8cca09d4ec26fc0da9c9cc1563ed442e430422c450cb73a2823781c7d9974df4a8ec3da39f8329022782d2799d56176 WHIRLPOOL e6f81a5ab55e6bfbdab0cbc194b320710f04f8c18030867b86858554a32ca30c8da8c58ecb3022aeea1103b568da5fb47017cffe554b93f3c16244e000ea1f1c
+MISC ChangeLog 2892 SHA256 27f340cc4a9ac3f7209b9f6acb86e94d0c0acfbdfe166a0b9f70eccba2389d68 SHA512 1a2bf65f98fb44e13fe857a25c09f073e89c4af07c910907318d22396578cb84d750f59fabcfcc7d91be315aac4d8c2b084d707cdec41c0e21b02bf9bbeaded5 WHIRLPOOL 2be3592bf014b2f2dbfb94844aad4b124e8fbdbc24408fdffc2902ea0bef4b070142ed3ce1f47cf77f591c16a912f556d9dc51889e38f0ee41d3f2d6a27296a3
+MISC ChangeLog-2015 1467 SHA256 1677ea257bb2833246900e989a87de2e0d2c957b51fdab2eba01b90be9d52671 SHA512 6b7ca0587b7088a56620ebedce0da5c784acab4262f8a415fed97a7f5b843eb9521b9fbde314e1e87bc36c3d7c192b4c143e17d08a2aa321d23bbd26b90237f9 WHIRLPOOL 3f3adc3e4a86181a888cf753c008ce9f5b1eb0f01dec54e302669c5370abd71089f9aa5d85aecb76cd487d783867ca0c6155b78397eaf2568d9b3f3d87b80852
+MISC metadata.xml 252 SHA256 8a12436fc602aeff9753f0ab05fd33eaf04b11c7375c1bf4671d5ea0e76eaab4 SHA512 a212f4d0fb9a7a79e6c203fe2722bdc136618f0058b01c53df37f5a507f1113ca007cabbff7abdd4041d20a901e7ba0ea62c95f22ba79b1e801a2662c00b3fdb WHIRLPOOL 434d23a73e552dd5957902a4d7ef8c3ce4ab12bf8a530428fb6048539d55f7ddfe6b16c9521055ba1578ca2e01a318d7e340aebaaa45c8f79e900705ba67c552
diff --git a/media-plugins/vdr-freecell/files/gcc-3.4.patch b/media-plugins/vdr-freecell/files/gcc-3.4.patch
new file mode 100644
index 000000000000..a6eb78fe8c9e
--- /dev/null
+++ b/media-plugins/vdr-freecell/files/gcc-3.4.patch
@@ -0,0 +1,139 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+
+## 02_gcc3.4-fix.dpatch by Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix from Andreas Jochens <aj@andaco.de>, to compile the plugin
+## DP: with gcc-3.4
+
+@DPATCH@
+diff -urNad /home/chelli/vdr/cvs/vdr/vdr-plugin-freecell/tools/list.h vdr-plugin-freecell/tools/list.h
+--- a/vdr-plugin-freecell/tools/list.h 2004-02-11 13:33:26.000000000 +0100
++++ b/vdr-plugin-freecell/tools/list.h 2004-09-11 16:00:20.000000000 +0200
+@@ -90,22 +90,22 @@
+ T &SetNextCurrent ();
+ T &SetPrevCurrent ();
+
+- friend cTBList<T> &operator+= <> (cTBList<T> &list1, const cTBList<T> &list2);
+- friend cTBList<T> &operator+= <> (cTBList<T> &list, const T &element);
++// friend cTBList<T> &operator+= <> (cTBList<T> &list1, const cTBList<T> &list2);
++// friend cTBList<T> &operator+= <> (cTBList<T> &list, const T &element);
+
+- friend cTBList<T> operator+ <> (const cTBList<T> &list1, const cTBList<T> &list2);
+- friend cTBList<T> operator+ <> (const T &element, const cTBList<T> &list);
+- friend cTBList<T> operator+ <> (const cTBList<T> &list, const T &element);
++// friend cTBList<T> operator+ <> (const cTBList<T> &list1, const cTBList<T> &list2);
++// friend cTBList<T> operator+ <> (const T &element, const cTBList<T> &list);
++// friend cTBList<T> operator+ <> (const cTBList<T> &list, const T &element);
+
+ /*friend cSource &operator<< <> (cSource &dest, const cTBList<T> &list);
+- friend cSource &operator>> <> (cSource &dest, cTBList<T> &list);*/
++// friend cSource &operator>> <> (cSource &dest, cTBList<T> &list);*/
+ };
+
+ // Template Implementation (inline funcs)
+
+ template<class T>
+ inline int cTBList<T>::Find (const T & i) {
+- cTBList<T>::cItem *item = m_First;
++ typename cTBList<T>::cItem *item = m_First;
+ int index = 0;
+
+ while (item && (item->Data != i)) {
+@@ -203,7 +203,7 @@
+
+ template<class T>
+ typename cTBList<T>::cItem *cTBList<T>::NewItem (cTBList<T>::cItem *pBefore, cTBList<T>::cItem *pAfter) const {
+- cTBList<T>::cItem *item = new cTBList<T>::cItem;
++ typename cTBList<T>::cItem *item = new typename cTBList<T>::cItem;
+
+ item->Next = pAfter;
+ item->Prev = pBefore;
+@@ -235,7 +235,7 @@
+ if ((int)idx == m_CurPos)
+ return m_Current;
+
+- cTBList<T>::cItem *item;
++ typename cTBList<T>::cItem *item;
+ int dist = idx - m_CurPos;
+ bool direct;
+
+@@ -271,7 +271,7 @@
+
+ template<class T>
+ T &cTBList<T>::Prepend () {
+- cTBList<T>::cItem *item = NewItem(NULL, m_First);
++ typename cTBList<T>::cItem *item = NewItem(NULL, m_First);
+
+ m_First = m_Current = item;
+ if (!m_Last)
+@@ -285,7 +285,7 @@
+
+ template<class T>
+ T &cTBList<T>::Append () {
+- cTBList<T>::cItem *item = NewItem(m_Last, NULL);
++ typename cTBList<T>::cItem *item = NewItem(m_Last, NULL);
+
+ m_Last = m_Current = item;
+ if (!m_First)
+@@ -317,13 +317,13 @@
+ return true;
+ }
+
+- cTBList<T>::cItem *nextItem = Locate(idx);
++ typename cTBList<T>::cItem *nextItem = Locate(idx);
+ if (!nextItem)
+ return false;
+
+- cTBList<T>::cItem *prevItem = nextItem->Prev;
++ typename cTBList<T>::cItem *prevItem = nextItem->Prev;
+
+- cTBList<T>::cItem *item = NewItem(prevItem, nextItem);
++ typename cTBList<T>::cItem *item = NewItem(prevItem, nextItem);
+ item->Data = i;
+
+ m_CurPos = idx;
+@@ -338,7 +338,7 @@
+ if (!m_Current)
+ return NULL;
+
+- cTBList<T>::cItem *item = m_Current;
++ typename cTBList<T>::cItem *item = m_Current;
+ if (item == m_First) {
+ if (m_First = item->Next)
+ m_First->Prev = NULL;
+@@ -370,7 +370,7 @@
+ if (Find(i) == -1)
+ return false;
+
+- cTBList<T>::cItem *item = Unlink();
++ typename cTBList<T>::cItem *item = Unlink();
+ if (!item)
+ return false;
+
+@@ -383,7 +383,7 @@
+ if (!Locate(idx))
+ return false;
+
+- cTBList<T>::cItem *item = Unlink();
++ typename cTBList<T>::cItem *item = Unlink();
+ if (!item)
+ return false;
+
+@@ -412,13 +412,13 @@
+
+ template<class T>
+ void cTBList<T>::Clear () {
+- cTBList<T>::cItem *item = m_First;
++ typename cTBList<T>::cItem *item = m_First;
+
+ m_First = m_Last = m_Current = NULL;
+ m_Count = 0;
+ m_CurPos = -1;
+
+- cTBList<T>::cItem *Prev;
++ typename cTBList<T>::cItem *Prev;
+ while (item) {
+ Prev = item;
+ item = item->Next;
+
diff --git a/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2-gentoo.diff b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2-gentoo.diff
new file mode 100644
index 000000000000..96badefcd3ab
--- /dev/null
+++ b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2-gentoo.diff
@@ -0,0 +1,24 @@
+diff -Naur freecell-0.0.2.orig/cards.c freecell-0.0.2/cards.c
+--- freecell-0.0.2.orig/cards.c 2007-01-08 22:50:05.921165375 +0100
++++ freecell-0.0.2/cards.c 2007-01-08 22:53:55.358240251 +0100
+@@ -34,7 +34,7 @@
+ mShape = Shape;
+ mValue = Value;
+
+- asprintf(&filename, "%s/%s_%s.xpm", cPlugin::ConfigDirectory("freecell"),
++ asprintf(&filename, "%s/%s_%s.xpm", cPlugin::ConfigDirectory("../../../usr/share/vdr/freecell"),
+ ShapeNames[mShape], ValueNames[mValue]);
+ ::LoadXpm(this, filename);
+ free(filename);
+diff -Naur freecell-0.0.2.orig/cursor.c freecell-0.0.2/cursor.c
+--- freecell-0.0.2.orig/cursor.c 2007-01-08 22:50:05.921165375 +0100
++++ freecell-0.0.2/cursor.c 2007-01-08 22:52:58.234984984 +0100
+@@ -8,7 +8,7 @@
+
+ mX = mY = -1;
+
+- asprintf(&filename, "%s/cursor.xpm", cPlugin::ConfigDirectory("freecell"));
++ asprintf(&filename, "%s/cursor.xpm", cPlugin::ConfigDirectory("../../../usr/share/vdr/freecell"));
+ ::LoadXpm(this, filename, clrTransparent);
+ free(filename);
+ }
diff --git a/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_vdr-1.5.4-compile.diff b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_vdr-1.5.4-compile.diff
new file mode 100644
index 000000000000..bb9153c5cda0
--- /dev/null
+++ b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_vdr-1.5.4-compile.diff
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 93_freecell-0.0.2-1.5.4.dpatch by Thomas Günther <tom@toms-cafe.de>
+## http://toms-cafe.de/vdr/download/freecell-0.0.2-1.5.4.diff
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Changes for VDR >= 1.5.4.
+
+@DPATCH@
+--- freecell-0.0.2/tools/list.h
++++ freecell-0.0.2/tools/list.h
+@@ -523,7 +523,7 @@
+ return neu;
+ }
+
+-typedef class cTBList<cTBString> cStringList;
++//typedef class cTBList<cTBString> cStringList;
+ typedef class cTBList<void*> cPtrList;
+
+ // Special Overrides for String lists
+
diff --git a/media-plugins/vdr-freecell/files/vdr-freecell-time_ms.diff b/media-plugins/vdr-freecell/files/vdr-freecell-time_ms.diff
new file mode 100644
index 000000000000..276422e225b4
--- /dev/null
+++ b/media-plugins/vdr-freecell/files/vdr-freecell-time_ms.diff
@@ -0,0 +1,12 @@
+diff -ru freecell-0.0.2-orig/cards.c freecell-0.0.2/cards.c
+--- freecell-0.0.2-orig/cards.c 2005-11-20 21:19:31.000000000 +0100
++++ freecell-0.0.2/cards.c 2005-11-20 21:19:15.000000000 +0100
+@@ -52,7 +52,7 @@
+ mX = X;
+ mY = Y;
+ mStacked = Stacked;
+- mSeed = time_ms();
++ mSeed = cTimeMs::Now();
+ }
+
+ cCardStack::~cCardStack() {
diff --git a/media-plugins/vdr-freecell/metadata.xml b/media-plugins/vdr-freecell/metadata.xml
new file mode 100644
index 000000000000..8966b0c87542
--- /dev/null
+++ b/media-plugins/vdr-freecell/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r3.ebuild b/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r3.ebuild
new file mode 100644
index 000000000000..342e259aa110
--- /dev/null
+++ b/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR plugin: play 'Freecell' on the On Screen Display"
+HOMEPAGE="http://www.magoa.net/linux/index.php?view=freecell"
+SRC_URI="http://www.magoa.net/linux/files/${P}.tgz
+ mirror://vdrfiles/${PN}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-2"
+
+PATCHES=("${FILESDIR}/${PN}-time_ms.diff"
+ "${FILESDIR}/gcc-3.4.patch"
+ "${FILESDIR}/${P}-gentoo.diff"
+ "${FILESDIR}/${P}_vdr-1.5.4-compile.diff")
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ sed -e "s:RegisterI18n://RegisterI18n:" -i freecell.c
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ insopts -m0644 -ovdr -gvdr
+ insinto /usr/share/vdr/freecell
+ doins "${S}/${VDRPLUGIN}"/*
+}