freecad: rebuild against med vtk python-pivy, fix 'About FreeCAD' (ref, date)

[ci skip]
This commit is contained in:
yopito 2019-03-10 17:14:08 +01:00 committed by maxice8
parent ef66240710
commit 7237e99cc5

View file

@ -5,25 +5,25 @@
# - python3: freecad code not yet ready for it, probably at 0.18
pkgname=freecad
version=0.17
revision=9
revision=10
wrksrc="FreeCAD-${version}"
build_style=cmake
_inst_prefix=/usr/lib/${pkgname}
# CMAKE_INSTALL_LIBDIR by default doesn't use PREFIX, so we set it manually
_inst_prefix=/usr/lib/${pkgname}
configure_args="
-DBUILD_QT5=OFF
-DCMAKE_INSTALL_PREFIX=${_inst_prefix}
-DCMAKE_INSTALL_LIBDIR=${_inst_prefix}/lib
-DMEDFILE_INCLUDE_DIRS=/usr/include/med"
hostmakedepends="pkg-config swig doxygen graphviz dos2unix"
makedepends="python-devel boost-devel libxerces-c-devel
zlib-devel occt-devel vtk-devel hdf5-devel openmpi-devel libmed-devel eigen
makedepends="python-devel boost-devel libxerces-c-devel zlib-devel occt-devel
vtk-devel hdf5-devel openmpi-devel libmed-devel eigen double-conversion-devel
coin3-devel libshiboken-python-devel libspnav-devel pyside-tools liblz4-devel
libpyside-python-devel python-matplotlib netcdf-devel jsoncpp-devel
qt-devel qt-webkit-devel coin3-doc"
# qt-devel-tools, qt-plugin-sqlite: Help uses qt/assistant, its data in SQLite format
# FreeCAD help: qt/assistant, in SQLite format
depends="python-matplotlib python-pyside qt-devel-tools qt-plugin-sqlite python-pivy"
pycompile_dirs="usr/lib/${pkgname}/Mod usr/lib/${pkgname}/data/Mod"
@ -36,7 +36,13 @@ distfiles="https://github.com/FreeCAD/FreeCAD/archive/${version}.tar.gz"
checksum=ae017393476b6dc7f1192bcaf91ceedc2f9b791f2495307ce7c45efadb5266fb
post_extract() {
find $wrksrc -type f -exec dos2unix {} +
find $wrksrc -type f -exec dos2unix -q {} +
# SubWCRev.py (SCM check) reports "unknown" for these fields
sed -i -e "s,\${PACKAGE_WCREF},${revision}_voidlinux," \
-e "s,\${PACKAGE_WCDATE},(from release)," \
-e "s,\${PACKAGE_WCURL},VoidLinux package ${pkgname}," \
src/Build/Version.h.cmake
}
post_install() {