# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator python HOMEPAGE="http://www.codingteam.net/flover-aff.html" SRC_URI="http://www.codingteam.net/upload/2d4kvw-${P}.tar.gz" DESCRIPTION="Epiphany extension for download Flash movie from Youtube and Dailymotion" IUSE="" KEYWORDS="~x86" RDEPEND=">=www-client/epiphany-2.14 >=www-client/epiphany-extensions-2.14 >=dev-python/pygtk-2.0" DEPEND="" pkg_setup() { local EPHY=$(best_version www-client/epiphany) export EPHY_MAJOR=$(get_version_component_range 1-2 \ ${EPHY/www-client\/epiphany}) } src_install() { insinto /usr/lib/epiphany/${EPHY_MAJOR}/extensions/ doins flover.py flover.ephy-extension } pkg_postinst() { python_version python_mod_optimize /usr/lib/epiphany/${EPHY_MAJOR}/extensions/ } pkg_postrm() { python_version python_mod_cleanup /usr/lib/epiphany/${EPHY_MAJOR}/extensions/ }