# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python KEYWORDS="~x86 ~amd64" EAPI="2" DESCRIPTION="A tool for copying video files from memory stick based camcorders to hard disk." HOMEPAGE="http://modcopy.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.zip" LICENSE="Boost-1.0" SLOT="0" IUSE="" RDEPEND="dev-lang/python[tk] dev-tcltk/tix" DEPEND="${RDEPEND}" S="${WORKDIR}/${P}/src" DOCS="" src_install() { cat << EOF > modcopy #!/bin/sh python $(python_get_sitedir)/${PN}/${PN}.py "\$@" EOF dobin modcopy insinto "$(python_get_sitedir)/${PN}" doins *.py } pkg_postinst() { python_mod_optimize "$(python_get_sitedir)/${PN}" } pkg_postrm() { python_mod_cleanup }