diff options
Diffstat (limited to 'sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild')
-rw-r--r-- | sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild b/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild index 0390f8271..4f544cd64 100644 --- a/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild +++ b/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild @@ -1,18 +1,17 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="2" +EAPI=5 -PYTHON_DEPEND="2:2.5" -SUPPORT_PYTHON_ABIS="1" +PYTHON_COMPAT=( python{2_6,2_7} ) -inherit distutils eutils toolchain-funcs +inherit distutils-r1 toolchain-funcs MY_P=${P/-/_} DESCRIPTION="Large suite of open source tools for the management and analysis of climate data" -HOMEPAGE="http://proj.badc.rl.ac.uk/ndg/wiki/CdatLite" +HOMEPAGE="http://proj.badc.rl.ac.uk/cedaservices/wiki/CdatLite" SRC_URI="http://ndg.nerc.ac.uk/dist/${MY_P}.tar.gz" LICENSE="BSD" @@ -20,25 +19,26 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" -COMMON_DEPEND=">=sci-libs/netcdf-4.0.1 +COMMON_DEPEND=" + >=sci-libs/netcdf-4.0.1 >=sci-libs/hdf5-1.6.4" DEPEND="${COMMON_DEPEND} - dev-python/setuptools" + dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND="${COMMON_DEPEND} !sci-biology/ncbi-tools" -RESTRICT_PYTHON_ABIS="3.*" +S="${WORKDIR}"/${MY_P} -S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PV}-shared-lib.patch + "${FILESDIR}"/${PV}-impl-dec.patch + ) -src_prepare() { - epatch "${FILESDIR}"/${PV}-shared-lib.patch - epatch "${FILESDIR}"/${PV}-impl-dec.patch +python_prepare_all() { find "${S}" -type l -exec rm '{}' \; - distutils_src_prepare -} - -src_compile()( tc-export CC - distutils_src_compile -) + sed \ + -e 's:libhdf5.a:libhdf5.so:g' \ + -i setup_util.py || die + distutils-r1_python_prepare_all +} |