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: ChangeLog gdl-0.9.2-r1.ebuild
Date: Wed, 01 Feb 2012 17:43:35
Message-Id: 20120201174325.6DB3E2004B@flycatcher.gentoo.org
1 bicatali 12/02/01 17:43:25
2
3 Modified: ChangeLog
4 Added: gdl-0.9.2-r1.ebuild
5 Log:
6 Added a test for openmp, install pro routines in default directory (/usr/shared/gnudatalanguage/lib), bug #401703 thanks Ben Kohler, and force libX11 dependency since it does not compile without
7
8 (Portage version: 2.1.10.41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.27 dev-lang/gdl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?rev=1.27&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?rev=1.27&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?r1=1.26&r2=1.27
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v
20 retrieving revision 1.26
21 retrieving revision 1.27
22 diff -u -r1.26 -r1.27
23 --- ChangeLog 27 Dec 2011 08:01:38 -0000 1.26
24 +++ ChangeLog 1 Feb 2012 17:43:25 -0000 1.27
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-lang/gdl
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.26 2011/12/27 08:01:38 bicatali Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.27 2012/02/01 17:43:25 bicatali Exp $
31 +
32 +*gdl-0.9.2-r1 (01 Feb 2012)
33 +
34 + 01 Feb 2012; Sébastien Fabbro <bicatali@g.o> +gdl-0.9.2-r1.ebuild:
35 + Added a test for openmp, install pro routines in default directory
36 + (/usr/shared/gnudatalanguage/lib), bug #401703 thanks Ben Kohler, and force
37 + libX11 dependency since it does not compile without
38
39 *gdl-0.9.2 (27 Dec 2011)
40
41
42
43
44 1.1 dev-lang/gdl/gdl-0.9.2-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.2-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9.2-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gdl-0.9.2-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2012 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.2-r1.ebuild,v 1.1 2012/02/01 17:43:25 bicatali Exp $
54
55 EAPI=4
56
57 WX_GTK_VER="2.8"
58 PYTHON_DEPEND="python? 2"
59 SUPPORT_PYTHON_ABIS="1"
60
61 inherit cmake-utils eutils wxwidgets python virtualx
62
63 RESTRICT_PYTHON_ABIS="3.*"
64
65 DESCRIPTION="Interactive Data Language compatible incremental compiler"
66 HOMEPAGE="http://gnudatalanguage.sourceforge.net/"
67 SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE="fftw grib gshhs hdf hdf5 imagemagick netcdf openmp proj ps python
73 static-libs udunits wxwidgets X"
74
75 RDEPEND="sci-libs/gsl
76 sci-libs/plplot
77 sys-libs/ncurses
78 sys-libs/readline
79 sys-libs/zlib
80 x11-libs/libX11
81 fftw? ( >=sci-libs/fftw-3 )
82 grib? ( sci-libs/grib_api )
83 gshhs? ( sci-geosciences/gshhs-data sci-geosciences/gshhs )
84 hdf? ( sci-libs/hdf )
85 hdf5? ( sci-libs/hdf5 )
86 imagemagick? ( media-gfx/imagemagick )
87 netcdf? ( sci-libs/netcdf )
88 proj? ( sci-libs/proj )
89 ps? ( dev-libs/pslib )
90 python? ( dev-python/numpy )
91 udunits? ( sci-libs/udunits )
92 wxwidgets? ( x11-libs/wxGTK:2.8[X] )"
93
94 DEPEND="${RDEPEND}
95 >=dev-java/antlr-2.7.7-r5:0[cxx]"
96
97 pkg_setup() {
98 use wxwidgets && wxwidgets_pkg_setup
99 use python && python_pkg_setup
100 use openmp && [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp && \
101 die "You have openmp enabled but your current g++ does not support it"
102 }
103
104 src_prepare() {
105 use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx
106 epatch "${FILESDIR}"/${PV}-{antlr,numpy,proj4,include,tests}.patch
107 # make sure antlr includes are from system
108 rm -rf src/antlr
109 # gentoo: use proj instead of libproj4 (libproj4 last update: 2004)
110 sed -i \
111 -e 's:proj4:proj:' \
112 -e 's:lib_proj\.h:proj_api\.h:g' \
113 CMakeModules/FindLibproj4.cmake src/math_utl.hpp || die
114 # gentoo: avoid install files in datadir directory
115 sed -i \
116 -e '/AUTHORS/d' \
117 CMakeLists.txt || die
118
119 if use python; then
120 local abi
121 for abi in ${PYTHON_ABIS}; do
122 mkdir "${S}"-${abi}
123 done
124 fi
125 }
126
127 src_configure() {
128 # MPI is still very buggy
129 # x11=off does not compile
130 mycmakeargs+=(
131 -DMPICH=OFF
132 -DBUNDLED_ANTLR=OFF
133 -DX11=ON
134 $(cmake-utils_use fftw)
135 $(cmake-utils_use grib)
136 $(cmake-utils_use gshhs)
137 $(cmake-utils_use hdf)
138 $(cmake-utils_use hdf5)
139 $(cmake-utils_use imagemagick MAGICK)
140 $(cmake-utils_use netcdf)
141 $(cmake-utils_use openmp)
142 $(cmake-utils_use proj LIBPROJ4)
143 $(cmake-utils_use ps PSLIB)
144 $(cmake-utils_use udunits)
145 $(cmake-utils_use wxwidgets)
146 )
147 configuration() {
148 mycmakeargs+=( $@ )
149 CMAKE_BUILD_DIR="${BUILDDIR:-${S}_build}" cmake-utils_src_configure
150 }
151 configuration -DPYTHON_MODULE=OFF -DPYTHON=OFF
152 use python && python_execute_function -s \
153 configuration -DPYTHON_MODULE=ON -DPYTHON=ON
154 }
155
156 src_compile() {
157 cmake-utils_src_compile
158 use python && python_src_compile
159 }
160
161 src_test() {
162 # defines a check target instead of the ctest to define some LDPATH
163 if use X; then
164 Xemake -j1 -C ${CMAKE_BUILD_DIR} check
165 else
166 emake -j1 -C ${CMAKE_BUILD_DIR} check
167 fi
168 }
169
170 src_install() {
171 cmake-utils_src_install
172 if use python; then
173 installation() {
174 exeinto $(python_get_sitedir)
175 newexe "${S}"-${PYTHON_ABI}/src/libgdl.so GDL.so
176 }
177 python_execute_function -s installation
178 dodoc PYTHON.txt
179 fi
180 echo "GDL_PATH=\"+${EPREFIX}/usr/share/gnudatalanguage\"" > 50gdl
181 doenvd 50gdl
182 }