summaryrefslogtreecommitdiff
path: root/media-tv/tv-lite/tv-lite-0.7.6.ebuild
blob: 7228c6db0e9f1b114edb73b1407ea02e165e9bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
}