summaryrefslogtreecommitdiff
blob: 5c09dd1cbf7cdff459be0277924813482fbcc05c (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ffprobe/ffprobe-79-r1.ebuild,v 1.1 2009/03/10 18:37:00 beandog Exp $

inherit autotools

DESCRIPTION="Tool to probe audio / video using ffmpeg and print pretty output"
HOMEPAGE="http://sourceforge.net/projects/ffprobe/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="perl"

DEPEND="media-video/ffmpeg
	app-text/texi2html"
RDEPEND="media-video/ffmpeg
	perl? ( virtual/perl-Scalar-List-Utils
		virtual/perl-Getopt-Long
		virtual/perl-File-Spec
		dev-perl/Statistics-Descriptive
		sci-visualization/gnuplot )"

src_unpack() {

	unpack ${A}
	cd "${S}"

	einfo "Regenerating autotools files..."
	eautoconf || die "eautoconf failed"

}

src_install() {

	dobin src/ffprobe
	if use perl; then
		newbin tools/plot-vframes-bitrate.pl plot-vframes-bitrate
		newbin tools/plot-vframes-sizes.pl plot-vframes-sizes
	fi
	doman doc/ffprobe.1
	dohtml doc/ffprobe.html
	dodoc AUTHORS README

}

pkg_postinst() {

	einfo "ffprobe with no arguments doesn't produce anything interesting"
	einfo "other than the same output you would get with ffmpeg -i"
	einfo "See -h for output options."

}