Hi, I'd like to install the new package expy on sourceforge http://expy.sourceforge.net/
Unfortunately, the contents of it are a bit non-standard. First, the tarball has the unusual name expy.6.6.tgz. Second, it untars in to the current directory (no subdirectory expy-6.6) Third, it has setup.py and some helper modules in a subdirectory 'src'. My current (working) ebuild is a litte bit brute force. I'd appreciate any comments on streamlining and standardizing it. Many thanks, Helmut. # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="2" SUPPORT_PYTHON_ABIS="1" inherit distutils flag-o-matic DESCRIPTION="USB support for Python." HOMEPAGE="http://expy.sourceforge.net/" MY_P=${P/-/.} SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" S=${WORKDIR}/${P} LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="examples" RESTRICT_PYTHON_ABIS="3*" src_unpack() { mkdir -p ${S} cd ${S} unpack ${A} ln src/* . } src_install() { distutils_src_install if use examples; then insinto /usr/share/doc/${PF} fi }