You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
2.9 KiB
118 lines
2.9 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
12 years ago
|
inherit vdr-plugin-2
|
||
13 years ago
|
|
||
9 years ago
|
VERSION="1252" # every bump, new version!
|
||
13 years ago
|
|
||
5 years ago
|
RESTRICT="test"
|
||
|
|
||
13 years ago
|
DESCRIPTION="VDR Plugin: burn records on DVD"
|
||
6 years ago
|
HOMEPAGE="https://projects.vdr-developer.org/projects/plg-burn"
|
||
13 years ago
|
SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
|
||
|
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
SLOT="0"
|
||
|
LICENSE="GPL-2"
|
||
|
IUSE="dvdarchive"
|
||
|
|
||
3 years ago
|
DEPEND="media-libs/gd[png,truetype,jpeg]
|
||
|
media-video/vdr"
|
||
13 years ago
|
RDEPEND="${DEPEND}
|
||
3 years ago
|
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"
|
||
13 years ago
|
|
||
|
# depends that are not rdepend
|
||
|
DEPEND="${DEPEND}
|
||
|
>=dev-libs/boost-1.32.0"
|
||
|
|
||
|
S="${WORKDIR}/${P#vdr-}"
|
||
|
|
||
|
src_prepare() {
|
||
12 years ago
|
vdr-plugin-2_src_prepare
|
||
13 years ago
|
|
||
5 years ago
|
eapply \
|
||
9 years ago
|
"${FILESDIR}"/${P}-r1_gentoo-path.diff \
|
||
12 years ago
|
"${FILESDIR}"/${P}_setdefaults.diff \
|
||
5 years ago
|
"${FILESDIR}"/${P}_makefile.diff
|
||
|
eapply -p0 "${FILESDIR}"/${P}-missing-include-for-function-setpriority.patch
|
||
13 years ago
|
|
||
|
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:'
|
||
|
|
||
12 years ago
|
sed -i Makefile -e 's:DEFINES += -DTTXT_SUBTITLES:#DEFINES += -DTTXT_SUBTITLES:'
|
||
|
|
||
9 years ago
|
if has_version ">=media-video/vdr-2.1.2"; then
|
||
|
sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \
|
||
|
-i jobs.c
|
||
12 years ago
|
fi
|
||
|
|
||
9 years ago
|
# ttf-bitstream-vera deprecated, bug #335782
|
||
|
sed -e "s:Vera:arial:" -i skins.c
|
||
12 years ago
|
|
||
13 years ago
|
fix_vdr_libsi_include scanner.c
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
12 years ago
|
vdr-plugin-2_src_install
|
||
13 years ago
|
|
||
|
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
|
||
|
|
||
12 years ago
|
vdr-plugin-2_pkg_postinst
|
||
13 years ago
|
|
||
|
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
|
||
|
}
|