blob: 64f1eb532afe3e0cfe82387cd4855b907d8ce888 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-skinelchi/vdr-skinelchi-0.2.7-r1.ebuild,v 1.1 2013/01/28 18:38:05 hd_brummy Exp $
EAPI="5"
inherit vdr-plugin-2
MY_P=${P/_pre/pre}
DESCRIPTION="Video Disk Recorder - Skin Plugin"
HOMEPAGE="http://firefly.vdr-developer.org/skinelchi"
SRC_URI="http://firefly.vdr-developer.org/skinelchi/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="imagemagick"
DEPEND=">=media-video/vdr-1.6
imagemagick? ( media-gfx/imagemagick )"
RDEPEND="x11-themes/vdr-channel-logos"
S=${WORKDIR}/${MY_P#vdr-}
VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.1.1_pre2-r1.sh"
src_prepare() {
vdr-plugin-2_src_prepare
if ! use imagemagick; then
einfo "Disabling imagemagick-support."
sed -i "${S}"/Makefile \
-e '/^[[:space:]]*SKINELCHI_HAVE_IMAGEMAGICK = 1/s/^/#/'
fi
sed -i "${S}"/DisplayChannel.c \
-e "s:/hqlogos::" \
-e "s:/logos::"
if has_version ">=media-video/vdr-1.7.33"; then
sed -e "s:int TimerMatch:eTimerMatch TimerMatch:" \
-i DisplayChannel.c
fi
}
|