1 |
markusle 08/10/28 21:41:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: paraview-3.4.0.ebuild |
5 |
Log: |
6 |
Version bump (see bug #243362). |
7 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-SENTINEL-1 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.27 sci-visualization/paraview/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/paraview/ChangeLog?rev=1.27&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/paraview/ChangeLog?rev=1.27&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/paraview/ChangeLog?r1=1.26&r2=1.27 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v |
19 |
retrieving revision 1.26 |
20 |
retrieving revision 1.27 |
21 |
diff -u -r1.26 -r1.27 |
22 |
--- ChangeLog 22 Oct 2008 15:24:11 -0000 1.26 |
23 |
+++ ChangeLog 28 Oct 2008 21:41:15 -0000 1.27 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sci-visualization/paraview |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.26 2008/10/22 15:24:11 markusle Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/ChangeLog,v 1.27 2008/10/28 21:41:15 markusle Exp $ |
29 |
+ |
30 |
+*paraview-3.4.0 (28 Oct 2008) |
31 |
+ |
32 |
+ 28 Oct 2008; Markus Dittrich <markusle@g.o> +paraview-3.4.0.ebuild: |
33 |
+ Version bump (see bug #243362). |
34 |
|
35 |
22 Oct 2008; Markus Dittrich <markusle@g.o> |
36 |
paraview-3.3_pre20080514.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 sci-visualization/paraview/paraview-3.4.0.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/paraview/paraview-3.4.0.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/paraview/paraview-3.4.0.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: paraview-3.4.0.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/paraview/paraview-3.4.0.ebuild,v 1.1 2008/10/28 21:41:15 markusle Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
inherit distutils eutils flag-o-matic toolchain-funcs versionator python qt4 |
54 |
|
55 |
MY_PV="3.3" |
56 |
PATCH_V="${MY_PV}_pre20080514" |
57 |
|
58 |
DESCRIPTION="ParaView is a powerful scientific data visualization application" |
59 |
HOMEPAGE="http://www.paraview.org" |
60 |
SRC_URI="mirror://gentoo/${P}.tar.gz |
61 |
mirror://gentoo/${P}-OpenFOAM.patch.bz2" |
62 |
|
63 |
LICENSE="paraview" |
64 |
KEYWORDS="~x86 ~amd64" |
65 |
SLOT="0" |
66 |
IUSE="mpi python hdf5 doc examples threads qt4" |
67 |
RDEPEND="hdf5? ( sci-libs/hdf5 ) |
68 |
mpi? ( || ( |
69 |
sys-cluster/openmpi |
70 |
sys-cluster/mpich2[cxx] ) ) |
71 |
python? ( >=dev-lang/python-2.0 ) |
72 |
qt4? ( || ( ( x11-libs/qt-gui:4 x11-libs/qt-qt3support:4 |
73 |
x11-libs/qt-assistant:4 ) |
74 |
=x11-libs/qt-4.3*:4 ) ) |
75 |
dev-libs/libxml2 |
76 |
media-libs/libpng |
77 |
media-libs/jpeg |
78 |
media-libs/tiff |
79 |
dev-libs/expat |
80 |
sys-libs/zlib |
81 |
media-libs/freetype |
82 |
>=app-admin/eselect-opengl-1.0.6-r1 |
83 |
virtual/opengl |
84 |
sci-libs/netcdf |
85 |
x11-libs/libXmu" |
86 |
|
87 |
DEPEND="${RDEPEND} |
88 |
doc? ( app-doc/doxygen ) |
89 |
>=dev-util/cmake-2.4.5" |
90 |
|
91 |
PVLIBDIR="$(get_libdir)/${PN}-${MY_PV}" |
92 |
BUILDDIR="${WORKDIR}/build" |
93 |
S="${WORKDIR}"/ParaView-${PV} |
94 |
|
95 |
pkg_setup() { |
96 |
use qt4 && qt4_pkg_setup |
97 |
} |
98 |
|
99 |
src_unpack() { |
100 |
unpack ${A} |
101 |
mkdir "${BUILDDIR}" || die "Failed to generate build directory" |
102 |
cd "${S}" |
103 |
epatch "${FILESDIR}"/${PN}-${PATCH_V}-gcc4.3.patch |
104 |
epatch "${FILESDIR}"/${PN}-${PATCH_V}-qt4.4.patch |
105 |
epatch "${DISTDIR}"/${P}-OpenFOAM.patch.bz2 |
106 |
|
107 |
# rename paraview's assistant wrapper |
108 |
if use qt4; then |
109 |
sed -e "s:\"assistant\":\"paraview-assistant\":" \ |
110 |
-i Applications/Client/MainWindow.cxx \ |
111 |
|| die "Failed to fix assistant wrapper call" |
112 |
fi |
113 |
|
114 |
# fix GL issues |
115 |
sed -e "s:DEPTH_STENCIL_EXT:DEPTH_COMPONENT24:" \ |
116 |
-i VTK/Rendering/vtkOpenGLRenderWindow.cxx \ |
117 |
|| die "Failed to fix GL issues." |
118 |
} |
119 |
|
120 |
src_compile() { |
121 |
cd "${BUILDDIR}" |
122 |
local CMAKE_VARIABLES="" |
123 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPV_INSTALL_LIB_DIR:PATH=/${PVLIBDIR}" |
124 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_SKIP_RPATH:BOOL=YES" |
125 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_RPATH:BOOL=OFF" |
126 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_INSTALL_PREFIX:PATH=/usr" |
127 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_SHARED_LIBS:BOOL=ON" |
128 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON" |
129 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_JPEG:BOOL=ON" |
130 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_PNG:BOOL=ON" |
131 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_TIFF:BOOL=ON" |
132 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_ZLIB:BOOL=ON" |
133 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_EXPAT:BOOL=ON" |
134 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF" |
135 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DEXPAT_INCLUDE_DIR:PATH=/usr/include" |
136 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DEXPAT_LIBRARY=/usr/$(get_libdir)/libexpat.so" |
137 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DOPENGL_gl_LIBRARY=/usr/$(get_libdir)/libGL.so" |
138 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DOPENGL_glu_LIBRARY=/usr/$(get_libdir)/libGLU.so" |
139 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_GLEXT_FILE=/usr/include/GL/glext.h" |
140 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_GLXEXT_FILE=/usr/include/GL/glxext.h" |
141 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_COLOR_MAKEFILE:BOOL=TRUE" |
142 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON" |
143 |
# paraview uses a non exisiting call to boost's graph library |
144 |
# maybe upstream needs to update |
145 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_BOOST:BOOL=OFF" |
146 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_OFFSCREEN=TRUE" |
147 |
|
148 |
# paraview used the deprecated img_convert(..) call; hence disable |
149 |
# until upstream has switched to swscale |
150 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF" |
151 |
if use hdf5; then |
152 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON" |
153 |
fi |
154 |
|
155 |
if use mpi; then |
156 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_USE_MPI:BOOL=ON" |
157 |
fi |
158 |
|
159 |
if use python; then |
160 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_ENABLE_PYTHON:BOOL=ON" |
161 |
fi |
162 |
|
163 |
use doc && CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_DOCUMENTATION:BOOL=ON" |
164 |
|
165 |
if use examples; then |
166 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_EXAMPLES:BOOL=ON" |
167 |
else |
168 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_EXAMPLES:BOOL=OFF" |
169 |
fi |
170 |
|
171 |
if use qt4; then |
172 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_QT_GUI:BOOL=ON" |
173 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer" |
174 |
else |
175 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF" |
176 |
fi |
177 |
|
178 |
if use threads; then |
179 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=ON" |
180 |
else |
181 |
CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_USE_PTHREADS:BOOL=OFF" |
182 |
fi |
183 |
|
184 |
cmake ${CMAKE_VARIABLES} "${S}" \ |
185 |
|| die "cmake configuration failed" |
186 |
|
187 |
emake || die "emake failed" |
188 |
|
189 |
} |
190 |
|
191 |
src_install() { |
192 |
cd "${BUILDDIR}" |
193 |
make DESTDIR="${D}" install || die "make install failed" |
194 |
|
195 |
# rename the assistant wrapper |
196 |
if use qt4; then |
197 |
mv "${D}"/usr/bin/assistant "${D}"/usr/bin/paraview-assistant \ |
198 |
|| die "Failed to rename assistant wrapper" |
199 |
chmod 0755 "${D}"/usr/$(get_libdir)/${PN}-${MY_PV}/assistant-real \ |
200 |
|| die "Failed to change permissions on assistant wrapper" |
201 |
fi |
202 |
|
203 |
# add release note for the OpenFOAM-1.5 patch |
204 |
dodoc "${S}"/ReleaseNotes_OpenFOAMReader20080831 |
205 |
|
206 |
# set up the environment |
207 |
echo "LDPATH=/usr/${PVLIBDIR}" >> "${T}"/40${PN} |
208 |
doenvd "${T}"/40${PN} |
209 |
} |