# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils HOMEPAGE="http://www.josephson.org/projects/pyamazon/" DESCRIPTION="A Python wrapper for the Amazon web API" SRC_URI="http://www.josephson.org/projects/pyamazon/files/${P}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/python" S=${WORKDIR}/${PN} src_compile(){ #There is no setup file for that module so I created one cp ${FILESDIR}/setup.py ${S}/ #The file is in the MS format so we want to get rid of the ^M characters tr -d '\15' < amazon.py > amazon.py.tmp mv amazon.py.tmp amazon.py } src_install(){ distutils_src_install }