Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/plplot: metadata.xml ChangeLog plplot-5.9.7-r1.ebuild plplot-5.9.7.ebuild plplot-5.9.6.ebuild
Date: Tue, 30 Nov 2010 23:24:11
Message-Id: 20101130232359.F1A7420054@flycatcher.gentoo.org
1 bicatali 10/11/30 23:23:59
2
3 Modified: metadata.xml ChangeLog
4 Added: plplot-5.9.7-r1.ebuild
5 Removed: plplot-5.9.7.ebuild plplot-5.9.6.ebuild
6 Log:
7 Added ocaml, lua and testing options. tk use flag depends on tcl. More complete qt4 support for drivers and pyqt. Disabling doc generation (too buggy on Gentoo), using prebuilt docs. Switch to EAPI=3 for prefix install. Remove a few obsolete options and general cmake cleaning.
8
9 (Portage version: 2.1.9.25/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.8 sci-libs/plplot/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/metadata.xml?rev=1.8&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/metadata.xml?rev=1.8&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/metadata.xml?r1=1.7&r2=1.8
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/plplot/metadata.xml,v
21 retrieving revision 1.7
22 retrieving revision 1.8
23 diff -u -r1.7 -r1.8
24 --- metadata.xml 10 Oct 2010 20:12:41 -0000 1.7
25 +++ metadata.xml 30 Nov 2010 23:23:59 -0000 1.8
26 @@ -18,6 +18,7 @@
27 <use>
28 <flag name='ada'>Add bindings for the ADA programming language</flag>
29 <flag name='d'>Add bindings for the D programming language</flag>
30 + <flag name='dynamic'>Build with dynamic drivers</flag>
31 <flag name='octave'>Add bindings for <pkg>sci-mathematics/octave</pkg></flag>
32 <flag name='qhull'>Add bindings for <pkg>media-libs/qhull</pkg>
33 bindings</flag>
34
35
36
37 1.31 sci-libs/plplot/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/ChangeLog?rev=1.31&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/ChangeLog?rev=1.31&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/ChangeLog?r1=1.30&r2=1.31
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v
46 retrieving revision 1.30
47 retrieving revision 1.31
48 diff -u -r1.30 -r1.31
49 --- ChangeLog 10 Oct 2010 20:12:41 -0000 1.30
50 +++ ChangeLog 30 Nov 2010 23:23:59 -0000 1.31
51 @@ -1,6 +1,16 @@
52 # ChangeLog for sci-libs/plplot
53 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.30 2010/10/10 20:12:41 bicatali Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.31 2010/11/30 23:23:59 bicatali Exp $
56 +
57 +*plplot-5.9.7-r1 (30 Nov 2010)
58 +
59 + 30 Nov 2010; S├ębastien Fabbro <bicatali@g.o>
60 + -files/plplot-5.9.0-python.patch, -plplot-5.9.6.ebuild, -plplot-5.9.7.ebuild,
61 + +plplot-5.9.7-r1.ebuild, metadata.xml:
62 + Added ocaml, lua and testing options. tk use flag depends on tcl. More
63 + complete qt4 support for drivers and pyqt. Disabling doc generation (too
64 + buggy on Gentoo), using prebuilt docs. Switch to EAPI=3 for prefix install.
65 + Remove a few obsolete options and general cmake cleaning.
66
67 *plplot-5.9.7 (10 Oct 2010)
68
69
70
71
72 1.1 sci-libs/plplot/plplot-5.9.7-r1.ebuild
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/plplot-5.9.7-r1.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/plplot/plplot-5.9.7-r1.ebuild?rev=1.1&content-type=text/plain
76
77 Index: plplot-5.9.7-r1.ebuild
78 ===================================================================
79 # Copyright 1999-2010 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.7-r1.ebuild,v 1.1 2010/11/30 23:23:59 bicatali Exp $
82
83 EAPI="3"
84
85 WX_GTK_VER="2.8"
86 PYTHON_DEPEND="python? 2"
87
88 inherit eutils cmake-utils python toolchain-funcs virtualx wxwidgets java-pkg-opt-2
89
90 DESCRIPTION="Multi-language scientific plotting library"
91 HOMEPAGE="http://plplot.sourceforge.net/"
92 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
93
94 LICENSE="LGPL-2"
95 SLOT="0"
96 KEYWORDS="~amd64 ~x86"
97 IUSE="ada cairo d doc dynamic examples fortran gd java jpeg latex lua ocaml octave
98 pdf perl png python qhull qt4 svg tcl test threads tk truetype wxwidgets X"
99
100 RDEPEND="
101 ada? ( virtual/gnat )
102 cairo? ( x11-libs/cairo[svg?,X?] )
103 java? ( >=virtual/jre-1.5 )
104 gd? ( media-libs/gd[jpeg?,png?] )
105 latex? ( virtual/latex-base app-text/ghostscript-gpl )
106 lua? ( dev-lang/lua )
107 ocaml? (
108 dev-lang/ocaml
109 dev-ml/camlidl
110 dev-ml/lablgtk )
111 octave? ( sci-mathematics/octave )
112 pdf? ( media-libs/libharu )
113 perl? ( dev-perl/PDL dev-perl/XML-DOM )
114 python? (
115 dev-python/numpy
116 qt4? ( dev-python/PyQt4 ) )
117 qhull? ( media-libs/qhull )
118 qt4? (
119 x11-libs/qt-gui:4
120 x11-libs/qt-svg:4 )
121 svga? ( media-libs/svgalib )
122 tcl? ( dev-lang/tcl dev-tcltk/itcl
123 tk? ( dev-lang/tk dev-tcltk/itk ) )
124 truetype? (
125 media-fonts/freefont-ttf
126 media-libs/lasi
127 gd? ( media-libs/gd[truetype] ) )
128 wxwidgets? ( x11-libs/wxGTK:2.8[X] x11-libs/agg[truetype?] )
129 X? ( x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp )"
130 DEPEND="${RDEPEND}
131 dev-util/pkgconfig
132 java? ( >=virtual/jdk-1.5 dev-lang/swig )
133 ocaml? ( dev-ml/findlib )
134 python? ( dev-lang/swig )
135 test? ( media-fonts/font-misc-misc
136 media-fonts/font-cursor-misc )"
137
138 pkg_setup() {
139 if use fortran; then
140 export FC=$(tc-getFC) F77=$(tc-getF77)
141 else
142 export FC="" F77=""
143 fi
144 use wxwidgets && wxwidgets_pkg_setup
145 use python && python_set_active_version 2
146 use java && java-pkg-opt-2_pkg_setup
147 }
148
149 src_prepare() {
150 # path for python independent of python version
151 epatch "${FILESDIR}"/${PN}-5.9.6-python.patch
152
153 # remove license
154 sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die
155
156 # change default install directories for doc and examples
157 sed -i \
158 -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \
159 examples/CMakeLists.txt examples/*/CMakeLists.txt || die
160 sed -i \
161 -e 's:${VERSION}::g' \
162 -e "s:doc/\${PACKAGE}:doc/${PF}:" \
163 cmake/modules/instdirs.cmake || die
164
165 use java && java-utils-2_src_prepare
166 }
167
168 src_configure() {
169 # see http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot
170 cmake-utils_pld() { _use_me_now PLD "$1 _$2" ; }
171
172 mycmakeargs=(
173 -DUSE_RPATH=OFF
174 -DUSE_RELATIVE_PATH=OFF
175 -DDEFAULT_ALL_DEVICES=ON
176 -DTEST_DYNDRIVERS=OFF
177 -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
178 $(cmake-utils_use_build test)
179 $(cmake-utils_use_has python numpy)
180 $(cmake-utils_use_has qhull QHULL)
181 $(cmake-utils_use_has threads PTHREAD)
182 $(cmake-utils_use_with truetype FREETYPE)
183 $(cmake-utils_use_enable ada)
184 $(cmake-utils_use_enable d)
185 $(cmake-utils_use_enable dynamic DYNDRIVERS)
186 $(cmake-utils_use_enable fortran f77)
187 $(cmake-utils_use_enable java)
188 $(cmake-utils_use_enable lua)
189 $(cmake-utils_use_enable ocaml)
190 $(cmake-utils_use_enable octave)
191 $(cmake-utils_use_enable perl pdl)
192 $(cmake-utils_use_enable python)
193 $(cmake-utils_use_enable qt4 qt)
194 $(cmake-utils_use_enable tcl)
195 $(cmake-utils_use_enable tcl itcl)
196 $(cmake-utils_use_enable tk)
197 $(cmake-utils_use_enable tk itk)
198 $(cmake-utils_pld cairo memcairo)
199 $(cmake-utils_pld cairo extcairo)
200 $(cmake-utils_pld cairo pdfcairo)
201 $(cmake-utils_pld cairo pngcairo)
202 $(cmake-utils_pld cairo pscairo)
203 $(cmake-utils_pld cairo svgcairo)
204 $(cmake-utils_pld cairo xcairo)
205 $(cmake-utils_pld qt4 bmpqt)
206 $(cmake-utils_pld qt4 epsqt)
207 $(cmake-utils_pld qt4 extqt)
208 $(cmake-utils_pld qt4 jpgqt)
209 $(cmake-utils_pld qt4 memqt)
210 $(cmake-utils_pld qt4 pdfqt)
211 $(cmake-utils_pld qt4 pngqt)
212 $(cmake-utils_pld qt4 ppmqt)
213 $(cmake-utils_pld qt4 qtwidgets)
214 $(cmake-utils_pld qt4 svgqt)
215 $(cmake-utils_pld qt4 tiffqt)
216 $(cmake-utils_pld wxwidgets wxwidgets)
217 $(cmake-utils_pld wxwidgets wxpng)
218 $(cmake-utils_pld pdf)
219 $(cmake-utils_pld truetype psttf)
220 $(cmake-utils_pld latex pstex)
221 )
222 use fortran && [[ $(tc-getFC) != *g77 ]] && \
223 mycmakeargs+=( $(cmake-utils_use_enable fortran f95) )
224
225 use truetype && mycmakeargs+=(
226 -DPL_FREETYPE_FONT_PATH:PATH="${EPREFIX}/usr/share/fonts/freefont-ttf" )
227
228 use python && use qt4 && mycmakeargs+=( $(cmake_utils_pld pyqt) )
229 use doc && mycmakeargs+=( -DPREBUILT_DOC=ON )
230 cmake-utils_src_configure
231 }
232
233 src_test() {
234 pushd "${S}_build" > /dev/null
235 Xemake test || die "tests failed"
236 popd > /dev/null
237 }
238
239 src_install() {
240 cmake-utils_src_install
241 use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
242 }