summaryrefslogtreecommitdiff
path: root/media-tv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-09 18:22:08 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-09 18:22:08 +0000
commit33e6a9c65627177f4cbc55a0bd2f96261e301053 (patch)
treeed39464fc52204333de6015e4268f250a6a0e339 /media-tv
parent8efeb99ef599df915827995bf508ece1903afcf9 (diff)
media-tv/tv-lite : new package
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/tv-lite/Manifest1
-rw-r--r--media-tv/tv-lite/files/tv-lite-0.7.6-desktopfile-qa.patch11
-rw-r--r--media-tv/tv-lite/files/tv-lite-0.7.6-sopprotocol.patch44
-rw-r--r--media-tv/tv-lite/tv-lite-0.7.6.ebuild55
4 files changed, 111 insertions, 0 deletions
diff --git a/media-tv/tv-lite/Manifest b/media-tv/tv-lite/Manifest
new file mode 100644
index 00000000..dc76600a
--- /dev/null
+++ b/media-tv/tv-lite/Manifest
@@ -0,0 +1 @@
+DIST tv-lite-0.7.6.tar.gz 307748 BLAKE2B e9f8210d926e45f9a73c690345c6fba2329fefff218936f3beb22d2c9183c6bdb0f34e4c684acbb8b813f690f51b8b8916532231ae7702e6d7edc7cdbf8f09e8 SHA512 c6bd9ea0bf1aaa09589022337e3152f2eb171ca0e7ae7dad1a8a13bd8209eb8e6df26db37e0dac447d103a22238efe8dd55ced912aab6ad05467f765538ccab0
diff --git a/media-tv/tv-lite/files/tv-lite-0.7.6-desktopfile-qa.patch b/media-tv/tv-lite/files/tv-lite-0.7.6-desktopfile-qa.patch
new file mode 100644
index 00000000..74750e12
--- /dev/null
+++ b/media-tv/tv-lite/files/tv-lite-0.7.6-desktopfile-qa.patch
@@ -0,0 +1,11 @@
+diff -Nur a/TVLite.desktop b/src/TVLite.desktop
+--- a/TVLite.desktop 2023-04-29 18:43:36.000000000 +0100
++++ b/TVLite.desktop 2024-02-09 16:24:10.638330476 +0000
+@@ -2,7 +2,6 @@
+ Type=Application
+ Encoding=UTF-8
+ Name=TV-Lite
+-Type=Application
+ Categories=AudioVideo
+ Comment=TV online viewer
+ Comment[hr]=Mrežni TV preglednik
diff --git a/media-tv/tv-lite/files/tv-lite-0.7.6-sopprotocol.patch b/media-tv/tv-lite/files/tv-lite-0.7.6-sopprotocol.patch
new file mode 100644
index 00000000..25d31362
--- /dev/null
+++ b/media-tv/tv-lite/files/tv-lite-0.7.6-sopprotocol.patch
@@ -0,0 +1,44 @@
+diff -Nur a/sopprotocol.cpp b/sopprotocol.cpp
+--- a/sopprotocol.cpp 2023-04-29 18:43:36.000000000 +0100
++++ b/sopprotocol.cpp 2024-02-09 16:14:43.390296277 +0000
+@@ -52,7 +52,7 @@
+
+ ///////////////////////////////////////////////////////////////////////////
+
+-void CSopProtocol::SetProtoPort(uint32_t port)
++void CSopProtocol::SetProtoPort(wxInt32 port)
+ {
+ m_protoport = port;
+ };
+@@ -66,7 +66,7 @@
+
+ ///////////////////////////////////////////////////////////////////////////
+
+-void CSopProtocol::SetPlayerPort(uint32_t port)
++void CSopProtocol::SetPlayerPort(wxInt32 port)
+ {
+ m_playerport = port;
+ };
+diff -Nur a/sopprotocol.h b/sopprotocol.h
+--- a/sopprotocol.h 2023-04-29 18:43:36.000000000 +0100
++++ b/sopprotocol.h 2024-02-09 16:14:32.763295637 +0000
+@@ -31,15 +31,15 @@
+ void SetCmd(wxString cmd);
+
+ int GetProtoport();
+- void SetProtoPort(uint32_t port);
++ void SetProtoPort(wxInt32 port);
+
+ int GetPlayerPort();
+- void SetPlayerPort(uint32_t port);
++ void SetPlayerPort(wxInt32 port);
+
+
+ private:
+- uint32_t m_playerport;
+- uint32_t m_protoport;
++ wxInt32 m_playerport;
++ wxInt32 m_protoport;
+ long m_protopid;
+ int SearchSop(wxString &cmd);
+
diff --git a/media-tv/tv-lite/tv-lite-0.7.6.ebuild b/media-tv/tv-lite/tv-lite-0.7.6.ebuild
new file mode 100644
index 00000000..7228c6db
--- /dev/null
+++ b/media-tv/tv-lite/tv-lite-0.7.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2024 Redcore Linux Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="IPTV viewer with Sopcast and Acestream handling capabilities."
+HOMEPAGE="http://tv-lite.com"
+SRC_URI="https://gitlab.com/cburneci/${PN}/-/archive/${PV}/${P}.tar.gz"
+
+LICENSE="GPLv2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="gtk +gtk3 sopcast"
+REQUIRED_USE="^^ ( gtk gtk3 )"
+
+DEPEND="
+ dev-libs/rapidjson
+ "
+RDEPEND="${DEPEND}
+ dev-db/sqlite
+ media-video/vlc
+ net-misc/curl
+ sys-apps/util-linux
+ gtk? ( x11-libs/wxGTK:3.0 )
+ gtk3? (
+ || (
+ x11-libs/wxGTK:3.2-gtk3
+ x11-libs/wxGTK:3.0-gtk3
+ )
+ )
+ sopcast? ( media-tv/sopcast )
+ "
+BDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/"${P}"-sopprotocol.patch
+ "${FILESDIR}"/"${P}"-desktopfile-qa.patch
+)
+
+S="${WORKDIR}/${P}/src"
+
+src_configure() {
+ local mycmakeargs=(
+ -DWX_CONFIG=wx-config
+ )
+ if use gtk; then
+ local mycmakeargs+=(
+ -DGTKVER=gtk+-2.0
+ )
+ fi
+ cmake_src_configure
+}