diff options
Diffstat (limited to 'sci-libs/opencascade')
-rw-r--r-- | sci-libs/opencascade/Manifest | 9 | ||||
-rw-r--r-- | sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch | 38 | ||||
-rw-r--r-- | sci-libs/opencascade/files/opencascade-7.3.0-fixed-DESTDIR.patch | 31 | ||||
-rw-r--r-- | sci-libs/opencascade/files/opencascade-7.3.0-vtk-compat.patch | 13 | ||||
-rw-r--r-- | sci-libs/opencascade/metadata.xml | 3 | ||||
-rw-r--r-- | sci-libs/opencascade/opencascade-7.3.0.ebuild | 141 | ||||
-rw-r--r-- | sci-libs/opencascade/opencascade-7.4.0.ebuild | 9 |
7 files changed, 9 insertions, 235 deletions
diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest index cfeb4e1b3238..dbf704875294 100644 --- a/sci-libs/opencascade/Manifest +++ b/sci-libs/opencascade/Manifest @@ -1,11 +1,6 @@ -AUX opencascade-7.3.0-ffmpeg4.patch 1392 BLAKE2B ce5f6c82b34ca00c758411102d15b12bc410f98156b6281a2c50609eee05e1655e93cbd918c509b2daa6e018fb7cd107a6a8a539f9d9f19438d3cf5a7e20e3cd SHA512 447ff4039ed6ad0f01d62a4d129ff0eed77427fff11dc6303decb5e15b41dd1be305a909838c296a926ddaa8c93211995f188f95c4a70a9f9ce896e7d286929f -AUX opencascade-7.3.0-fixed-DESTDIR.patch 2272 BLAKE2B 30b0e045d872673ff65f00b471d9b7e5239f451329d8a0d3f0f367c811a387ef76c368eeddc3fe8d6684d7012190ae09aac66f2f91fdec7b2b4f4134b3a1463a SHA512 57e5195516d8f282c0ecd5de88e7e29f00a3748ae9ac82c74eca3b4f577dd4f4e6286e1deda424590a8c8b30cb1cd326d5c4f1634d0f7dba5bcb6ce88758a9f5 -AUX opencascade-7.3.0-vtk-compat.patch 431 BLAKE2B 468a804ed906555637110b0d7cb7a4ef994fae9130e7317e525d21598cc19b67e8c7bfaaaffea82ee8fb94a20c14b42e6ec02e2541ddfc54fc288c8d0f68fc7c SHA512 026ed3451c1c36e1f187be390773329ad011c9ebdb766b730ee04f9f9a844a307c4fefc6669c81187fd34d8264bea233680c7ee43afb566e695c3d64c37438a4 AUX opencascade-7.4.0-find-qt.patch 3349 BLAKE2B 6520b3242927c86c4958f81f8a94e8976fb2cd262318ee7fd7e1362bb95d0d665bbf909108a0526e4d251af045f734a58ee6cfae631b14b139e1a70f7666beb3 SHA512 8d7a758f749794430267e473b6048386bb3b9e4274091f5a5662bfcbaf2c76cdf0c3c2fac4d6e8f03ea300bfe3d0258cb23b8f184de62f153d12a41746f02e75 AUX opencascade-7.4.0-fix-install.patch 7870 BLAKE2B 4842ad5123a06a53b81ca80e4152434ee6d78a9eb5436a7a9f899651fcdb45a6f403f31bd6e4225611c1085fb91eb7a5640e5bb3fd49b71295ad0868b8e018dd SHA512 5315e82bd03a8782df8c72bbfb334d9cf739dd53f3aa22649f087c1b8b7fa5f88f7a80850c1f2e0c9dffd80a77dd99fd36e9674463535cbf48b896596c24f38e AUX opencascade-7.4.0.env.in 4611 BLAKE2B 3593cd4e05d33e466a975cf4641c56cd8e686310a148cc684591d3e08f8c4efd86e4df13500f11845e425b056b9c2c42f0f27a2a4d8cea524dc8fbb1c7dad703 SHA512 25f65e2b1e91fa78313334dab7d19b115bb7ff97ccefe7d18c45ab1817e12e10fdbe36babcb22e2a0d52bf7a0fbbdd2937523b773ddbb37635c1dd0d14de6253 -DIST opencascade-7.3.0.tar.gz 48576720 BLAKE2B bf63ba77aabc8a8c92d694f78f24bab71c07e68e7ba4b8d5d90966733dbd9c0c83a76e35f059e798d4a60640d663330cd13a828b19ec02a5372053ab39a74aa6 SHA512 17eb1810b43a8b001867563f97801ceb38a7878fa53d9b39b46a5cf3dd676310fa80e83e90668a99ec6aff9d4f09733fb6c7be83c1e3ab4eaa9fda55888050da DIST opencascade-7.4.0.tar.gz 49210449 BLAKE2B c92afe7551e9a066ad0940dcf49278b556a726f0534131706b3a11cb0986ba32818e162df3982283f6815eb9d67d7e91f909485d78f2b8d638da1934ffbc2f7f SHA512 eb0d47848d48f42a159ae5d7a4144483ba1f59f634844bd2053e48e04af30a30ba7056112cd38a1730d193a8d736b898f9608dd574cbe6829dbe7257a002772a -EBUILD opencascade-7.3.0.ebuild 4410 BLAKE2B ccb199b9cde98a579d3be135c657755506f2f4950317521bc70260666f191e9176124fb98b7ae232121222da4db93db2a300eaf88e42b14bfd330d0d8ac4f3c2 SHA512 0ca80511c240296b5f5d93c1e0132eb369778205f192f8f322cacfdede1808c5700ee96ebc10afad01b2786e18f5ae64e179fd54ddb632e1cede07a20aa2da91 -EBUILD opencascade-7.4.0.ebuild 3733 BLAKE2B 9bfa3ca240c9c1eb3e047c4603f86d5228b81e3d15171f5cc7b36c1a0b392435205b14d6f4bd53f600c79e296961fe77c0b61000338210b2b0da4fd431bfb8a6 SHA512 9f224495b6583cb22f16e81aeebc7b492867be72308d65beab1f02cc1c562010e04b1550a7661ea3fbf3027d6137b835d05813fffea0e755ef3d2d53701e86dc -MISC metadata.xml 957 BLAKE2B 609b823e60c216481f0628bf396a81b827dea3d3d7a8e96203d9243e46c110784e4dc55032773ccd808cfa10f18342b30852ad982983e86ab41a399cfc99692d SHA512 80246f152111d9bb48df691198b478f5181c51a94286e28dc0f3a037e025b403559ad2c1aebf7660693d6a6a333e058de4bc711317c45ba9491e98529bd2d5ba +EBUILD opencascade-7.4.0.ebuild 3775 BLAKE2B f0a7df2574a439e4f948a11f883afcbc1314c482e1fa77f9344f41d7a0e2d5379fdcd9069c91f933cd07432ffc1bd5258c34a629d8611f245efc6c46367ee5f5 SHA512 68a3ef0d24c497c9184da1fec1206715212d9448994d0b904e42b174e0e177348af312d42b4e91faca5995e45508edd5cfa97ecdcb5605e5cb612a69037c7ff3 +MISC metadata.xml 887 BLAKE2B 1b9179667b3bb44f0b2c761f8dfed80f804c7313900087a2e61ce7a43ad140b7cb5a15ac0428d3ca0a7ba1087ac0f9014f0fa12d591a34b44a14edb90bfa57f5 SHA512 0d13482fbba741097d384878c333fbf4ed68bafbf4901dd296d1381953eee14112e03ec4bdeb817bdbba9ec5b0b2356d9eccc65cdebba4a47832446c263988f9 diff --git a/sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch b/sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch deleted file mode 100644 index fc572a4f5bca..000000000000 --- a/sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch +++ /dev/null @@ -1,38 +0,0 @@ -Author: jbeich -Date: Wed May 2 13:25:55 UTC 2018 -New revision: 468831 - -src/Image/Image_VideoRecorder.cxx:279:25: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER' - aCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER; - ^ -src/Image/Image_VideoRecorder.cxx:452:38: error: use of undeclared identifier 'AVFMT_RAWPICTURE' - if ((myAVContext->oformat->flags & AVFMT_RAWPICTURE) != 0 - ^ - ---- a/src/Image/Image_VideoRecorder.cxx 2017-08-30 13:28:21 UTC -+++ b/src/Image/Image_VideoRecorder.cxx -@@ -276,7 +276,7 @@ Standard_Boolean Image_VideoRecorder::addVideoStream ( - // some formats want stream headers to be separate - if (myAVContext->oformat->flags & AVFMT_GLOBALHEADER) - { -- aCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER; -+ aCodecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - } - return Standard_True; - #else -@@ -449,6 +449,7 @@ Standard_Boolean Image_VideoRecorder::writeVideoFrame - AVPacket aPacket; - memset (&aPacket, 0, sizeof(aPacket)); - av_init_packet (&aPacket); -+#ifdef AVFMT_RAWPICTURE - if ((myAVContext->oformat->flags & AVFMT_RAWPICTURE) != 0 - && !theToFlush) - { -@@ -461,6 +462,7 @@ Standard_Boolean Image_VideoRecorder::writeVideoFrame - aResAv = av_interleaved_write_frame (myAVContext, &aPacket); - } - else -+#endif - { - // encode the image - myFrame->pts = myFrameCount; diff --git a/sci-libs/opencascade/files/opencascade-7.3.0-fixed-DESTDIR.patch b/sci-libs/opencascade/files/opencascade-7.3.0-fixed-DESTDIR.patch deleted file mode 100644 index c0a6363e19fd..000000000000 --- a/sci-libs/opencascade/files/opencascade-7.3.0-fixed-DESTDIR.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/CMakeLists.txt 2016-11-25 11:50:18.000000000 +0100 -+++ b/CMakeLists.txt 2017-03-18 08:44:10.406668714 +0100 -@@ -885,7 +885,7 @@ if (EXISTS "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}") - - set (CUSTOM_CONTENT "${CUSTOM_CONTENT} ${ADDITIONAL_CUSTOM_CONTENT}") - -- file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}") -+ file (WRITE \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}\" "${CUSTOM_CONTENT}") - else() - OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}") - endif() -@@ -906,7 +906,7 @@ - endforeach() - # install OpenCASCADE config file with compile definitions and C/C++ flags ONLY for current configuration - install (CODE "string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWER)") --install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)") -+install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"\$ENV{DESTDIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)") - - foreach (OCCT_MODULE ${OCCT_MODULES}) - if (BUILD_MODULE_${OCCT_MODULE}) ---- a/adm/cmake/occt_macros.cmake 2016-11-25 11:50:18.000000000 +0100 -+++ b/adm/cmake/occt_macros.cmake 2017-03-18 08:44:10.406668714 +0100 -@@ -558,7 +558,7 @@ - "cmake_policy(PUSH) - cmake_policy(SET CMP0007 NEW) - string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE) -- file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") -+ file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") - foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES}) - file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT) - file (REMOVE \"\${TARGET_FILENAME}\") diff --git a/sci-libs/opencascade/files/opencascade-7.3.0-vtk-compat.patch b/sci-libs/opencascade/files/opencascade-7.3.0-vtk-compat.patch deleted file mode 100644 index 71700a57f1dc..000000000000 --- a/sci-libs/opencascade/files/opencascade-7.3.0-vtk-compat.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/src/IVtkVTK/IVtkVTK_ShapeData.cxx 2018-09-15 01:57:25.086783255 +0300 -+++ b/src/IVtkVTK/IVtkVTK_ShapeData.cxx 2018-09-15 01:58:20.877779839 +0300 -@@ -29,6 +29,10 @@ - #pragma warning(pop) - #endif - -+#ifdef vtkGenericDataArray_h -+#define InsertNextTupleValue InsertNextTypedTuple -+#endif -+ - IMPLEMENT_STANDARD_RTTIEXT(IVtkVTK_ShapeData,IVtk_IShapeData) - - //================================================================ diff --git a/sci-libs/opencascade/metadata.xml b/sci-libs/opencascade/metadata.xml index c601fab04b30..471a91a9796b 100644 --- a/sci-libs/opencascade/metadata.xml +++ b/sci-libs/opencascade/metadata.xml @@ -13,9 +13,6 @@ <flag name="freeimage"> Enable support for image i/o via media-libs/freeimage </flag> - <flag name="gl2ps"> - Use gl2ps PostScript printing library - </flag> <flag name="gles2"> Use OpenGL ES 2.0 </flag> diff --git a/sci-libs/opencascade/opencascade-7.3.0.ebuild b/sci-libs/opencascade/opencascade-7.3.0.ebuild deleted file mode 100644 index 15dce82b6a9d..000000000000 --- a/sci-libs/opencascade/opencascade-7.3.0.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit check-reqs cmake-utils eapi7-ver java-pkg-opt-2 - -MY_PV="$(ver_rs 1- '_')" - -DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange" -HOMEPAGE="https://www.opencascade.com/" -SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${MY_PV};sf=tgz -> ${P}.tar.gz" - -LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )" -SLOT="${PV}" -KEYWORDS="~amd64 ~x86" - -IUSE="debug doc examples ffmpeg freeimage gl2ps gles2 java +tbb +vtk" - -RDEPEND="app-eselect/eselect-opencascade - dev-lang/tcl:0= - dev-lang/tk:0= - dev-tcltk/itcl - dev-tcltk/itk - dev-tcltk/tix - media-libs/freetype:2 - media-libs/ftgl - virtual/glu - virtual/opengl - x11-libs/libXmu - ffmpeg? ( virtual/ffmpeg ) - freeimage? ( media-libs/freeimage ) - gl2ps? ( x11-libs/gl2ps ) - java? ( >=virtual/jdk-0:= ) - tbb? ( dev-cpp/tbb ) - vtk? ( sci-libs/vtk[rendering] ) -" - -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen ) -" - -CHECKREQS_MEMORY="256M" -CHECKREQS_DISK_BUILD="3584M" - -CMAKE_BUILD_TYPE=Release - -S="${WORKDIR}/occt-V${MY_PV}" - -PATCHES=( - "${FILESDIR}/${P}-vtk-compat.patch" - "${FILESDIR}/${P}-fixed-DESTDIR.patch" - "${FILESDIR}/${P}-ffmpeg4.patch" # bug 672248 -) - -pkg_setup() { - check-reqs_pkg_setup - use java && java-pkg-opt-2_pkg_setup -} - -src_prepare() { - cmake-utils_src_prepare - use java && java-pkg-opt-2_src_prepare - - # Do not pre-strip files - sed -i 's/_FLAGS_RELEASE} -s/_FLAGS_RELEASE}/g' adm/cmake/occt_defs_flags.cmake || die - - # Prepare environment variables used by Opencascade - echo "CASROOT=${EROOT}usr/$(get_libdir)/${P} -PATH=${EROOT}usr/$(get_libdir)/${P}/bin -LDPATH=${EROOT}usr/$(get_libdir)/${P}/lib - -CSF_EXCEPTION_PROMPT=1 -CSF_GraphicShr=${EROOT}usr/$(get_libdir)/${P}/lib/libTKOpenGl.so -CSF_IGESDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XSTEPResource -CSF_LANGUAGE=us -CSF_MDTVTexturesDirectory=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/Textures -CSF_MIGRATION_TYPES=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource/MigrationSheet.txt -CSF_PluginDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource -CSF_ShadersDirectory=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/Shaders -CSF_SHMessage=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/SHMessage -CSF_StandardDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource -CSF_StandardLiteDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource -CSF_STEPDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XSTEPResource -CSF_UnitsDefinition=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/UnitsAPI/Units.dat -CSF_XCAFDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource -CSF_XmlOcafResource=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XmlOcafResource -CSF_XSMessage=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XSMessage - -MMGT_CLEAR=1 -# use TBB for memory allocation optimizations -MMGT_OPT=2 -# The next MMGT_* variables are at their default values. -# They are here for documentation, so you can change them if needed -#MMGT_MMAP=1 -#MMGT_CELLSIZE=200 -#MMGT_NBPAGES=10000 -#MMGT_THRESHOLD=40000 -" > "${S}/${PV}" - -} - -src_configure() { - local mycmakeargs=( - -DBUILD_DOC_Overview=$(usex doc) - -DBUILD_WITH_DEBUG=$(usex debug) - -DCMAKE_INSTALL_PREFIX="/usr/$(get_libdir)/${P}" - -DINSTALL_DIR_CMAKE="/usr/$(get_libdir)/cmake" - -DINSTALL_DIR_DOC="/usr/share/doc/${P}" - -DINSTALL_SAMPLES=$(usex examples) - -DUSE_FFMPEG=$(usex ffmpeg) - -DUSE_FREEIMAGE=$(usex freeimage) - -DUSE_GL2PS=$(usex gl2ps) - -DUSE_GLES2=$(usex gles2) - -DUSE_TBB=$(usex tbb) - -DUSE_VTK=$(usex vtk) - ) - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - fperms go-w "/usr/$(get_libdir)/${P}/bin/draw.sh" - - if ! use examples; then - rm -rf "${ED%/}/usr/$(get_libdir)/${P}/share/${PN}/samples" || die - fi - - insinto "/etc/env.d/${PN}" - doins "${S}/${PV}" -} - -pkg_postinst() { - eselect ${PN} set ${PV} - elog "You can switch between available ${PN} implementations using eselect ${PN}." - elog "After upgrading OpenCASCADE you may have to rebuild packages depending on it." - elog "You get a list by running \"equery depends sci-libs/opencascade\"" - elog "revdep-rebuild does NOT suffice." -} diff --git a/sci-libs/opencascade/opencascade-7.4.0.ebuild b/sci-libs/opencascade/opencascade-7.4.0.ebuild index 372cacad7c81..871c8a8e49c2 100644 --- a/sci-libs/opencascade/opencascade-7.4.0.ebuild +++ b/sci-libs/opencascade/opencascade-7.4.0.ebuild @@ -53,7 +53,12 @@ RDEPEND=" vtk? ( >=sci-libs/vtk-8.1.0[rendering] ) " DEPEND="${RDEPEND}" -BDEPEND="doc? ( app-doc/doxygen )" +BDEPEND=" + doc? ( + app-doc/doxygen + qt5? ( dev-qt/linguist-tools:5 ) + ) +" # There's no easy way to test. Testing needs a rather big environment # properly set up. @@ -90,7 +95,7 @@ src_configure() { -DCMAKE_INSTALL_PREFIX="/usr/$(get_libdir)/${PF}/ros" -DINSTALL_DIR_DOC="/usr/share/doc/${PF}" -DINSTALL_DIR_CMAKE="/usr/$(get_libdir)/cmake" - -DINSTALL_DOC_Overview=$(usex doc) +# -DINSTALL_DOC_Overview=$(usex doc) -DINSTALL_SAMPLES=$(usex examples) -DINSTALL_TEST_CASES=NO -DUSE_D3D=no |