* [gentoo-user] RFC ebuild for a non-standard Python package
@ 2010-05-03 8:31 Helmut Jarausch
0 siblings, 0 replies; only message in thread
From: Helmut Jarausch @ 2010-05-03 8:31 UTC (permalink / raw
To: gentoo-user
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
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-03 9:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03 8:31 [gentoo-user] RFC ebuild for a non-standard Python package Helmut Jarausch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox