Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/, sci-libs/opencascade/files/
Date: Thu, 29 Nov 2018 20:19:17
Message-Id: 1543522726.19716b32ad42b4dc3a0e7a7b3d8e3a100be84f01.asturm@gentoo
1 commit: 19716b32ad42b4dc3a0e7a7b3d8e3a100be84f01
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 29 20:14:09 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 29 20:18:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19716b32
7
8 sci-libs/opencascade: Drop 6.9.1-r2
9
10 Closes: https://bugs.gentoo.org/651772
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 sci-libs/opencascade/Manifest | 1 -
15 .../files/opencascade-6.8.0-fixed-DESTDIR.patch | 47 ------
16 .../files/opencascade-6.9.1-vtk-6.3.patch | 70 --------
17 .../files/opencascade-6.9.1-vtk-8.1.patch | 48 ------
18 .../files/opencascade-6.9.1-vtk-configure.patch | 13 --
19 sci-libs/opencascade/opencascade-6.9.1-r2.ebuild | 177 ---------------------
20 6 files changed, 356 deletions(-)
21
22 diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest
23 index 922670cf0cf..52dffdbc97c 100644
24 --- a/sci-libs/opencascade/Manifest
25 +++ b/sci-libs/opencascade/Manifest
26 @@ -1,2 +1 @@
27 -DIST opencascade-6.9.1.tgz 209589289 BLAKE2B 266d68042dbbb8c9bc5f167b9aefaf84b3f1568c25530acb36271443429e67972aae913ebcea09c9ea27164e2e3f007eb287350d7ad69486755cdcb713fdb1af SHA512 92f0fffb110344feebaba9dd4a3427419ea9e6db7b09556b7dcdb1248f2a868e3337587abf9921392435031431f3876cea4d4709fd9926604dcebbd6d26f8963
28 DIST opencascade-7.3.0.tar.gz 48576720 BLAKE2B bf63ba77aabc8a8c92d694f78f24bab71c07e68e7ba4b8d5d90966733dbd9c0c83a76e35f059e798d4a60640d663330cd13a828b19ec02a5372053ab39a74aa6 SHA512 17eb1810b43a8b001867563f97801ceb38a7878fa53d9b39b46a5cf3dd676310fa80e83e90668a99ec6aff9d4f09733fb6c7be83c1e3ab4eaa9fda55888050da
29
30 diff --git a/sci-libs/opencascade/files/opencascade-6.8.0-fixed-DESTDIR.patch b/sci-libs/opencascade/files/opencascade-6.8.0-fixed-DESTDIR.patch
31 deleted file mode 100644
32 index 1f37eace760..00000000000
33 --- a/sci-libs/opencascade/files/opencascade-6.8.0-fixed-DESTDIR.patch
34 +++ /dev/null
35 @@ -1,47 +0,0 @@
36 ---- opencascade-6.8.0/Makefile.am
37 -+++ opencascade-6.8.0/Makefile.am
38 -@@ -82,27 +82,27 @@
39 - cd $(top_builddir)/adm/lin/amk && $(MAKE) $(AM_MAKEFLAGS) Draw
40 -
41 - install-exec-local:
42 -- $(INSTALL) -d $(prefix)/$(platform)
43 -- if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \
44 -- cd $(prefix)/$(platform) && ln -s ../bin bin; \
45 -+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(platform)
46 -+ if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \
47 -+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \
48 - fi
49 -- if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \
50 -- cd $(prefix)/$(platform) && ln -s ../lib lib; \
51 -+ if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \
52 -+ cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \
53 - fi
54 -- buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(prefix); installd=`pwd`; cd $$buildd; \
55 -+ buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(DESTDIR)$(prefix); installd=`pwd`; cd $$buildd; \
56 - if [ "$$installd" != "$$sourced" ]; then \
57 -- $(INSTALL) -d $(prefix)/inc; \
58 -- cp -frL $(top_srcdir)/inc $(prefix); \
59 -- cp -frL $$buildd/config.h $(prefix); \
60 -+ $(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
61 -+ cp -frL $(top_srcdir)/inc $(DESTDIR)$(prefix); \
62 -+ cp -frL $$buildd/config.h $(DESTDIR)$(prefix); \
63 - for d in $(FoundationClasses_DIRS) $(ModelingData_DIRS) $(ModelingAlgorithms_DIRS) $(Visualization_DIRS) $(ApplicationFramework_DIRS) $(DataExchange_DIRS) $(Draw_DIRS); do \
64 -- $(INSTALL) -d $(prefix)/src/$$d; \
65 -- cp -frL $(top_srcdir)/src/$$d $(prefix)/src; \
66 -+ $(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
67 -+ cp -frL $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
68 - done; \
69 - fi
70 -- if [ -e $(prefix)/inc/config.h ]; then \
71 -- rm -f $(prefix)/inc/config.h; \
72 -+ if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
73 -+ rm -f $(DESTDIR)$(prefix)/inc/config.h; \
74 - fi
75 -- cd $(prefix)/inc && ln -s ../config.h config.h
76 -- cd $(top_srcdir) && cp *.sh $(prefix)
77 -+ cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
78 -+ cd $(top_srcdir) && cp *.sh $(DESTDIR)$(prefix)
79 -
80 --.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw
81 -\ No newline at end of file
82 -+.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw
83
84 diff --git a/sci-libs/opencascade/files/opencascade-6.9.1-vtk-6.3.patch b/sci-libs/opencascade/files/opencascade-6.9.1-vtk-6.3.patch
85 deleted file mode 100644
86 index 8e1d3361dde..00000000000
87 --- a/sci-libs/opencascade/files/opencascade-6.9.1-vtk-6.3.patch
88 +++ /dev/null
89 @@ -1,70 +0,0 @@
90 ---- opencascade-6.9.1/configure.ac
91 -+++ opencascade-6.9.1/configure.ac
92 -@@ -1044,7 +1044,7 @@
93 - fi
94 - if test "x$vtk_lib" != "x"; then
95 - CSF_VTK_LIB="-L$vtk_lib -lvtkCommonCore -lvtkCommonDataModel -lvtkCommonExecutionModel -lvtkCommonMath -lvtkCommonTransforms "
96 -- CSF_VTK_LIB="${CSF_VTK_LIB} -lvtkRenderingCore -lvtkRenderingOpenGL -lvtkFiltersGeneral -lvtkIOCore -lvtkIOImage -lvtkImagingCore -lvtkInteractionStyle "
97 -+ CSF_VTK_LIB="${CSF_VTK_LIB} -lvtkRenderingCore -lvtkRenderingOpenGL2 -lvtkFiltersGeneral -lvtkIOCore -lvtkIOImage -lvtkImagingCore -lvtkInteractionStyle "
98 - else
99 - HAVE_VTK=no
100 - fi
101 ---- opencascade-6.9.1/src/IVtkVTK/IVtkVTK_View.cxx
102 -+++ opencascade-6.9.1/src/IVtkVTK/IVtkVTK_View.cxx
103 -@@ -151,7 +151,7 @@ bool IVtkVTK_View::DisplayToWorld (const gp_XY& theDisplayPnt, gp_XYZ& theWorldP
104 - myRenderer->SetDisplayPoint (theDisplayPnt.X(), theDisplayPnt.Y(), 0.0);
105 - myRenderer->DisplayToWorld();
106 -
107 -- vtkFloatingPointType* const aCoords = myRenderer->GetWorldPoint();
108 -+ double* const aCoords = myRenderer->GetWorldPoint();
109 - if (aCoords[3] == 0.0) // Point at infinity in homogeneous coordinates
110 - {
111 - return false;
112 ---- opencascade-6.9.1/src/IVtkTools/IVtkTools_ShapePicker.cxx
113 -+++ opencascade-6.9.1/src/IVtkTools/IVtkTools_ShapePicker.cxx
114 -@@ -73,15 +73,15 @@ float IVtkTools_ShapePicker::GetTolerance( ) const
115 - // Method: convertDisplayToWorld
116 - // Purpose: Convert display coordinates to world coordinates
117 - //============================================================================
118 --bool IVtkTools_ShapePicker::convertDisplayToWorld (vtkRenderer *theRenderer,
119 -- vtkFloatingPointType theDisplayCoord[3],
120 -- vtkFloatingPointType theWorldCoord[3])
121 -+bool IVtkTools_ShapePicker::convertDisplayToWorld (vtkRenderer *theRenderer,
122 -+ double theDisplayCoord[3],
123 -+ double theWorldCoord[3])
124 - {
125 - // Convert the selection point into world coordinates.
126 - theRenderer->SetDisplayPoint (theDisplayCoord[0], theDisplayCoord[1], theDisplayCoord[2]);
127 - theRenderer->DisplayToWorld();
128 -
129 -- vtkFloatingPointType* const aCoords = theRenderer->GetWorldPoint();
130 -+ double* const aCoords = theRenderer->GetWorldPoint();
131 - if (aCoords[3] == 0.0)
132 - {
133 - return false;
134 ---- opencascade-6.9.1/src/IVtkTools/IVtkTools_ShapePicker.hxx
135 -+++ opencascade-6.9.1/src/IVtkTools/IVtkTools_ShapePicker.hxx
136 -@@ -124,8 +124,8 @@ protected:
137 -
138 - //! Convert display coordinates to world coordinates
139 - static bool convertDisplayToWorld (vtkRenderer *theRenderer,
140 -- vtkFloatingPointType theDisplayCoord[3],
141 -- vtkFloatingPointType theWorldCoord[3] );
142 -+ double theDisplayCoord[3],
143 -+ double theWorldCoord[3] );
144 -
145 - private: // not copyable
146 - IVtkTools_ShapePicker (const IVtkTools_ShapePicker&);
147 ---- opencascade-6.9.1/inc/IVtkTools_ShapePicker.hxx
148 -+++ opencascade-6.9.1/inc/IVtkTools_ShapePicker.hxx
149 -@@ -124,8 +124,8 @@
150 -
151 - //! Convert display coordinates to world coordinates
152 - static bool convertDisplayToWorld (vtkRenderer *theRenderer,
153 -- vtkFloatingPointType theDisplayCoord[3],
154 -- vtkFloatingPointType theWorldCoord[3] );
155 -+ double theDisplayCoord[3],
156 -+ double theWorldCoord[3] );
157 -
158 - private: // not copyable
159 - IVtkTools_ShapePicker (const IVtkTools_ShapePicker&);
160
161 diff --git a/sci-libs/opencascade/files/opencascade-6.9.1-vtk-8.1.patch b/sci-libs/opencascade/files/opencascade-6.9.1-vtk-8.1.patch
162 deleted file mode 100644
163 index d1f560320c6..00000000000
164 --- a/sci-libs/opencascade/files/opencascade-6.9.1-vtk-8.1.patch
165 +++ /dev/null
166 @@ -1,48 +0,0 @@
167 ---- a/src/IVtkVTK/IVtkVTK_ShapeData.cxx
168 -+++ b/src/IVtkVTK/IVtkVTK_ShapeData.cxx
169 -@@ -80,9 +80,9 @@ void IVtkVTK_ShapeData::InsertVertex (const IVtk_IdType theShapeID,
170 - vtkIdType aPointIdVTK = thePointId;
171 - myPolyData->InsertNextCell (VTK_VERTEX, 1, &aPointIdVTK);
172 - const vtkIdType aShapeIDVTK = theShapeID;
173 -- mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
174 -+ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
175 - const vtkIdType aType = theMeshType;
176 -- myMeshTypes->InsertNextTupleValue (&aType);
177 -+ myMeshTypes->InsertNextTypedTuple (&aType);
178 - }
179 -
180 - //================================================================
181 -@@ -97,9 +97,9 @@ void IVtkVTK_ShapeData::InsertLine (const IVtk_IdType theShapeID,
182 - vtkIdType aPoints[2] = { thePointId1, thePointId2 };
183 - myPolyData->InsertNextCell (VTK_LINE, 2, aPoints);
184 - const vtkIdType aShapeIDVTK = theShapeID;
185 -- mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
186 -+ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
187 - const vtkIdType aType = theMeshType;
188 -- myMeshTypes->InsertNextTupleValue (&aType);
189 -+ myMeshTypes->InsertNextTypedTuple (&aType);
190 - }
191 -
192 - //================================================================
193 -@@ -124,9 +124,9 @@ void IVtkVTK_ShapeData::InsertLine (const IVtk_IdType theShapeID,
194 -
195 - myPolyData->InsertNextCell (VTK_POLY_LINE, anIdList);
196 - const vtkIdType aShapeIDVTK = theShapeID;
197 -- mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
198 -+ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
199 - const vtkIdType aType = theMeshType;
200 -- myMeshTypes->InsertNextTupleValue (&aType);
201 -+ myMeshTypes->InsertNextTypedTuple (&aType);
202 - anIdList->Delete();
203 - }
204 - }
205 -@@ -144,7 +144,7 @@ void IVtkVTK_ShapeData::InsertTriangle (const IVtk_IdType theShapeID,
206 - vtkIdType aPoints[3] = { thePointId1, thePointId2, thePointId3 };
207 - myPolyData->InsertNextCell (VTK_TRIANGLE, 3, aPoints);
208 - const vtkIdType aShapeIDVTK = theShapeID;
209 -- mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
210 -+ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
211 - const vtkIdType aType = theMeshType;
212 -- myMeshTypes->InsertNextTupleValue (&aType);
213 -+ myMeshTypes->InsertNextTypedTuple (&aType);
214 - }
215
216 diff --git a/sci-libs/opencascade/files/opencascade-6.9.1-vtk-configure.patch b/sci-libs/opencascade/files/opencascade-6.9.1-vtk-configure.patch
217 deleted file mode 100644
218 index 3c2711d3813..00000000000
219 --- a/sci-libs/opencascade/files/opencascade-6.9.1-vtk-configure.patch
220 +++ /dev/null
221 @@ -1,13 +0,0 @@
222 ---- opencascade-6.9.1/configure.ac
223 -+++ opencascade-6.9.1/configure.ac
224 -@@ -1043,8 +1043,8 @@
225 - HAVE_VTK=no
226 - fi
227 - if test "x$vtk_lib" != "x"; then
228 -- CSF_VTK_LIB="-L$vtk_lib -lvtkCommonCore-6.1 -lvtkCommonDataModel-6.1 -lvtkCommonExecutionModel-6.1 -lvtkCommonMath-6.1 -lvtkCommonTransforms-6.1 "
229 -- CSF_VTK_LIB="${CSF_VTK_LIB} -lvtkRenderingCore-6.1 -lvtkRenderingOpenGL-6.1 -lvtkFiltersGeneral-6.1 -lvtkIOCore-6.1 -lvtkIOImage-6.1 -lvtkImagingCore-6.1 -lvtkInteractionStyle-6.1 "
230 -+ CSF_VTK_LIB="-L$vtk_lib -lvtkCommonCore -lvtkCommonDataModel -lvtkCommonExecutionModel -lvtkCommonMath -lvtkCommonTransforms "
231 -+ CSF_VTK_LIB="${CSF_VTK_LIB} -lvtkRenderingCore -lvtkRenderingOpenGL -lvtkFiltersGeneral -lvtkIOCore -lvtkIOImage -lvtkImagingCore -lvtkInteractionStyle "
232 - else
233 - HAVE_VTK=no
234 - fi
235
236 diff --git a/sci-libs/opencascade/opencascade-6.9.1-r2.ebuild b/sci-libs/opencascade/opencascade-6.9.1-r2.ebuild
237 deleted file mode 100644
238 index b8abc59a41a..00000000000
239 --- a/sci-libs/opencascade/opencascade-6.9.1-r2.ebuild
240 +++ /dev/null
241 @@ -1,177 +0,0 @@
242 -# Copyright 1999-2018 Gentoo Foundation
243 -# Distributed under the terms of the GNU General Public License v2
244 -
245 -EAPI=6
246 -
247 -inherit autotools eutils check-reqs multilib java-pkg-opt-2 flag-o-matic versionator
248 -
249 -DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange"
250 -HOMEPAGE="http://www.opencascade.org/"
251 -SRC_URI="http://www.opencascade.com/sites/default/files/private/occt/OCC_${PV}_release/opencascade-${PV}.tgz"
252 -
253 -LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )"
254 -SLOT="${PV}"
255 -KEYWORDS="~amd64 ~x86"
256 -IUSE="debug doc examples freeimage gl2ps java +tbb +vtk"
257 -
258 -DEPEND="
259 - app-eselect/eselect-opencascade
260 - dev-lang/tcl:0=
261 - dev-lang/tk:0=
262 - dev-tcltk/itcl
263 - dev-tcltk/itk
264 - dev-tcltk/tix
265 - media-libs/ftgl
266 - virtual/glu
267 - virtual/opengl
268 - x11-libs/libXmu
269 - freeimage? ( media-libs/freeimage )
270 - gl2ps? ( x11-libs/gl2ps )
271 - java? ( >=virtual/jdk-0:= )
272 - tbb? ( dev-cpp/tbb )
273 - vtk? ( || ( sci-libs/vtk[imaging] sci-libs/vtk[rendering] sci-libs/vtk[views] sci-libs/vtk[all-modules] ) )"
274 -RDEPEND="${DEPEND}"
275 -CHECKREQS_MEMORY="256M"
276 -CHECKREQS_DISK_BUILD="3584M"
277 -
278 -PATCHES=(
279 - "${FILESDIR}"/${PN}-6.8.0-fixed-DESTDIR.patch
280 - "${FILESDIR}"/${PN}-6.9.1-vtk-configure.patch
281 - "${FILESDIR}"/${PN}-6.9.1-vtk-8.1.patch
282 -)
283 -
284 -pkg_setup() {
285 - check-reqs_pkg_setup
286 - java-pkg-opt-2_pkg_setup
287 -}
288 -
289 -src_prepare() {
290 - default
291 -
292 - MY_VTK_P=$(best_version sci-libs/vtk)
293 - MY_VTK_PV=${MY_VTK_P/sci-libs\/vtk-}
294 - MY_VTK_SUB=vtk-$(get_version_component_range 1-2 ${MY_VTK_PV})
295 - if has_version ">=sci-libs/vtk-6.3" ; then #bug 605304
296 - eapply "${FILESDIR}"/${PN}-6.9.1-vtk-6.3.patch
297 - fi
298 -
299 - java-pkg-opt-2_src_prepare
300 -
301 - # Feed environment variables used by Opencascade compilation
302 - my_install_dir=${EROOT}usr/$(get_libdir)/${P}/ros
303 - local my_env_install="#!/bin/sh -f
304 -if [ -z \"\$PATH\" ]; then
305 - export PATH=VAR_CASROOT/Linux/bin
306 -else
307 - export PATH=VAR_CASROOT/Linux/bin:\$PATH
308 -fi
309 -if [ -z \"\$LD_LIBRARY_PATH\" ]; then
310 - export LD_LIBRARY_PATH=VAR_CASROOT/Linux/lib
311 -else
312 - export LD_LIBRARY_PATH=VAR_CASROOT/Linux/lib:\$LD_LIBRARY_PATH
313 -fi"
314 - local my_sys_lib=${EROOT}usr/$(get_libdir)
315 - local my_env="CASROOT=VAR_CASROOT
316 -CSF_MDTVFontDirectory=VAR_CASROOT/src/FontMFT
317 -CSF_LANGUAGE=us
318 -MMGT_CLEAR=1
319 -CSF_EXCEPTION_PROMPT=1
320 -CSF_SHMessage=VAR_CASROOT/src/SHMessage
321 -CSF_MDTVTexturesDirectory=VAR_CASROOT/src/Textures
322 -CSF_XSMessage=VAR_CASROOT/src/XSMessage
323 -CSF_StandardDefaults=VAR_CASROOT/src/StdResource
324 -CSF_PluginDefaults=VAR_CASROOT/src/StdResource
325 -CSF_XCAFDefaults=VAR_CASROOT/src/StdResource
326 -CSF_StandardLiteDefaults=VAR_CASROOT/src/StdResource
327 -CSF_GraphicShr=VAR_CASROOT/Linux/lib/libTKOpenGl.so
328 -CSF_UnitsLexicon=VAR_CASROOT/src/UnitsAPI/Lexi_Expr.dat
329 -CSF_UnitsDefinition=VAR_CASROOT/src/UnitsAPI/Units.dat
330 -CSF_IGESDefaults=VAR_CASROOT/src/XSTEPResource
331 -CSF_STEPDefaults=VAR_CASROOT/src/XSTEPResource
332 -CSF_XmlOcafResource=VAR_CASROOT/src/XmlOcafResource
333 -CSF_MIGRATION_TYPES=VAR_CASROOT/src/StdResource/MigrationSheet.txt
334 -TCLHOME=${EROOT}usr/bin
335 -TCLLIBPATH=${my_sys_lib}
336 -ITK_LIBRARY=${my_sys_lib}/itk$(grep ITK_VER /usr/include/itk.h | sed 's/^.*"\(.*\)".*/\1/')
337 -ITCL_LIBRARY=${my_sys_lib}/itcl$(grep ITCL_VER /usr/include/itcl.h | sed 's/^.*"\(.*\)".*/\1/')
338 -TIX_LIBRARY=${my_sys_lib}/tix$(grep TIX_VER /usr/include/tix.h | sed 's/^.*"\(.*\)".*/\1/')
339 -TK_LIBRARY=${my_sys_lib}/tk$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/')
340 -TCL_LIBRARY=${my_sys_lib}/tcl$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')"
341 -
342 - ( echo "${my_env_install}"
343 - echo "${my_env}" | sed -e "s:^:export :" ) \
344 - | sed -e "s:VAR_CASROOT:${S}:g" > env.sh || die
345 - source env.sh
346 -
347 - ( echo "PATH=${my_install_dir}/lin/bin"
348 - echo "LDPATH=${my_install_dir}/lin/$(get_libdir)"
349 - echo "${my_env}" | sed \
350 - -e "s:VAR_CASROOT:${my_install_dir}/lin:g" \
351 - -e "s:/Linux/lib/:/$(get_libdir)/:g" || die
352 - ) > 50${PN}
353 -
354 - append-cxxflags "-fpermissive"
355 -
356 - sed -e "/^AM_C_PROTOTYPES$/d" \
357 - -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \
358 - -e "/\$qt directory is not exists/s/AC_MSG_ERROR/AC_MSG_NOTICE/" \
359 - -i configure.ac || die
360 -
361 - # no longer needed https://tracker.dev.opencascade.org/view.php?id=28971
362 - if has_version ">=sys-libs/glibc-2.26" ; then
363 - sed -e '/#include <xlocale.h>/d' \
364 - -i inc/Standard_CLocaleSentry.hxx || die
365 - fi
366 -
367 - eautoreconf
368 -}
369 -
370 -src_configure() {
371 - econf \
372 - --prefix=${my_install_dir}/lin --exec-prefix=${my_install_dir}/lin \
373 - --with-tcl="${EROOT}usr/$(get_libdir)" --with-tk="${EROOT}usr/$(get_libdir)" \
374 - --with-freetype="${EROOT}usr" \
375 - --with-ftgl="${EROOT}usr" \
376 - --without-qt \
377 - $(usex freeimage "--with-freeimage=${EROOT}usr" "") \
378 - $(usex gl2ps "--with-gl2ps=${EROOT}usr" "") \
379 - $(usex tbb "--with-tbb-include=${EROOT}usr" "") \
380 - $(usex tbb "--with-tbb-library=${EROOT}usr" "") \
381 - $(use java && echo "--with-java-include=$(java-config -O)/include" || echo "--without-java-include") \
382 - $(usex vtk "--with-vtk-include=${EROOT}usr/include/${MY_VTK_SUB}" "") \
383 - $(usex vtk "--with-vtk-library=${EROOT}usr/$(get_libdir)" "") \
384 - $(use_enable debug) \
385 - $(use_enable !debug production)
386 -}
387 -
388 -src_install() {
389 - emake DESTDIR="${D}" install
390 -
391 - prune_libtool_files
392 -
393 - # Symlinks for keeping original OpenCascade folder structure and
394 - # add a link lib to $(get_libdir) if we are e.g. on amd64 multilib
395 - if [ "$(get_libdir)" != "lib" ]; then
396 - dosym "$(get_libdir)" "${my_install_dir}/lin/lib"
397 - fi
398 -
399 - insinto /etc/env.d/${PN}
400 - newins 50${PN} ${PV}
401 -
402 - if use examples ; then
403 - insinto /usr/share/doc/${PF}/examples
404 - doins -r data
405 - doins -r samples
406 - fi
407 - if use doc; then
408 - insinto /usr/share/doc/${PF}
409 - doins -r doc/{overview,pdf,refman}
410 - fi
411 -}
412 -
413 -pkg_postinst() {
414 - eselect ${PN} set ${PV}
415 - elog "After upgrading OpenCASCADE you may have to rebuild packages depending on it."
416 - elog "You get a list by running \"equery depends sci-libs/opencascade\""
417 - elog "revdep-rebuild does NOT suffice."
418 -}