blob: 8ad8a61a3f3b4b5c4b5918bade7ca6d00609ca9e (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/tovid-0.31-r2.ebuild,v 1.6 2011/05/28 23:50:52 zmedico Exp $
inherit eutils python
DESCRIPTION="Video conversion and DVD authoring tools"
HOMEPAGE="http://tovid.wikia.com/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
IUSE="tk wxwidgets"
DEPEND="media-video/mplayer
app-text/txt2tags"
RDEPEND="media-video/mjpegtools
virtual/ffmpeg
>=media-video/transcode-1.1.5
media-sound/normalize
media-gfx/imagemagick
media-sound/sox
media-video/dvdauthor
media-video/vcdimager
media-video/lsdvd
virtual/cdrtools
dev-python/pycairo
wxwidgets? ( =dev-python/wxpython-2.6* )
app-cdr/dvd+rw-tools
app-cdr/cdrdao
dev-python/imaging
sys-devel/bc"
KEYWORDS="amd64 x86"
LICENSE="GPL-2"
SLOT="0"
pkg_setup() {
if use tk && ( ! built_with_use dev-lang/python tk ); then
eerror "Please emerge python with useflag 'tk' enabled."
die "Fix USE flags and re-emerge"
elif ! use tk; then
ewarn "If you want to use 'todiscgui', then emerge"
ewarn "dev-lang/python and this package with the 'tk' use flag"
fi
if ! built_with_use media-video/mplayer encode; then
eerror "Please emerge media-video/mplayer with useflag 'encode'."
die "Fix USE flags and re-emerge"
fi
if ! use wxwidgets; then
ewarn "You have choosen to disable all tovidgui interface."
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.30-configure.patch \
"${FILESDIR}"/${P}-todisc.patch \
"${FILESDIR}"/${P}-sox.patch \
"${FILESDIR}"/${P}-transcode-1.1.5.patch
}
src_install() {
emake DESTDIR="${D}" install || die "make install died"
dodoc AUTHORS ChangeLog NEWS README
# remove wxgtk components
if ! use wxwidgets; then
rm -f "${D}/usr/bin/tovidgui"
rm -rf "${D}$(python_get_sitedir)/libtovid/gui"
rm -f "${D}/usr/share/applications/tovidgui.desktop"
fi
# remove tk components
if ! use tk; then
rm -f "${D}/usr/bin/todiscgui"
rm -rf "${D}$(python_get_sitedir)/libtovid/metagui"
rm -f "${D}/usr/share/applications/todiscgui.desktop"
fi
}
pkg_postinst() {
elog ""
elog "List of suite components:"
elog " idvid: Identifies video format, resolution, and length"
elog " makemenu: Creates (S)VCD/DVD menus"
elog " makeslides: Creates mpeg still slides for (S)VCD"
elog " makexml: Creates XML specification for an (S)VCD or DVD navigation hierarchy"
elog " makedvd: Creates the DVD structure and/or iso image"
elog " postproc: Adjusts A/V sync and does shrinking of encoded video"
elog " tovid: Converts video to (S)VCD or DVD mpeg format"
if use wxwidgets; then
elog " tovidgui: The tovid GUI"
fi
elog " pytovid: The new (experimental) python based tovid script"
elog " todisc: Create a DVD with animated menus"
if use tk; then
elog " todiscgui: Experimental gui for todisc"
fi
elog ""
elog "Please check out the tovid documentation on the web:"
elog " http://tovid.wikia.com/"
elog ""
}
|