# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION="Process and event simulation." HOMEPAGE="http://simpy.sourceforge.net" MY_P="${P/simpy/SimPy}" MY_S="${WORKDIR}"/"${MY_P}" SRC_URI="mirror://sourceforge/simpy/${MY_P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="virtual/python >=dev-lang/python-2.1" src_unpack() { cd "${WORKDIR}" tar xzvf "${DISTDIR}"/"${MY_P}".tar.gz } src_compile() { cd "${MY_S}" distutils_src_compile } src_install() { cd "${MY_S}" distutils_python_version if use doc; then docinto SciPyDocs dodoc SimPyDocs/* docinto SimPyModels dodoc SimPyModels/* fi }