Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/gdl: gdl-0.9.4.ebuild metadata.xml gdl-0.9.3-r2.ebuild ChangeLog
Date: Wed, 20 Nov 2013 22:35:16
Message-Id: 20131120223513.66E192004B@flycatcher.gentoo.org
1 bicatali 13/11/20 22:35:13
2
3 Modified: metadata.xml gdl-0.9.3-r2.ebuild ChangeLog
4 Added: gdl-0.9.4.ebuild
5 Log:
6 Version bump, and backport fix to newer plplot (bug #491024) for older version
7
8 (Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.9 dev-lang/gdl/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/metadata.xml?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/metadata.xml?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/metadata.xml?r1=1.8&r2=1.9
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/gdl/metadata.xml,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- metadata.xml 16 Jun 2012 16:48:40 -0000 1.8
24 +++ metadata.xml 20 Nov 2013 22:35:13 -0000 1.9
25 @@ -8,6 +8,7 @@
26 Information Solutions.
27 </longdescription>
28 <use>
29 + <flag name='hdf'>Build matrix manipulation with <pkg>dev-cpp/eigen</pkg></flag>
30 <flag name='hdf'>Add support for the Hierarchical Data Format v.4</flag>
31 <flag name='gshhs'>Add support for projection adn continent maps with <pkg>sci-geosciences/gshhs-data</pkg></flag>
32
33
34
35
36 1.3 dev-lang/gdl/gdl-0.9.3-r2.ebuild
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.3-r2.ebuild?rev=1.3&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.3-r2.ebuild?rev=1.3&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.3-r2.ebuild?r1=1.2&r2=1.3
41
42 Index: gdl-0.9.3-r2.ebuild
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.3-r2.ebuild,v
45 retrieving revision 1.2
46 retrieving revision 1.3
47 diff -u -r1.2 -r1.3
48 --- gdl-0.9.3-r2.ebuild 16 Nov 2013 09:00:03 -0000 1.2
49 +++ gdl-0.9.3-r2.ebuild 20 Nov 2013 22:35:13 -0000 1.3
50 @@ -1,6 +1,6 @@
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.3-r2.ebuild,v 1.2 2013/11/16 09:00:03 dirtyepic Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.3-r2.ebuild,v 1.3 2013/11/20 22:35:13 bicatali Exp $
55
56 EAPI=4
57
58 @@ -26,7 +26,7 @@
59
60 RDEPEND="
61 sci-libs/gsl
62 - sci-libs/plplot
63 + <sci-libs/plplot-5.9.10
64 sys-libs/ncurses
65 sys-libs/readline
66 sys-libs/zlib
67 @@ -58,7 +58,7 @@
68 use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx
69
70 epatch "${FILESDIR}"/0.9.2-{antlr,proj4,include,tests,semaphore}.patch
71 - epatch "${FILESDIR}"/0.9.3-{sstream,netcdf-cxx}.patch
72 + epatch "${FILESDIR}"/0.9.3-{sstream,netcdf-cxx,plwidth}.patch
73 # make sure antlr includes are from system and rebuild the sources with it
74 # https://sourceforge.net/tracker/?func=detail&atid=618685&aid=3465878&group_id=97659
75
76
77
78
79 1.43 dev-lang/gdl/ChangeLog
80
81 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?rev=1.43&view=markup
82 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?rev=1.43&content-type=text/plain
83 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?r1=1.42&r2=1.43
84
85 Index: ChangeLog
86 ===================================================================
87 RCS file: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v
88 retrieving revision 1.42
89 retrieving revision 1.43
90 diff -u -r1.42 -r1.43
91 --- ChangeLog 16 Nov 2013 09:00:03 -0000 1.42
92 +++ ChangeLog 20 Nov 2013 22:35:13 -0000 1.43
93 @@ -1,6 +1,14 @@
94 # ChangeLog for dev-lang/gdl
95 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
96 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.42 2013/11/16 09:00:03 dirtyepic Exp $
97 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.43 2013/11/20 22:35:13 bicatali Exp $
98 +
99 +*gdl-0.9.4 (20 Nov 2013)
100 +
101 + 20 Nov 2013; Sébastien Fabbro <bicatali@g.o>
102 + +files/0.9.3-plwidth.patch, +files/0.9.4-gsl.patch, +files/0.9.4-python.patch,
103 + +files/0.9.4-reorder.patch, +gdl-0.9.4.ebuild, gdl-0.9.3-r2.ebuild,
104 + metadata.xml:
105 + Version bump, and backport fix to newer plplot (bug #491024) for older version
106
107 16 Nov 2013; Ryan Hill <dirtyepic@g.o> gdl-0.9.2-r2.ebuild,
108 gdl-0.9.3-r2.ebuild:
109
110
111
112 1.1 dev-lang/gdl/gdl-0.9.4.ebuild
113
114 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.4.ebuild?rev=1.1&view=markup
115 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.4.ebuild?rev=1.1&content-type=text/plain
116
117 Index: gdl-0.9.4.ebuild
118 ===================================================================
119 # Copyright 1999-2013 Gentoo Foundation
120 # Distributed under the terms of the GNU General Public License v2
121 # $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9.4.ebuild,v 1.1 2013/11/20 22:35:13 bicatali Exp $
122
123 EAPI=5
124
125 WX_GTK_VER="2.8"
126 PYTHON_COMPAT=( python{2_6,2_7} )
127
128 inherit cmake-utils eutils python-r1 wxwidgets toolchain-funcs virtualx
129
130 DESCRIPTION="Interactive Data Language compatible incremental compiler"
131 HOMEPAGE="http://gnudatalanguage.sourceforge.net/"
132 SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz"
133
134 LICENSE="GPL-2"
135 SLOT="0"
136 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
137 IUSE="+eigen fftw grib gshhs hdf hdf5 imagemagick netcdf openmp
138 proj postscript python static-libs udunits wxwidgets"
139
140 RDEPEND="
141 sci-libs/gsl
142 sci-libs/plplot:=
143 sys-libs/ncurses
144 sys-libs/readline
145 sys-libs/zlib
146 x11-libs/libX11
147 fftw? ( >=sci-libs/fftw-3 )
148 grib? ( sci-libs/grib_api )
149 gshhs? ( sci-geosciences/gshhs-data sci-geosciences/gshhs )
150 hdf? ( sci-libs/hdf )
151 hdf5? ( sci-libs/hdf5 )
152 imagemagick? ( || (
153 media-gfx/graphicsmagick[cxx]
154 media-gfx/imagemagick[cxx] ) )
155 netcdf? ( sci-libs/netcdf )
156 proj? ( sci-libs/proj )
157 postscript? ( dev-libs/pslib )
158 python? ( dev-python/numpy[${PYTHON_USEDEP}] )
159 udunits? ( sci-libs/udunits )
160 wxwidgets? ( x11-libs/wxGTK:2.8[X,-odbc] )"
161
162 DEPEND="${RDEPEND}
163 >=dev-java/antlr-2.7.7-r5:0[cxx,java,script]
164 virtual/pkgconfig
165 eigen? ( dev-cpp/eigen:3 )"
166
167 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
168
169 PATCHES=(
170 "${FILESDIR}"/0.9.2-antlr.patch
171 "${FILESDIR}"/0.9.2-include.patch
172 "${FILESDIR}"/0.9.2-proj4.patch
173 "${FILESDIR}"/0.9.2-semaphore.patch
174 "${FILESDIR}"/0.9.3-plwidth.patch
175 "${FILESDIR}"/0.9.4-gsl.patch
176 "${FILESDIR}"/0.9.4-python.patch
177 "${FILESDIR}"/0.9.4-reorder.patch
178 )
179
180 pkg_setup() {
181 use openmp && [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp && \
182 die "You have openmp enabled but your current g++ does not support it"
183 }
184
185 src_prepare() {
186 cmake-utils_src_prepare
187
188 use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx
189
190 # make sure antlr includes are from system and rebuild the sources with it
191 # https://sourceforge.net/tracker/?func=detail&atid=618685&aid=3465878&group_id=97659
192 rm -r src/antlr || die
193 einfo "Regenerating grammar"
194 pushd src > /dev/null
195 local i
196 for i in *.g; do antlr ${i} || die ; done
197 popd > /dev/null
198
199 # gentoo: use proj instead of libproj4 (libproj4 last update: 2004)
200 sed -i \
201 -e 's:proj4:proj:' \
202 -e 's:lib_proj\.h:proj_api\.h:g' \
203 CMakeModules/FindLibproj4.cmake src/math_utl.hpp || die
204
205 # gentoo: avoid install files in datadir directory
206 sed -i \
207 -e '/AUTHORS/d' \
208 CMakeLists.txt || die
209 }
210
211 src_configure() {
212 # MPI is still very buggy
213 # x11=off does not compile
214 local mycmakeargs=(
215 -Wno-dev
216 -DMPICH=OFF
217 -DBUNDLED_ANTLR=OFF
218 -DX11=ON
219 $(cmake-utils_use fftw)
220 $(cmake-utils_use eigen EIGEN3)
221 $(cmake-utils_use grib)
222 $(cmake-utils_use gshhs)
223 $(cmake-utils_use hdf)
224 $(cmake-utils_use hdf5)
225 $(cmake-utils_use netcdf)
226 $(cmake-utils_use openmp)
227 $(cmake-utils_use proj LIBPROJ4)
228 $(cmake-utils_use postscript PSLIB)
229 $(cmake-utils_use udunits)
230 $(cmake-utils_use wxwidgets)
231 )
232 if use imagemagick; then
233 if has_version media-gfx/graphicsmagick[cxx]; then
234 mycmakeargs+=( -DGRAPHICSMAGICK=ON -DMAGICK=OFF )
235 else
236 mycmakeargs+=( -DGRAPHICSMAGICK=OFF -DMAGICK=ON )
237 fi
238 else
239 mycmakeargs+=( "-DGRAPHICSMAGICK=OFF -DMAGICK=OFF" )
240 fi
241 configuration() {
242 mycmakeargs+=( $@ )
243 cmake-utils_src_configure
244 }
245 configuration -DPYTHON_MODULE=OFF -DPYTHON=OFF
246 use python && python_foreach_impl configuration -DPYTHON_MODULE=ON -DPYTHON=ON
247 }
248
249 src_compile() {
250 cmake-utils_src_compile
251 use python && python_foreach_impl cmake-utils_src_make
252 }
253
254 src_test() {
255 # there is check target instead of the ctest to define some LDPATH
256 Xemake -C "${BUILD_DIR}" check
257 }
258
259 src_install() {
260 cmake-utils_src_install
261 if use python; then
262 installation() {
263 python_export PYTHON_SITEDIR
264 exeinto "${PYTHON_SITEDIR#${EPREFIX}}"
265 newexe src/libgdl.so GDL.so
266 }
267 python_foreach_impl run_in_build_dir installation
268 dodoc PYTHON.txt
269 fi
270
271 echo "GDL_PATH=\"+${EROOT%/}/usr/share/gnudatalanguage\"" > 50gdl
272 doenvd 50gdl
273 }