# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/sunflower-0.1.52_alpha.ebuild,v 1.9 2013/01/27 22:59:30 hdias Exp $ EAPI=2 PYTHON_DEPEND="2" inherit eutils python DESCRIPTION="Small and highly customizable twin-panel file manager for Linux with support for plugins." HOMEPAGE="http://code.google.com/p/sunflower-fm/" SRC_URI="mirror://sourceforge/${PN}/Sunflower-0.1a-52.tgz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86 ~arm" IUSE="+vte id3tag" S="${WORKDIR}/${P}" RDEPEND=">=dev-python/pygtk-2.15.0 >=dev-python/notify-python-0.1 virtual/python-argparse vte? ( x11-libs/vte:0[python] ) id3tag? ( media-libs/mutagen )" pkg_setup() { python_set_active_version 2 } src_prepare() { mv ${WORKDIR}/Sunflower ${S} || die } src_install() { echo "#!/bin/sh" > "${S}/sunflower" echo "python /usr/share/sunflower/Sunflower.py" > "${S}/sunflower" dobin sunflower || die dodir /usr/share/sunflower || die insinto /usr/share/sunflower # the Sunflower.py needs read these files. doins Sunflower.py AUTHORS CHANGES COPYING DEPENDS TODO || die for dir in "application" "images" "translations"; do cp -R "${S}/$dir" "${D}/usr/share/sunflower" || die done insinto /usr/share/pixmaps doins images/sunflower.* || die insinto /usr/share/applications newins Sunflower.desktop sunflower.desktop || die }