# Copyright 1999-2008 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.3f.ebuild,v 1.2 2008/02/18 23:10:38 ingmar Exp $ DESCRIPTION="Download YouTube (tm) Videos" HOMEPAGE="http://www.kde-apps.org/content/show.php/Get+YouTube+Video+(improved)?content=41456" SRC_URI="http://www.kde-apps.org/CONTENT/content-files/41456-${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-lang/python || ( =kde-base/konqueror-3.5* =kde-base/kdenetwork-3.5* )" LANGS="de ru sk uk" for X in ${LANGS} ; do IUSE="${IUSE} linguas_${X}" done src_compile() { : } src_install() { dobin get_yt_video.py || die "dobin failed." insinto /usr/share/apps/konqueror/servicemenus doins get_yt_video.desktop || die "doins failed." cd "${WORKDIR}/${P}/l10n" for X in ${LANGS} ; do if use linguas_${X}; then insinto /usr/share/locale/${X}/LC_MESSAGES doins ${X}/LC_MESSAGES/get_yt_video.mo || die "doins failed." fi done }