summaryrefslogtreecommitdiff
blob: f780df71e23e4827d217556ae01c9b13258eea34 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/vdr-dvdconvert-1.0.2.ebuild,v 1.2 2007/01/15 18:46:03 hd_brummy Exp $

inherit vdr-plugin eutils

DESCRIPTION="VDR plugin: for exec dvd2vdr & dvd2dvd scripts"
HOMEPAGE="http://home.lausitz.net/lini/vdr/"
SRC_URI="http://home.lausitz.net/lini/vdr/${P}.tar.bz2
		projectx? ( http://dev.gentoo.org/~hd_brummy/distfiles/px-files-20070104.tar.bz2 )"

KEYWORDS="~x86 ~amd64"
SLOT="0"
LICENSE="GPL-2"
IUSE="projectx"

RDEPEND="media-video/vdr
	>=media-video/dvdauthor-0.6.10
	>=media-video/vobcopy-1.0.0
	>=media-video/m2vrequantizer-20060306
	media-video/transcode
	media-video/tcmplex-panteltje
	media-libs/a52dec
	media-sound/lame
	media-sound/toolame
	projectx? ( media-video/projectx )"

PATCHES="${FILESDIR}/${P}-gentoo.diff ${FILESDIR}/${P}-vobcopy-perm.diff"

pkg_setup() {
	vdr-plugin_pkg_setup

	if has_version "<=media-video/dvdconvert-1.0.0" ; then
		echo
		eerror "Found existing media-video/dvdconvert install"
		elog "Please unmerge media-video/dvdconvert at first"
		elog "and cleanup all old config files of media-video/dvdconvert"
		die "Found existing media-video/dvdconvert install"
	fi
}

src_install() {
	vdr-plugin_src_install

	insinto /usr/share/vdr/dvdconvert
	doins ${S}/scripts/dvdconvert.{conf,conf.save}

	use projectx && insinto /usr/share/vdr/dvdconvert/pX
	use projectx && doins ${WORKDIR}/px-files/*

	exeinto /usr/share/vdr/dvdconvert/bin
	doexe ${S}/scripts/*.sh

	insinto /etc/vdr/commands
	doins ${FILESDIR}/commands.dvdconvert.conf

	insinto /etc/vdr/plugins/dvdconvert
	newins   ${FILESDIR}/dvd2dvdr-${PV}.conf dvdconvert

	insinto	/etc/logrotate.d
	newins	${FILESDIR}/dvdlogrotate dvdconvert

	diropts -ovdr -gvdr
	keepdir	/var/log/dvdconvert
	keepdir /var/vdr/video/.dvdconvert

	dodoc README-PLUGIN
}