# 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/31 11:39:08 hdias Exp $ EAPI="5" PYTHON_COMPAT=( python{2_6,2_7} ) inherit python-r1 versionator v=($(get_version_components)) MY_PV="${v[0]}.${v[1]}a-${v[2]}" 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}/${PN^}-${MY_PV}.tgz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86 ~arm" IUSE="+vte id3tag" S="${WORKDIR}/${PN^}" RDEPEND=">=dev-python/pygtk-2.15.0 >=dev-python/notify-python-0.1 virtual/python-argparse[${PYTHON_USEDEP}] vte? ( x11-libs/vte:0[python] ) id3tag? ( media-libs/mutagen )" pkg_setup() { python_export python2 EPYTHON } 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 }