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-r1.ebuild ChangeLog gdl-0.9.ebuild
Date: Tue, 04 Jan 2011 05:04:25
Message-Id: 20110104050415.B29092005C@flycatcher.gentoo.org
1 bicatali 11/01/04 05:04:15
2
3 Modified: ChangeLog
4 Added: gdl-0.9-r1.ebuild
5 Removed: gdl-0.9.ebuild
6 Log:
7 Install both python with gdl as a library and regular gdl exec. Also now uses bundled antlr to make it work on amd64.
8
9 (Portage version: 2.1.9.26/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.23 dev-lang/gdl/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?rev=1.23&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?rev=1.23&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/ChangeLog?r1=1.22&r2=1.23
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v
21 retrieving revision 1.22
22 retrieving revision 1.23
23 diff -u -r1.22 -r1.23
24 --- ChangeLog 21 Dec 2010 19:52:08 -0000 1.22
25 +++ ChangeLog 4 Jan 2011 05:04:15 -0000 1.23
26 @@ -1,6 +1,14 @@
27 # ChangeLog for dev-lang/gdl
28 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.22 2010/12/21 19:52:08 bicatali Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/ChangeLog,v 1.23 2011/01/04 05:04:15 bicatali Exp $
32 +
33 +*gdl-0.9-r1 (04 Jan 2011)
34 +
35 + 04 Jan 2011; Sébastien Fabbro <bicatali@g.o> -gdl-0.9.ebuild,
36 + +gdl-0.9-r1.ebuild, -files/gdl-0.9_rc4-antlr.patch,
37 + -files/gdl-0.9_rc4-wxwidgets.patch:
38 + Install both python with gdl as a library and regular gdl exec. Also now uses
39 + bundled antlr to make it work on amd64.
40
41 *gdl-0.9 (21 Dec 2010)
42
43
44
45
46 1.1 dev-lang/gdl/gdl-0.9-r1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9-r1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/gdl-0.9-r1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: gdl-0.9-r1.ebuild
52 ===================================================================
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9-r1.ebuild,v 1.1 2011/01/04 05:04:15 bicatali Exp $
56
57 EAPI=3
58
59 WX_GTK_VER="2.8"
60 PYTHON_DEPEND="python? 2"
61 SUPPORT_PYTHON_ABIS="1"
62
63 inherit autotools eutils wxwidgets python
64
65 RESTRICT_PYTHON_ABIS="3.*"
66
67 DESCRIPTION="An Interactive Data Language compatible incremental compiler"
68 HOMEPAGE="http://gnudatalanguage.sourceforge.net/"
69 SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz"
70
71 LICENSE="GPL-2"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86"
74 IUSE="fftw grib hdf hdf5 imagemagick netcdf openmp python udunits wxwidgets X"
75
76 RDEPEND="sys-libs/readline
77 sys-libs/ncurses
78 sci-libs/gsl
79 sci-libs/plplot
80 fftw? ( >=sci-libs/fftw-3 )
81 grib? ( sci-libs/grib_api )
82 hdf? ( sci-libs/hdf )
83 hdf5? ( sci-libs/hdf5 )
84 imagemagick? ( media-gfx/imagemagick )
85 netcdf? ( sci-libs/netcdf )
86 python? ( dev-python/matplotlib )
87 udunits? ( >=sci-libs/udunits-2 )
88 wxwidgets? ( x11-libs/wxGTK:2.8[X] )"
89
90 DEPEND="${RDEPEND}
91 dev-java/antlr"
92
93 pkg_setup() {
94 use wxwidgets && wxwidgets_pkg_setup
95 }
96
97 src_prepare() {
98 use hdf5 && has_version sci-libs/hdf5[mpi] && export CXX=mpicxx
99
100 epatch \
101 "${FILESDIR}"/${PN}-0.9_rc2-gcc4.4.patch \
102 "${FILESDIR}"/${PN}-0.9_rc4-gcc4.3.patch \
103 "${FILESDIR}"/${PN}-0.9-numpy.patch \
104 "${FILESDIR}"/${PN}-0.9-configure.patch
105
106 # adjust the *.pro file install path
107 sed -i \
108 -e "s:datasubdir=.*$:datasubdir=\"${PN}\":" \
109 configure.in || die "Failed to fix *.pro install patch."
110 eautoreconf
111 use python && python_copy_sources
112 }
113
114 src_configure() {
115 configuration() {
116 econf \
117 $(use_with X x) \
118 $(use_with fftw) \
119 $(use_with grib) \
120 $(use_with hdf) \
121 $(use_with hdf5) \
122 $(use_with netcdf) \
123 $(use_with imagemagick Magick) \
124 $(use_with openmp) \
125 $(use_with udunits) \
126 $(use_with wxwidgets wxWidgets) \
127 $@
128 }
129 configuration --disable-python_module
130 if use python; then
131 python_execute_function -s configuration --enable-python_module
132 fi
133 }
134
135 src_compile() {
136 default
137 if use python; then
138 python_src_compile
139 fi
140 }
141
142 src_test() {
143 cd "${S}"/testsuite
144 echo ".r test_suite" | ../src/gdl
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "emake install failed"
149 if use python; then
150 installation() {
151 exeinto $(python_get_sitedir)
152 newexe src/.libs/libgdl.so.0.0.0 GDL.so || die
153 }
154 python_execute_function -s installation
155 fi
156 dodoc README PYTHON.txt AUTHORS ChangeLog NEWS TODO HACKING
157 }