summaryrefslogtreecommitdiff
blob: 63016063dcd401b6e1af150f010b34189d2bb5c8 (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
# 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-r1.ebuild,v 1.1 2009/06/21 12:31:32 billie Exp $

EAPI=1
inherit eutils qt4 versionator

MY_PV=$(replace_version_separator 2 '-' )

DESCRIPTION="Download from various internet video services like Youtube etc."
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"

	insinto /usr/share/pixmaps
	newins src/img/icon.png clipgrab.png
	make_desktop_entry clipgrab Clipgrab "" "Qt;Video;AudioVideo"
}

# vim:ts=4