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