# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils eutils DESCRIPTION="Flickrfs is a virtual filesystem based upon FUSE that provides easy access to flickr." HOMEPAGE="http://manishrjain.googlepages.com/flickrfs" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" IUSE="" KEYWORDS="~x86" RDEPEND=" =dev-lang/python-2.4* sys-fs/fuse-python media-gfx/imagemagick" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} && cd ${S} # Grab our distutils setup script cp ${FILESDIR}/setup.py ./ # Append the Python shebang to our script sed -i -e "1i \ #!`which python`" flickrfs.py } src_compile() { distutils_src_compile } src_install() { distutils_src_install distutils_python_version chmod a+x ${D}usr/$(get_libdir)/python${PYVER}/site-packages/flickrfs.py dosym ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/flickrfs.py \ ${DESTTREE}/bin/flickrfs }