Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/paraview/
Date: Mon, 20 Sep 2021 17:51:10
Message-Id: 1632160252.c99fa82c5e70fbc9b27a93f7a01f5fb1d37e6053.dilfridge@gentoo
1 commit: c99fa82c5e70fbc9b27a93f7a01f5fb1d37e6053
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 20 17:50:24 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 20 17:50:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c99fa82c
7
8 sci-visualization/paraview: Remove old
9
10 Bug: https://bugs.gentoo.org/788055
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Andreas K. Huettel <dilfridge <AT> gentoo.org>
13
14 sci-visualization/paraview/Manifest | 1 -
15 sci-visualization/paraview/metadata.xml | 2 -
16 sci-visualization/paraview/paraview-5.8.1.ebuild | 250 -----------------------
17 3 files changed, 253 deletions(-)
18
19 diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest
20 index d3dd7798e5b..681c4522e3f 100644
21 --- a/sci-visualization/paraview/Manifest
22 +++ b/sci-visualization/paraview/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST ParaView-v5.8.1.tar.xz 49822084 BLAKE2B 1b99392a85c19fdc02f8f9f0f055fb7efd8a0b17eedfd84005d1af9b170c34ec4eedb25700f91c3a2241ee80e271fe1e744e3a729b7726deb8f9c7a9fd2e4191 SHA512 94861c01da2f98c47e7453d072a4de34a7f52f5df280a8745b44d58d8d6a1dba42a15d0bac31895bbe25f23d993d4d356e5af1f8415137e289afd60570070248
25 DIST ParaView-v5.9.0.tar.xz 62784788 BLAKE2B f07bfce50304b2bfba0de4ba3127d686cf4c32633f8c707fbb2d93c19685f7e8a119ba211e27c29b986ca5b22afab4f57c273077a1c0a7ab0abefa55c8874e28 SHA512 44d93b49449262aa3f068aa990419415c3197916a002555d914efc407ed7ccd57b15b829f0fe711afee780e5e63fb1bd072175fc382f3afd36daecc541c382d5
26 DIST ParaView-v5.9.1.tar.xz 62835572 BLAKE2B ba15771de9d972de533627ce3e2c74fd5f25df08884680ea6f1ceea0adb513c024f58e4436691bf17b11728f8e1c09f6ce1d55d9875729169dbc5f4b38c05de8 SHA512 d424e22d962f21c32971ca0001c10c266a1768713a3d0ae9d4c73dc83260c4661326cfbed7773845cf31dedc0474096ed9d6eb8a42ab7677cdde95f9f6abd2f2
27
28 diff --git a/sci-visualization/paraview/metadata.xml b/sci-visualization/paraview/metadata.xml
29 index a6c779ecf4b..2048ce66a32 100644
30 --- a/sci-visualization/paraview/metadata.xml
31 +++ b/sci-visualization/paraview/metadata.xml
32 @@ -8,8 +8,6 @@
33 <use>
34 <flag name="boost">Enable the usage of dev-libs/boost</flag>
35 <flag name="cg">Add support for nvidia's cg shaders</flag>
36 - <flag name="coprocessing">Enable the coprocessing infrastructure which is mainly useful in the context of clusters</flag>
37 - <flag name="development">Install development files including headers</flag>
38 <flag name="nvcontrol">Add NVCONTROL support for OpenGL options</flag>
39 <flag name="offscreen">Offscreen rendering through OSMesa</flag>
40 <flag name="plugins">Build and install additional plugins</flag>
41
42 diff --git a/sci-visualization/paraview/paraview-5.8.1.ebuild b/sci-visualization/paraview/paraview-5.8.1.ebuild
43 deleted file mode 100644
44 index cea5bd462e9..00000000000
45 --- a/sci-visualization/paraview/paraview-5.8.1.ebuild
46 +++ /dev/null
47 @@ -1,250 +0,0 @@
48 -# Copyright 1999-2021 Gentoo Authors
49 -# Distributed under the terms of the GNU General Public License v2
50 -
51 -EAPI=7
52 -
53 -PYTHON_COMPAT=( python3_{8,9} )
54 -inherit cmake desktop python-single-r1 qmake-utils toolchain-funcs xdg-utils
55 -
56 -MAIN_PV=$(ver_cut 0-1)
57 -MAJOR_PV=$(ver_cut 1-2)
58 -MY_P="ParaView-v${PV}"
59 -
60 -DESCRIPTION="Powerful scientific data visualization application"
61 -HOMEPAGE="https://www.paraview.org"
62 -SRC_URI="https://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.xz"
63 -
64 -LICENSE="paraview GPL-2"
65 -SLOT="0"
66 -KEYWORDS="~amd64 ~x86"
67 -IUSE="boost cg coprocessing development doc examples ffmpeg mpi mysql nvcontrol openmp offscreen plugins python +qt5 +sqlite test tk +webengine"
68 -
69 -RESTRICT="mirror test"
70 -
71 -# "vtksqlite, needed by vtkIOSQL" and "vtkIOSQL, needed by vtkIOMySQL"
72 -REQUIRED_USE="
73 - python? ( mpi ${PYTHON_REQUIRED_USE} )
74 - mysql? ( sqlite )
75 - webengine? ( qt5 )
76 - qt5? ( sqlite )
77 - ?? ( offscreen qt5 )"
78 -
79 -RDEPEND="
80 - app-arch/lz4
81 - dev-libs/expat
82 - dev-libs/jsoncpp:=
83 - dev-libs/libxml2:2
84 - dev-libs/protobuf:=
85 - dev-libs/pugixml
86 - media-libs/freetype
87 - media-libs/glew:0
88 - media-libs/libpng:0
89 - media-libs/libtheora
90 - media-libs/tiff:0=
91 - sci-libs/cgnslib
92 - sci-libs/hdf5:=[mpi=]
93 - >=sci-libs/netcdf-4.2[hdf5]
94 - >=sci-libs/netcdf-cxx-4.2:3
95 - sys-libs/zlib
96 - virtual/glu
97 - virtual/jpeg:0
98 - x11-libs/libX11
99 - x11-libs/libXext
100 - x11-libs/libXmu
101 - x11-libs/libXt
102 - coprocessing? (
103 - dev-python/PyQt5
104 - dev-qt/qtgui:5[-gles2-only]
105 - )
106 - ffmpeg? ( media-video/ffmpeg )
107 - mpi? ( virtual/mpi[cxx,romio] )
108 - mysql? ( dev-db/mysql-connector-c )
109 - offscreen? ( >=media-libs/mesa-18.3.6[osmesa] )
110 - !offscreen? ( virtual/opengl )
111 - python? (
112 - ${PYTHON_DEPS}
113 - $(python_gen_cond_dep '
114 - dev-python/constantly[${PYTHON_USEDEP}]
115 - dev-python/incremental[${PYTHON_USEDEP}]
116 - dev-python/matplotlib[${PYTHON_USEDEP}]
117 - dev-python/numpy[${PYTHON_USEDEP}]
118 - dev-python/pygments[${PYTHON_USEDEP}]
119 - dev-python/sip[${PYTHON_USEDEP}]
120 - dev-python/six[${PYTHON_USEDEP}]
121 - dev-python/twisted[${PYTHON_USEDEP}]
122 - dev-python/zope-interface[${PYTHON_USEDEP}]
123 - mpi? ( dev-python/mpi4py )
124 - qt5? ( dev-python/PyQt5[opengl,${PYTHON_USEDEP}] )
125 - ')
126 - )
127 - qt5? (
128 - dev-qt/designer:5
129 - dev-qt/qtgui:5[-gles2-only]
130 - dev-qt/qthelp:5
131 - dev-qt/qtopengl:5[-gles2-only]
132 - dev-qt/qtsql:5
133 - dev-qt/qtsvg:5
134 - dev-qt/qttest:5
135 - dev-qt/qtx11extras:5
136 - dev-qt/qtxmlpatterns:5
137 - )
138 - sqlite? ( dev-db/sqlite:3 )
139 - tk? ( dev-lang/tk:0= )
140 - webengine? ( dev-qt/qtwebengine:5[widgets] )"
141 -DEPEND="${RDEPEND}
142 - ${PYTHON_DEPS}
143 - boost? (
144 - $(python_gen_cond_dep '
145 - dev-libs/boost[mpi?,${PYTHON_USEDEP}]
146 - ')
147 - )
148 - doc? ( app-doc/doxygen )"
149 -
150 -S="${WORKDIR}/${MY_P}"
151 -
152 -PATCHES=(
153 - "${FILESDIR}"/${PN}-4.0.1-xdmf-cstring.patch
154 - "${FILESDIR}"/${PN}-5.3.0-fix_buildsystem.patch
155 - "${FILESDIR}"/${PN}-5.5.0-allow_custom_build_type.patch
156 - "${FILESDIR}"/${PN}-5.8.0-w-vtk-8.2.0-qt-5.15.patch # bug 729348
157 - "${FILESDIR}"/${P}-find-xmlpatterns.patch # bug 755977, downstream patch
158 -)
159 -
160 -pkg_setup() {
161 - [[ ${MERGE_TYPE} != "binary" ]] && use openmp && tc-check-openmp
162 - use python && python-single-r1_pkg_setup
163 - PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV}
164 -}
165 -
166 -src_prepare() {
167 - # Bug #661812
168 - mkdir -p Plugins/StreamLinesRepresentation/doc || die
169 -
170 - cmake_src_prepare
171 -
172 - # lib64 fixes
173 - sed -i \
174 - -e "s:/lib/python:/$(get_libdir)/python:g" \
175 - VTK/ThirdParty/xdmf3/vtkxdmf3/CMakeLists.txt || die
176 - sed -i \
177 - -e "s:lib/paraview-:$(get_libdir)/paraview-:g" \
178 - Remoting/Application/vtkInitializationHelper.cxx || die
179 -}
180 -
181 -src_configure() {
182 - local mycmakeargs=(
183 - -DCMAKE_INSTALL_LIBDIR="${PVLIBDIR}"
184 - -UBUILD_SHARED_LIBS
185 - -DPARAVIEW_BUILD_SHARED_LIBS=ON
186 - -DCMAKE_VERBOSE_MAKEFILE=ON
187 -
188 - -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=TRUE
189 -
190 - -DVTK_USE_OGGTHEORA_ENCODER=TRUE
191 -
192 - -DVTK_GROUP_ENABLE_Imaging=YES
193 - -DVTK_GROUP_ENABLE_Rendering=YES
194 - -DVTK_GROUP_ENABLE_StandAlone=YES
195 - -DVTK_GROUP_ENABLE_Views=YES
196 -
197 - # boost
198 - -DVTK_MODULE_ENABLE_VTK_IOInfovis="$(usex boost YES NO)"
199 -
200 - # coprocessing
201 -# -DVTK_MODULE_ENABLE_ParaView_Catalyst="$(usex coprocessing YES NO)"
202 -
203 - # doc
204 - -DPARAVIEW_BUILD_DEVELOPER_DOCUMENTATION="$(usex doc)"
205 -
206 - # examples
207 - -DBUILD_EXAMPLES="$(usex examples)"
208 -
209 - # ffmpeg
210 - -DPARAVIEW_ENABLE_FFMPEG="$(usex ffmpeg)"
211 - -DVTK_USE_FFMPEG_ENCODER="$(usex ffmpeg)"
212 -
213 - # mpi
214 - -DPARAVIEW_USE_MPI="$(usex mpi)"
215 - -DXDMF_BUILD_MPI="$(usex mpi)"
216 - -DVTK_GROUP_ENABLE_MPI="$(usex mpi YES NO)"
217 -
218 - # mysql
219 - -DVTK_MODULE_ENABLE_VTK_IOMySQL="$(usex mysql YES NO)"
220 -
221 - # offscreen
222 - -DVTK_USE_X="$(usex !offscreen)"
223 - -DVTK_OPENGL_HAS_OSMESA="$(usex offscreen)"
224 - -DVTK_OPENGL_HAS_OSMESA="$(usex offscreen)"
225 -
226 - # plugins
227 - -DPARAVIEW_PLUGINS_DEFAULT="$(usex plugins)"
228 -
229 - # python
230 - -DModule_pqPython="$(usex python)"
231 - -DPARAVIEW_USE_PYTHON="$(usex python)"
232 -
233 - # qt5
234 - -DPARAVIEW_INSTALL_DEVELOPMENT_FILES="$(usex development)"
235 - -DPARAVIEW_USE_QT="$(usex qt5)"
236 - -DModule_pqPython="$(usex qt5 "$(usex python)" "off")"
237 - -DVTK_USE_NVCONTROL="$(usex nvcontrol)"
238 - -DVTK_GROUP_ENABLE_Qt="$(usex qt5 YES NO)"
239 -
240 - # sqlite
241 - -DVTK_MODULE_ENABLE_VTK_sqlite="$(usex sqlite YES NO)"
242 -
243 - # test
244 - -DBUILD_TESTING="$(usex test)"
245 -
246 - # tk
247 - -DVTK_USE_TK="$(usex tk)"
248 - -DVTK_GROUP_ENABLE_Tk="$(usex tk YES NO)"
249 -
250 - # webengine
251 - -DPARAVIEW_USE_QTWEBENGINE="$(usex webengine)"
252 - -DVTK_GROUP_ENABLE_Web="$(usex webengine YES NO)"
253 - )
254 -
255 - if use openmp; then
256 - mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP )
257 - fi
258 -
259 - if use qt5; then
260 - mycmakeargs+=(
261 - -DOPENGL_gl_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGL.so
262 - -DOPENGL_glu_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGLU.so
263 - -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
264 - -Dqt_xmlpatterns_executable="$(qt5_get_bindir)/xmlpatterns"
265 - )
266 - fi
267 -
268 - cmake_src_configure
269 -}
270 -
271 -src_install() {
272 - cmake_src_install
273 -
274 - # remove wrapper binaries and put the actual executable in place
275 - for i in {paraview-config,pvserver,pvdataserver,pvrenderserver,pvbatch,pvpython,paraview}; do
276 - if [ -f "${ED}"/usr/lib/"$i" ]; then
277 - mv "${ED}"/usr/lib/"$i" "${ED}"/usr/bin/"$i" || die
278 - fi
279 - done
280 -
281 - # set up the environment
282 - echo "LDPATH=${EPREFIX}/usr/${PVLIBDIR}" > "${T}"/40${PN} || die
283 - doenvd "${T}"/40${PN}
284 -
285 - newicon "${S}"/Clients/ParaView/pvIcon-96x96.png paraview.png
286 - make_desktop_entry paraview "Paraview" paraview
287 -
288 - use python && python_optimize "${D}"/usr/$(get_libdir)/${PN}-${MAJOR_PV}
289 -}
290 -
291 -pkg_postinst() {
292 - xdg_icon_cache_update
293 -}
294 -
295 -pkg_postrm() {
296 - xdg_icon_cache_update
297 -}