Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-geosciences/cdat-lite/
Date: Wed, 04 Dec 2013 15:00:17
Message-Id: 1386162858.a3bbf05165e268675f2e2de982e4aaa4666c5cac.jlec@gentoo
1 commit: a3bbf05165e268675f2e2de982e4aaa4666c5cac
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 4 13:14:18 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 4 13:14:18 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a3bbf051
7
8 sci-geosciences/cdat-lite: Bump to distutils-r1 eclass
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 sci-geosciences/cdat-lite/ChangeLog | 6 +++-
14 sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild | 38 +++++++++++-----------
15 sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild | 31 ++++++++----------
16 sci-geosciences/cdat-lite/metadata.xml | 12 +++----
17 4 files changed, 44 insertions(+), 43 deletions(-)
18
19 diff --git a/sci-geosciences/cdat-lite/ChangeLog b/sci-geosciences/cdat-lite/ChangeLog
20 index 51a2e62..242e267 100644
21 --- a/sci-geosciences/cdat-lite/ChangeLog
22 +++ b/sci-geosciences/cdat-lite/ChangeLog
23 @@ -1,7 +1,11 @@
24 # ChangeLog for sci-geosciences/cdat-lite
25 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
26 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
27 # $Header: $
28
29 + 04 Dec 2013; Justin Lecher <jlec@g.o> cdat-lite-5.2.ebuild,
30 + cdat-lite-6.0_rc2.ebuild, metadata.xml:
31 + Bump to distutils-r1 eclass
32 +
33 *cdat-lite-6.0_rc2 (16 Jul 2011)
34
35 16 Jul 2011; Tim Cera <tim@××××××××.net> +cdat-lite-6.0_rc2.ebuild:
36
37 diff --git a/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild b/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild
38 index 0390f82..4f544cd 100644
39 --- a/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild
40 +++ b/sci-geosciences/cdat-lite/cdat-lite-5.2.ebuild
41 @@ -1,18 +1,17 @@
42 -# Copyright 1999-2010 Gentoo Foundation
43 +# Copyright 1999-2013 Gentoo Foundation
44 # Distributed under the terms of the GNU General Public License v2
45 # $Header: $
46
47 -EAPI="2"
48 +EAPI=5
49
50 -PYTHON_DEPEND="2:2.5"
51 -SUPPORT_PYTHON_ABIS="1"
52 +PYTHON_COMPAT=( python{2_6,2_7} )
53
54 -inherit distutils eutils toolchain-funcs
55 +inherit distutils-r1 toolchain-funcs
56
57 MY_P=${P/-/_}
58
59 DESCRIPTION="Large suite of open source tools for the management and analysis of climate data"
60 -HOMEPAGE="http://proj.badc.rl.ac.uk/ndg/wiki/CdatLite"
61 +HOMEPAGE="http://proj.badc.rl.ac.uk/cedaservices/wiki/CdatLite"
62 SRC_URI="http://ndg.nerc.ac.uk/dist/${MY_P}.tar.gz"
63
64 LICENSE="BSD"
65 @@ -20,25 +19,26 @@ SLOT="0"
66 KEYWORDS="~amd64"
67 IUSE=""
68
69 -COMMON_DEPEND=">=sci-libs/netcdf-4.0.1
70 +COMMON_DEPEND="
71 + >=sci-libs/netcdf-4.0.1
72 >=sci-libs/hdf5-1.6.4"
73 DEPEND="${COMMON_DEPEND}
74 - dev-python/setuptools"
75 + dev-python/setuptools[${PYTHON_USEDEP}]"
76 RDEPEND="${COMMON_DEPEND}
77 !sci-biology/ncbi-tools"
78
79 -RESTRICT_PYTHON_ABIS="3.*"
80 +S="${WORKDIR}"/${MY_P}
81
82 -S="${WORKDIR}/${MY_P}"
83 +PATCHES=(
84 + "${FILESDIR}"/${PV}-shared-lib.patch
85 + "${FILESDIR}"/${PV}-impl-dec.patch
86 + )
87
88 -src_prepare() {
89 - epatch "${FILESDIR}"/${PV}-shared-lib.patch
90 - epatch "${FILESDIR}"/${PV}-impl-dec.patch
91 +python_prepare_all() {
92 find "${S}" -type l -exec rm '{}' \;
93 - distutils_src_prepare
94 -}
95 -
96 -src_compile()(
97 tc-export CC
98 - distutils_src_compile
99 -)
100 + sed \
101 + -e 's:libhdf5.a:libhdf5.so:g' \
102 + -i setup_util.py || die
103 + distutils-r1_python_prepare_all
104 +}
105
106 diff --git a/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild b/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild
107 index 34d713c..4016346 100644
108 --- a/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild
109 +++ b/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild
110 @@ -1,19 +1,18 @@
111 -# Copyright 1999-2011 Gentoo Foundation
112 +# Copyright 1999-2013 Gentoo Foundation
113 # Distributed under the terms of the GNU General Public License v2
114 # $Header: $
115
116 -EAPI="2"
117 +EAPI=5
118
119 -PYTHON_DEPEND="2:2.5"
120 -SUPPORT_PYTHON_ABIS="1"
121 +PYTHON_COMPAT=( python{2_6,2_7} )
122
123 -inherit distutils eutils toolchain-funcs
124 +inherit distutils-r1 toolchain-funcs
125
126 MY_P=${P/-/_}
127 MY_P=${MY_P/_rc/rc}
128
129 DESCRIPTION="Large suite of open source tools for the management and analysis of climate data"
130 -HOMEPAGE="http://proj.badc.rl.ac.uk/ndg/wiki/CdatLite"
131 +HOMEPAGE="http://proj.badc.rl.ac.uk/cedaservices/wiki/CdatLite"
132 SRC_URI="http://ndg.nerc.ac.uk/dist/${MY_P}.tar.gz"
133
134 LICENSE="BSD"
135 @@ -21,23 +20,21 @@ SLOT="0"
136 KEYWORDS="~amd64"
137 IUSE=""
138
139 -COMMON_DEPEND=">=sci-libs/netcdf-4.0.1
140 +COMMON_DEPEND="
141 + >=sci-libs/netcdf-4.0.1
142 >=sci-libs/hdf5-1.6.4"
143 DEPEND="${COMMON_DEPEND}
144 - dev-python/setuptools"
145 + dev-python/setuptools[${PYTHON_USEDEP}]"
146 RDEPEND="${COMMON_DEPEND}
147 !sci-biology/ncbi-tools"
148
149 -RESTRICT_PYTHON_ABIS="3.*"
150 -
151 S="${WORKDIR}/${MY_P}"
152
153 -src_prepare() {
154 +python_prepare_all() {
155 find "${S}" -type l -exec rm '{}' \;
156 - distutils_src_prepare
157 -}
158 -
159 -src_compile()(
160 tc-export CC
161 - distutils_src_compile
162 -)
163 + sed \
164 + -e 's:libhdf5.a:libhdf5.so:g' \
165 + -i setup_util.py || die
166 + distutils-r1_python_prepare_all
167 +}
168
169 diff --git a/sci-geosciences/cdat-lite/metadata.xml b/sci-geosciences/cdat-lite/metadata.xml
170 index 91bea76..50f2b52 100644
171 --- a/sci-geosciences/cdat-lite/metadata.xml
172 +++ b/sci-geosciences/cdat-lite/metadata.xml
173 @@ -1,12 +1,12 @@
174 <?xml version="1.0" encoding="UTF-8"?>
175 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
176 <pkgmetadata>
177 -<herd>sci-geosciences</herd>
178 -<maintainer>
179 -<email>tim@××××××××.net</email>
180 -<name>Tim Cera</name>
181 -</maintainer>
182 -<longdescription lang="en">
183 + <herd>sci-geosciences</herd>
184 + <maintainer>
185 + <email>tim@××××××××.net</email>
186 + <name>Tim Cera</name>
187 + </maintainer>
188 + <longdescription lang="en">
189 CDAT-Lite is a large suite of open source tools for the management and analysis of climate data.
190 </longdescription>
191 </pkgmetadata>