blob: 09c8b137bc7c0e56750b5a2d3fb30ff82ce94889 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit vdr-plugin-2
VERSION="1252" # every bump, new version!
RESTRICT="test"
DESCRIPTION="VDR Plugin: burn records on DVD"
HOMEPAGE="https://projects.vdr-developer.org/projects/plg-burn"
SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="dvdarchive"
DEPEND="media-libs/gd[png,truetype,jpeg]
media-video/vdr"
RDEPEND="${DEPEND}
dvdarchive? ( media-video/vdrtools-genindex )
>=app-cdr/dvd+rw-tools-5.21
>=dev-libs/libcdio-0.71
media-fonts/corefonts
>=media-video/dvdauthor-0.6.14
>=media-video/mjpegtools-1.6.2[png]
>=media-video/projectx-0.90.4.00_p32
media-video/transcode
sys-apps/util-linux"
# depends that are not rdepend
DEPEND="${DEPEND}
>=dev-libs/boost-1.32.0"
S="${WORKDIR}/${P#vdr-}"
src_prepare() {
vdr-plugin-2_src_prepare
eapply \
"${FILESDIR}"/${P}-r1_gentoo-path.diff \
"${FILESDIR}"/${P}_setdefaults.diff \
"${FILESDIR}"/${P}_makefile.diff
eapply -p0 "${FILESDIR}"/${P}-missing-include-for-function-setpriority.patch
use dvdarchive && sed -i Makefile \
-e "s:#ENABLE_DMH_ARCHIVE:ENABLE_DMH_ARCHIVE:"
sed -i Makefile \
-e 's:^ISODIR=.*$:ISODIR=/var/vdr/video/dvd-images:'
sed -i Makefile -e 's:DEFINES += -DTTXT_SUBTITLES:#DEFINES += -DTTXT_SUBTITLES:'
if has_version ">=media-video/vdr-2.1.2"; then
sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \
-i jobs.c
fi
# ttf-bitstream-vera deprecated, bug #335782
sed -e "s:Vera:arial:" -i skins.c
fix_vdr_libsi_include scanner.c
}
src_install() {
vdr-plugin-2_src_install
dobin "${S}"/*.sh
insinto /usr/share/vdr/burn
doins "${S}"/burn/menu-silence.mp2
newins "${S}"/burn/menu-button.png menu-button-default.png
newins "${S}"/burn/menu-bg.png menu-bg-default.png
dosym menu-bg-default.png /usr/share/vdr/burn/menu-bg.png
dosym menu-button-default.png /usr/share/vdr/burn/menu-button.png
newins "${S}"/burn/ProjectX.ini projectx-vdr.ini
fowners -R vdr:vdr /usr/share/vdr/burn
(
diropts -ovdr -gvdr
keepdir /usr/share/vdr/burn/counters
)
}
pkg_preinst() {
if [[ -d ${ROOT}/etc/vdr/plugins/burn && ( ! -L ${ROOT}/etc/vdr/plugins/burn ) ]]; then
einfo "Moving /etc/vdr/plugins/burn away"
mv "${ROOT}"/etc/vdr/plugins/burn "${ROOT}"/etc/vdr/plugins/burn_old
fi
}
pkg_postinst() {
local DMH_FILE="${ROOT}/usr/share/vdr/burn/counters/standard"
if [[ ! -e "${DMH_FILE}" ]]; then
echo 0001 > "${DMH_FILE}"
chown vdr:vdr "${DMH_FILE}"
fi
vdr-plugin-2_pkg_postinst
einfo "This ebuild comes only with the standard template"
einfo "'emerge vdr-burn-templates' for more templates"
einfo "To change the templates, use the vdr-image plugin"
if [[ -e ${ROOT}/etc/vdr/reccmds/reccmds.burn.conf ]]; then
eerror
eerror "Please remove the following unneeded file:"
eerror "\t/etc/vdr/reccmds/reccmds.burn.conf"
eerror
fi
}
|