blob: e3133dedd2998af5a2ad702ea69dfeb5c43ea383 (
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
|
# Copyright 1999-2012 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.12a.ebuild,v 1.1 2012/08/26 19:44:50 creffett Exp $
EAPI=4
PYTHON_DEPEND="2"
inherit python eutils
DESCRIPTION="Download YouTube (tm) Videos"
HOMEPAGE="http://www.kde-apps.org/content/show.php/Get+YouTube+Video+(improved)?content=41456"
SRC_URI="http://kde-apps.org/CONTENT/content-files/41456-${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="4"
IUSE=""
MY_LINGUAS="de el es ru sk uk"
for x in ${MY_LINGUAS}; do
IUSE="${IUSE} linguas_${x}"
done
RDEPEND="
dev-python/lxml
>=kde-base/konqueror-4.3.1
"
DEPEND="${RDEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
python_convert_shebangs -r 2 .
epatch "${FILESDIR}/${P}-fixdesktop.patch"
}
src_install() {
dobin get_yt_video.py || die
insinto /usr/share/kde4/services
doins get_yt_video.desktop || die
for x in ${MY_LINGUAS}; do
if use linguas_${x}; then
insinto /usr/share/locale/${x}/LC_MESSAGES
doins l10n/${x}/LC_MESSAGES/get_yt_video.mo || die
fi
done
}
|