# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 inherit distutils MY_P=${P/p/P} MY_P=${MY_P/c/C} S=${WORKDIR}/${MY_P} DESCRIPTION="PyClimate is a Python package designed to accomplish some usual tasks during the analysis of climate variability using Python." SRC_URI="http://starship.python.net/crew/jsaenz/pyclimate/downloads/${MY_P}.tar.gz" HOMEPAGE="http://www.pyclimate.org/" IUSE="" SLOT="0" KEYWORDS="~x86" LICENSE="GPL-2" DEPEND=">=dev-lang/python-2.2" RDEPEND="dev-python/numeric dev-python/ScientificPython app-sci/netcdf" src_install() { distutils_src_install distutils_python_version dodir /usr/share/pyclimate/ dodir /usr/share/pyclimate/examples/ insinto /usr/share/pyclimate/examples/ doins ${S}/examples/* dodir /usr/share/pyclimate/test/ insinto /usr/share/pyclimate/test/ doins ${S}/test/* } pkg_postinst() { einfo "You can test that PyClimate is working by running 'cd /usr/share/pyclimate/test && sudo python pyclimatetest.py'" }