summaryrefslogtreecommitdiff
blob: 40baa28d1d892b4713608c49c442882dce75fc35 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/youtube-servicemenu/youtube-servicemenu-1.7.ebuild,v 1.1 2009/11/03 10:44:08 ssuominen Exp $

EAPI=2
KDE_MINIMAL=4.3
inherit rpm

DESCRIPTION="Download YouTube (tm) Videos"
HOMEPAGE="http://www.kde-apps.org/content/show.php/Get+YouTube+Video+(improved)?content=41456"
SRC_URI="http://twoday.tuwien.ac.at/static/pub/files/${PN}-kde4-${PV}-1.noarch.rpm"

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

KDE_LINGUAS="de es ru sk uk"

for x in ${KDE_LINGUAS}; do
	IUSE="${IUSE} linguas_${x}"
done

DEPEND=">=kde-base/konqueror-${KDE_MINIMAL}
	>=kde-base/kdelibs-${KDE_MINIMAL}
	dev-lang/python
	!${CATEGORY}/${PN}:0"

S=${WORKDIR}

src_install() {
	dobin usr/bin/get_yt_video-kde4.py || die

	insinto `kde4-config --install services`
	doins usr/share/kde4/services/get_yt_video.desktop || die

	for x in ${KDE_LINGUAS}; do
		if use linguas_${x}; then
			insinto /usr/share/locale/${x}/LC_MESSAGES
			doins usr/share/get_yt_video/${x}/LC_MESSAGES/get_yt_video.mo || die
		fi
	done
}