vtk: enable bindings for python3
[ci skip] Closes: #24531 [via git-merge-pr]
This commit is contained in:
parent
50e8b5355c
commit
eddfd41d05
3 changed files with 33 additions and 7 deletions
|
@ -3335,6 +3335,7 @@ libvtkIOCore-9.0.so.1 vtk-9.0.1_1
|
|||
libvtkIOEnSight-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOExodus-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOExport-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOExportGL2PS-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOExportOpenGL2-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOExportPDF-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOGeometry-9.0.so.1 vtk-9.0.1_1
|
||||
|
@ -3343,10 +3344,12 @@ libvtkIOImport-9.0.so.1 vtk-9.0.1_1
|
|||
libvtkIOInfovis-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOLSDyna-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOLegacy-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOMotionFX-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOMINC-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOMPIParallel-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOMovie-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIONetCDF-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOOggTheora-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOPLY-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOParallel-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkIOParallelXML-9.0.so.1 vtk-9.0.1_1
|
||||
|
@ -3384,8 +3387,12 @@ libvtkRenderingImage-9.0.so.1 vtk-9.0.1_1
|
|||
libvtkRenderingLOD-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingLabel-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingOpenGL2-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingSceneGraph-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingUI-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingVolume-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingVolumeOpenGL2-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkRenderingVtkJS-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkTestingRendering-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkViewsContext2D-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkViewsCore-9.0.so.1 vtk-9.0.1_1
|
||||
libvtkViewsInfovis-9.0.so.1 vtk-9.0.1_1
|
||||
|
|
1
srcpkgs/vtk-python3
Symbolic link
1
srcpkgs/vtk-python3
Symbolic link
|
@ -0,0 +1 @@
|
|||
vtk
|
|
@ -1,18 +1,17 @@
|
|||
# Template file for 'vtk'
|
||||
pkgname=vtk
|
||||
version=9.0.1
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc=VTK-${version}
|
||||
build_style=cmake
|
||||
# vtk can be huge, especially with -DVTK_BUILD_ALL_MODULES=ON"
|
||||
# Here only the core modules set for freecad is getting built
|
||||
configure_args="-DBUILD_SHARED_LIBS=ON -DVTK_FORBID_DOWNLOADS=ON"
|
||||
|
||||
# Build only the core modules plus python bindings for now
|
||||
configure_args="-DBUILD_SHARED_LIBS=ON -DVTK_FORBID_DOWNLOADS=ON
|
||||
-DVTK_WRAP_PYTHON=ON -DVTK_PYTHON_VERSION=3"
|
||||
makedepends="zlib-devel freetype-devel liblz4-devel expat-devel MesaLib-devel
|
||||
libXt-devel libjpeg-turbo-devel tiff-devel hdf5-devel netcdf-devel
|
||||
libxml2-devel jsoncpp-devel openmpi-devel libogg-devel libtheora-devel
|
||||
eigen double-conversion-devel glew-devel pugixml-devel sqlite-devel"
|
||||
|
||||
eigen double-conversion-devel glew-devel pugixml-devel sqlite-devel python3-devel"
|
||||
short_desc="System for 3D computer graphics, image processing, and visualization"
|
||||
maintainer="Piraty <piraty1@inbox.ru>"
|
||||
license="BSD-3-Clause"
|
||||
|
@ -27,12 +26,31 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|||
LDFLAGS="-lexecinfo"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
vlicense Copyright.txt
|
||||
|
||||
# Mangle CPython extension names in CMake like xbps-src will do
|
||||
vsed -e 's,\(vtkmodules/vtk.*\)\.cpython-.*\.so,\1.so,' \
|
||||
-i "${DESTDIR}/usr/lib/cmake/vtk-9.0/VTKPython-targets-release.cmake"
|
||||
}
|
||||
|
||||
vtk-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
depends="vtk-python3>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/*.so
|
||||
vmove usr/lib/cmake
|
||||
}
|
||||
}
|
||||
|
||||
vtk-python3_package() {
|
||||
short_desc+=" - Python3 bindings"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/bin/vtkpython
|
||||
vmove usr/lib/python3.8
|
||||
vmove "usr/lib/lib*Python*.so.*"
|
||||
vmove "usr/lib/vtk/hierarchy/VTK/vtk*Python*.txt"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue