summaryrefslogtreecommitdiff
blob: f5cba92d1b437d7a126a8bd79ada0934c41555a9 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="A YouTube Downloader and Converter"
HOMEPAGE="http://sourceforge.net/projects/elltube"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

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

RDEPEND="dev-python/PyQt4
	media-video/ffmpeg"

src_unpack() {
	unpack ${A}
	rm "${S}"/Makefile
}

src_install() {
	insinto /usr/share/elltube
	doins -r elltube.py atom gdata img || die "doins failed"
	domenu elltube.desktop
	insinto /usr/share/elltube/locale
	doins locale/*.qm || die "doins failed"
	echo -e "#!/usr/bin/env sh\ncd /usr/share/elltube/\npython elltube.py" > ${PN}
	dobin ${PN} || die "dobin failed"
	doicon img/elltube.png || die "doicon failed"
	dodoc CHANGELOG || die "dodoc failed"
}