summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-skinelchihd/vdr-skinelchihd-1.2.9.ebuild
blob: 3e25e68356ecc56202be34cc662fa959911a0a57 (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
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit vdr-plugin-2

DESCRIPTION="VDR Skin Plugin: skinelchihd"
HOMEPAGE="https://github.com/FireFlyVDR/vdr-plugin-skinelchihd"
SRC_URI="https://github.com/FireFlyVDR/vdr-plugin-skinelchihd/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/vdr-plugin-skinelchihd-${PV}"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="graphicsmagick +imagemagick"
REQUIRED_USE="^^ ( imagemagick graphicsmagick )"

DEPEND=">=media-video/vdr-2.6:=
	imagemagick? ( media-gfx/imagemagick )
	graphicsmagick? ( media-gfx/graphicsmagick )"
RDEPEND="${DEPEND}"
BDEPEND="acct-user/vdr"

src_compile() {
	if use graphicsmagick; then
		emake IMAGELIB=graphicsmagick
	else
		emake
	fi
}

src_install() {
	vdr-plugin-2_src_install

	insinto /etc/vdr/themes
	doins "${S}"/themes/*.theme
	fowners vdr:vdr /etc/vdr -R
}