# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION="Access data on Distributed Oceanagraphic Data Servers via Python and Numeric." HOMEPAGE="http://pydap.org" MY_P="${P/pydap/dap}" MY_S="${WORKDIR}"/"${MY_P}" SRC_URI="http://cheeseshop.python.org/packages/source/d/dap/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="netcdf" DEPEND="virtual/python >=dev-lang/python-2.1 >=dev-python/numeric-23.1 netcdf? >=sci-libs/netcdf-3.6.0" src_unpack() { cd "${WORKDIR}" tar xzvf "${DISTDIR}"/"${MY_P}".tar.gz epatch "${FILESDIR}"/01_ez_setup_isnt.diff } src_compile() { cd "${MY_S}" python setup.py build || die } src_install() { cd "${MY_S}" python setup.py install --root="${D}" --prefix=/usr || die dodoc README.txt cp -r examples "${D}"/usr/share/doc/"${PF}" }