1 |
commit: c2f3367d854b4fb511750932e9f3424d68da7202 |
2 |
Author: Bernd Waibel <waebbl <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 27 16:21:41 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 1 14:37:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f3367d |
7 |
|
8 |
sci-libs/opencascade: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/15140 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
sci-libs/opencascade/Manifest | 1 - |
16 |
.../files/opencascade-7.3.0-ffmpeg4.patch | 38 ------ |
17 |
.../files/opencascade-7.3.0-fixed-DESTDIR.patch | 31 ----- |
18 |
.../files/opencascade-7.3.0-vtk-compat.patch | 13 -- |
19 |
sci-libs/opencascade/metadata.xml | 3 - |
20 |
sci-libs/opencascade/opencascade-7.3.0.ebuild | 141 --------------------- |
21 |
6 files changed, 227 deletions(-) |
22 |
|
23 |
diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest |
24 |
index d999b843d5d..3c6a4c44796 100644 |
25 |
--- a/sci-libs/opencascade/Manifest |
26 |
+++ b/sci-libs/opencascade/Manifest |
27 |
@@ -1,2 +1 @@ |
28 |
-DIST opencascade-7.3.0.tar.gz 48576720 BLAKE2B bf63ba77aabc8a8c92d694f78f24bab71c07e68e7ba4b8d5d90966733dbd9c0c83a76e35f059e798d4a60640d663330cd13a828b19ec02a5372053ab39a74aa6 SHA512 17eb1810b43a8b001867563f97801ceb38a7878fa53d9b39b46a5cf3dd676310fa80e83e90668a99ec6aff9d4f09733fb6c7be83c1e3ab4eaa9fda55888050da |
29 |
DIST opencascade-7.4.0.tar.gz 49210449 BLAKE2B c92afe7551e9a066ad0940dcf49278b556a726f0534131706b3a11cb0986ba32818e162df3982283f6815eb9d67d7e91f909485d78f2b8d638da1934ffbc2f7f SHA512 eb0d47848d48f42a159ae5d7a4144483ba1f59f634844bd2053e48e04af30a30ba7056112cd38a1730d193a8d736b898f9608dd574cbe6829dbe7257a002772a |
30 |
|
31 |
diff --git a/sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch b/sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch |
32 |
deleted file mode 100644 |
33 |
index fc572a4f5bc..00000000000 |
34 |
--- a/sci-libs/opencascade/files/opencascade-7.3.0-ffmpeg4.patch |
35 |
+++ /dev/null |
36 |
@@ -1,38 +0,0 @@ |
37 |
-Author: jbeich |
38 |
-Date: Wed May 2 13:25:55 UTC 2018 |
39 |
-New revision: 468831 |
40 |
- |
41 |
-src/Image/Image_VideoRecorder.cxx:279:25: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER' |
42 |
- aCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER; |
43 |
- ^ |
44 |
-src/Image/Image_VideoRecorder.cxx:452:38: error: use of undeclared identifier 'AVFMT_RAWPICTURE' |
45 |
- if ((myAVContext->oformat->flags & AVFMT_RAWPICTURE) != 0 |
46 |
- ^ |
47 |
- |
48 |
---- a/src/Image/Image_VideoRecorder.cxx 2017-08-30 13:28:21 UTC |
49 |
-+++ b/src/Image/Image_VideoRecorder.cxx |
50 |
-@@ -276,7 +276,7 @@ Standard_Boolean Image_VideoRecorder::addVideoStream ( |
51 |
- // some formats want stream headers to be separate |
52 |
- if (myAVContext->oformat->flags & AVFMT_GLOBALHEADER) |
53 |
- { |
54 |
-- aCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER; |
55 |
-+ aCodecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; |
56 |
- } |
57 |
- return Standard_True; |
58 |
- #else |
59 |
-@@ -449,6 +449,7 @@ Standard_Boolean Image_VideoRecorder::writeVideoFrame |
60 |
- AVPacket aPacket; |
61 |
- memset (&aPacket, 0, sizeof(aPacket)); |
62 |
- av_init_packet (&aPacket); |
63 |
-+#ifdef AVFMT_RAWPICTURE |
64 |
- if ((myAVContext->oformat->flags & AVFMT_RAWPICTURE) != 0 |
65 |
- && !theToFlush) |
66 |
- { |
67 |
-@@ -461,6 +462,7 @@ Standard_Boolean Image_VideoRecorder::writeVideoFrame |
68 |
- aResAv = av_interleaved_write_frame (myAVContext, &aPacket); |
69 |
- } |
70 |
- else |
71 |
-+#endif |
72 |
- { |
73 |
- // encode the image |
74 |
- myFrame->pts = myFrameCount; |
75 |
|
76 |
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 |
77 |
deleted file mode 100644 |
78 |
index c0a6363e19f..00000000000 |
79 |
--- a/sci-libs/opencascade/files/opencascade-7.3.0-fixed-DESTDIR.patch |
80 |
+++ /dev/null |
81 |
@@ -1,31 +0,0 @@ |
82 |
---- a/CMakeLists.txt 2016-11-25 11:50:18.000000000 +0100 |
83 |
-+++ b/CMakeLists.txt 2017-03-18 08:44:10.406668714 +0100 |
84 |
-@@ -885,7 +885,7 @@ if (EXISTS "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}") |
85 |
- |
86 |
- set (CUSTOM_CONTENT "${CUSTOM_CONTENT} ${ADDITIONAL_CUSTOM_CONTENT}") |
87 |
- |
88 |
-- file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}") |
89 |
-+ file (WRITE \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}\" "${CUSTOM_CONTENT}") |
90 |
- else() |
91 |
- OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}") |
92 |
- endif() |
93 |
-@@ -906,7 +906,7 @@ |
94 |
- endforeach() |
95 |
- # install OpenCASCADE config file with compile definitions and C/C++ flags ONLY for current configuration |
96 |
- install (CODE "string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWER)") |
97 |
--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)") |
98 |
-+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)") |
99 |
- |
100 |
- foreach (OCCT_MODULE ${OCCT_MODULES}) |
101 |
- if (BUILD_MODULE_${OCCT_MODULE}) |
102 |
---- a/adm/cmake/occt_macros.cmake 2016-11-25 11:50:18.000000000 +0100 |
103 |
-+++ b/adm/cmake/occt_macros.cmake 2017-03-18 08:44:10.406668714 +0100 |
104 |
-@@ -558,7 +558,7 @@ |
105 |
- "cmake_policy(PUSH) |
106 |
- cmake_policy(SET CMP0007 NEW) |
107 |
- string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE) |
108 |
-- file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") |
109 |
-+ file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") |
110 |
- foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES}) |
111 |
- file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT) |
112 |
- file (REMOVE \"\${TARGET_FILENAME}\") |
113 |
|
114 |
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 |
115 |
deleted file mode 100644 |
116 |
index 71700a57f1d..00000000000 |
117 |
--- a/sci-libs/opencascade/files/opencascade-7.3.0-vtk-compat.patch |
118 |
+++ /dev/null |
119 |
@@ -1,13 +0,0 @@ |
120 |
---- a/src/IVtkVTK/IVtkVTK_ShapeData.cxx 2018-09-15 01:57:25.086783255 +0300 |
121 |
-+++ b/src/IVtkVTK/IVtkVTK_ShapeData.cxx 2018-09-15 01:58:20.877779839 +0300 |
122 |
-@@ -29,6 +29,10 @@ |
123 |
- #pragma warning(pop) |
124 |
- #endif |
125 |
- |
126 |
-+#ifdef vtkGenericDataArray_h |
127 |
-+#define InsertNextTupleValue InsertNextTypedTuple |
128 |
-+#endif |
129 |
-+ |
130 |
- IMPLEMENT_STANDARD_RTTIEXT(IVtkVTK_ShapeData,IVtk_IShapeData) |
131 |
- |
132 |
- //================================================================ |
133 |
|
134 |
diff --git a/sci-libs/opencascade/metadata.xml b/sci-libs/opencascade/metadata.xml |
135 |
index c601fab04b3..471a91a9796 100644 |
136 |
--- a/sci-libs/opencascade/metadata.xml |
137 |
+++ b/sci-libs/opencascade/metadata.xml |
138 |
@@ -13,9 +13,6 @@ |
139 |
<flag name="freeimage"> |
140 |
Enable support for image i/o via media-libs/freeimage |
141 |
</flag> |
142 |
- <flag name="gl2ps"> |
143 |
- Use gl2ps PostScript printing library |
144 |
- </flag> |
145 |
<flag name="gles2"> |
146 |
Use OpenGL ES 2.0 |
147 |
</flag> |
148 |
|
149 |
diff --git a/sci-libs/opencascade/opencascade-7.3.0.ebuild b/sci-libs/opencascade/opencascade-7.3.0.ebuild |
150 |
deleted file mode 100644 |
151 |
index 15dce82b6a9..00000000000 |
152 |
--- a/sci-libs/opencascade/opencascade-7.3.0.ebuild |
153 |
+++ /dev/null |
154 |
@@ -1,141 +0,0 @@ |
155 |
-# Copyright 1999-2019 Gentoo Authors |
156 |
-# Distributed under the terms of the GNU General Public License v2 |
157 |
- |
158 |
-EAPI=6 |
159 |
- |
160 |
-inherit check-reqs cmake-utils eapi7-ver java-pkg-opt-2 |
161 |
- |
162 |
-MY_PV="$(ver_rs 1- '_')" |
163 |
- |
164 |
-DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange" |
165 |
-HOMEPAGE="https://www.opencascade.com/" |
166 |
-SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${MY_PV};sf=tgz -> ${P}.tar.gz" |
167 |
- |
168 |
-LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )" |
169 |
-SLOT="${PV}" |
170 |
-KEYWORDS="~amd64 ~x86" |
171 |
- |
172 |
-IUSE="debug doc examples ffmpeg freeimage gl2ps gles2 java +tbb +vtk" |
173 |
- |
174 |
-RDEPEND="app-eselect/eselect-opencascade |
175 |
- dev-lang/tcl:0= |
176 |
- dev-lang/tk:0= |
177 |
- dev-tcltk/itcl |
178 |
- dev-tcltk/itk |
179 |
- dev-tcltk/tix |
180 |
- media-libs/freetype:2 |
181 |
- media-libs/ftgl |
182 |
- virtual/glu |
183 |
- virtual/opengl |
184 |
- x11-libs/libXmu |
185 |
- ffmpeg? ( virtual/ffmpeg ) |
186 |
- freeimage? ( media-libs/freeimage ) |
187 |
- gl2ps? ( x11-libs/gl2ps ) |
188 |
- java? ( >=virtual/jdk-0:= ) |
189 |
- tbb? ( dev-cpp/tbb ) |
190 |
- vtk? ( sci-libs/vtk[rendering] ) |
191 |
-" |
192 |
- |
193 |
-DEPEND="${RDEPEND} |
194 |
- doc? ( app-doc/doxygen ) |
195 |
-" |
196 |
- |
197 |
-CHECKREQS_MEMORY="256M" |
198 |
-CHECKREQS_DISK_BUILD="3584M" |
199 |
- |
200 |
-CMAKE_BUILD_TYPE=Release |
201 |
- |
202 |
-S="${WORKDIR}/occt-V${MY_PV}" |
203 |
- |
204 |
-PATCHES=( |
205 |
- "${FILESDIR}/${P}-vtk-compat.patch" |
206 |
- "${FILESDIR}/${P}-fixed-DESTDIR.patch" |
207 |
- "${FILESDIR}/${P}-ffmpeg4.patch" # bug 672248 |
208 |
-) |
209 |
- |
210 |
-pkg_setup() { |
211 |
- check-reqs_pkg_setup |
212 |
- use java && java-pkg-opt-2_pkg_setup |
213 |
-} |
214 |
- |
215 |
-src_prepare() { |
216 |
- cmake-utils_src_prepare |
217 |
- use java && java-pkg-opt-2_src_prepare |
218 |
- |
219 |
- # Do not pre-strip files |
220 |
- sed -i 's/_FLAGS_RELEASE} -s/_FLAGS_RELEASE}/g' adm/cmake/occt_defs_flags.cmake || die |
221 |
- |
222 |
- # Prepare environment variables used by Opencascade |
223 |
- echo "CASROOT=${EROOT}usr/$(get_libdir)/${P} |
224 |
-PATH=${EROOT}usr/$(get_libdir)/${P}/bin |
225 |
-LDPATH=${EROOT}usr/$(get_libdir)/${P}/lib |
226 |
- |
227 |
-CSF_EXCEPTION_PROMPT=1 |
228 |
-CSF_GraphicShr=${EROOT}usr/$(get_libdir)/${P}/lib/libTKOpenGl.so |
229 |
-CSF_IGESDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XSTEPResource |
230 |
-CSF_LANGUAGE=us |
231 |
-CSF_MDTVTexturesDirectory=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/Textures |
232 |
-CSF_MIGRATION_TYPES=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource/MigrationSheet.txt |
233 |
-CSF_PluginDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource |
234 |
-CSF_ShadersDirectory=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/Shaders |
235 |
-CSF_SHMessage=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/SHMessage |
236 |
-CSF_StandardDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource |
237 |
-CSF_StandardLiteDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource |
238 |
-CSF_STEPDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XSTEPResource |
239 |
-CSF_UnitsDefinition=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/UnitsAPI/Units.dat |
240 |
-CSF_XCAFDefaults=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/StdResource |
241 |
-CSF_XmlOcafResource=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XmlOcafResource |
242 |
-CSF_XSMessage=${EROOT}usr/$(get_libdir)/${P}/share/opencascade/resources/XSMessage |
243 |
- |
244 |
-MMGT_CLEAR=1 |
245 |
-# use TBB for memory allocation optimizations |
246 |
-MMGT_OPT=2 |
247 |
-# The next MMGT_* variables are at their default values. |
248 |
-# They are here for documentation, so you can change them if needed |
249 |
-#MMGT_MMAP=1 |
250 |
-#MMGT_CELLSIZE=200 |
251 |
-#MMGT_NBPAGES=10000 |
252 |
-#MMGT_THRESHOLD=40000 |
253 |
-" > "${S}/${PV}" |
254 |
- |
255 |
-} |
256 |
- |
257 |
-src_configure() { |
258 |
- local mycmakeargs=( |
259 |
- -DBUILD_DOC_Overview=$(usex doc) |
260 |
- -DBUILD_WITH_DEBUG=$(usex debug) |
261 |
- -DCMAKE_INSTALL_PREFIX="/usr/$(get_libdir)/${P}" |
262 |
- -DINSTALL_DIR_CMAKE="/usr/$(get_libdir)/cmake" |
263 |
- -DINSTALL_DIR_DOC="/usr/share/doc/${P}" |
264 |
- -DINSTALL_SAMPLES=$(usex examples) |
265 |
- -DUSE_FFMPEG=$(usex ffmpeg) |
266 |
- -DUSE_FREEIMAGE=$(usex freeimage) |
267 |
- -DUSE_GL2PS=$(usex gl2ps) |
268 |
- -DUSE_GLES2=$(usex gles2) |
269 |
- -DUSE_TBB=$(usex tbb) |
270 |
- -DUSE_VTK=$(usex vtk) |
271 |
- ) |
272 |
- |
273 |
- cmake-utils_src_configure |
274 |
-} |
275 |
- |
276 |
-src_install() { |
277 |
- cmake-utils_src_install |
278 |
- |
279 |
- fperms go-w "/usr/$(get_libdir)/${P}/bin/draw.sh" |
280 |
- |
281 |
- if ! use examples; then |
282 |
- rm -rf "${ED%/}/usr/$(get_libdir)/${P}/share/${PN}/samples" || die |
283 |
- fi |
284 |
- |
285 |
- insinto "/etc/env.d/${PN}" |
286 |
- doins "${S}/${PV}" |
287 |
-} |
288 |
- |
289 |
-pkg_postinst() { |
290 |
- eselect ${PN} set ${PV} |
291 |
- elog "You can switch between available ${PN} implementations using eselect ${PN}." |
292 |
- elog "After upgrading OpenCASCADE you may have to rebuild packages depending on it." |
293 |
- elog "You get a list by running \"equery depends sci-libs/opencascade\"" |
294 |
- elog "revdep-rebuild does NOT suffice." |
295 |
-} |