summaryrefslogtreecommitdiff
blob: 5fb9f0a44dc0f4d095fe288980d557599f07719b (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/clipgrab/clipgrab-2.0_beta2.ebuild,v 1.4 2009/02/13 21:52:57 yngwin Exp $

EAPI=1
inherit qt4 versionator

MY_PV=$(replace_version_separator 2 '-' )

DESCRIPTION="Download videos from Youtube, Google Video, MyVideo,
Dailymotion, ClipFish, Veoh.com and others."
HOMEPAGE="http://clipgrab.de"
SRC_URI="http://${PN}.de/download/${PN}-${MY_PV}_src.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="sparc x86"
IUSE="debug"

DEPEND="x11-libs/qt-gui:4"
RDEPEND="x11-misc/xdg-utils
		media-video/ffmpeg
		${DEPEND}"

S="${WORKDIR}"

src_unpack() {
	unpack ${A}
	cd "${S}"/src
	use debug || echo -e "\nDEFINES += QT_NO_DEBUG_OUTPUT" >> src.pro
}

src_compile() {
	cd "${S}"/src
	eqmake4 src.pro
	emake || die "emake failed"
}

src_install() {
	# upstream's Makefile has no install target :(
	cd "${S}"
	dobin bin/clipgrab || die "dobin failed"
	dodoc src/README || die "dodoc failed"
}

# vim:ts=4