summaryrefslogtreecommitdiff
blob: c66c83d5486a86cb2a281480df1c6d178c6f625c (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ttcut/ttcut-0.19.6-r3.ebuild,v 1.3 2011/07/15 21:15:39 maekke Exp $

EAPI=4

inherit fdo-mime qt4-r2

DESCRIPTION="Tool for cutting MPEG files especially for removing commercials"
HOMEPAGE="http://www.tritime.de/ttcut/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"

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

DEPEND="x11-libs/qt-gui:4
	x11-libs/qt-opengl:4
	>=media-libs/libmpeg2-0.4.0
	virtual/opengl"

RDEPEND="${DEPEND}
	media-video/mplayer
	>=virtual/ffmpeg-0.6.90[encode]"

S=${WORKDIR}/${PN}

PATCHES=( "${FILESDIR}"/${P}-deprecated.patch
			"${FILESDIR}"/${P}-ntsc-fps.patch
			"${FILESDIR}"/${P}-ffmpeg-vf-setdar.patch )

src_install() {
	dobin ttcut

	insinto /usr/share/applications
	doins "${FILESDIR}"/${PN}.desktop

	dodoc AUTHORS BUGS CHANGELOG README.* TODO
}

pkg_postinst() {
	fdo-mime_desktop_database_update
}

pkg_postrm() {
	fdo-mime_desktop_database_update
}