From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F1C091388C0 for ; Mon, 22 Feb 2016 08:38:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB8D921C007; Mon, 22 Feb 2016 08:38:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D917021C007 for ; Mon, 22 Feb 2016 08:38:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1FF2340821 for ; Mon, 22 Feb 2016 08:38:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B42E718A6 for ; Mon, 22 Feb 2016 08:38:07 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1456130191.3addb11abe96717bdd72e01ee5dff2a47aa3f9e7.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/netgen/files/, sci-mathematics/netgen/ X-VCS-Repository: proj/sci X-VCS-Files: sci-mathematics/netgen/files/netgen-5.x-occ-stl-api-change.patch sci-mathematics/netgen/netgen-5.3.1.ebuild X-VCS-Directories: sci-mathematics/netgen/files/ sci-mathematics/netgen/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 3addb11abe96717bdd72e01ee5dff2a47aa3f9e7 X-VCS-Branch: master Date: Mon, 22 Feb 2016 08:38:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 064e2c4d-02b8-4b20-bf37-98038c15a303 X-Archives-Hash: a3e333dfd87b5d287a000f5b6dfe3c43 commit: 3addb11abe96717bdd72e01ee5dff2a47aa3f9e7 Author: Grégory Salvan gmail com> AuthorDate: Sat Feb 13 11:40:48 2016 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Feb 22 08:36:31 2016 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3addb11a patch netgen for occ to integrate version 5.3.1 see #436 .../files/netgen-5.x-occ-stl-api-change.patch | 94 ++++++++++++++++++++++ sci-mathematics/netgen/netgen-5.3.1.ebuild | 16 +++- 2 files changed, 109 insertions(+), 1 deletion(-) diff --git a/sci-mathematics/netgen/files/netgen-5.x-occ-stl-api-change.patch b/sci-mathematics/netgen/files/netgen-5.x-occ-stl-api-change.patch new file mode 100644 index 0000000..05f3a54 --- /dev/null +++ b/sci-mathematics/netgen/files/netgen-5.x-occ-stl-api-change.patch @@ -0,0 +1,94 @@ +--- libsrc/occ/occgeom.cpp 2014-08-29 11:54:03.000000000 +0200 ++++ libsrc/occ/occgeom.cpp 2016-02-12 21:14:49.258982206 +0100 +@@ -149,7 +149,7 @@ + + for (exp0.Init (shape, TopAbs_FACE); exp0.More(); exp0.Next()) + { +- // Variable to hold the colour (if there exists one) of ++ // Variable to hold the colour (if there exists one) of + // the current face being processed + Quantity_Color face_colour; + +@@ -190,7 +190,7 @@ + rebuild->Replace(face, newface, Standard_False); + } + +- // Set the original colour of the face to the newly created ++ // Set the original colour of the face to the newly created + // face (after the healing process) + face = TopoDS::Face (exp0.Current()); + face_colours->SetColor(face,face_colour,XCAFDoc_ColorSurf); +@@ -815,11 +815,11 @@ + face_maxh.SetSize (fmap.Extent()); + face_maxh = mparam.maxh; + +- // Philippose - 15/01/2010 +- face_maxh_modified.DeleteAll(); +- face_maxh_modified.SetSize(fmap.Extent()); ++ // Philippose - 15/01/2010 ++ face_maxh_modified.DeleteAll(); ++ face_maxh_modified.SetSize(fmap.Extent()); + face_maxh_modified = 0; +- ++ + + // Philippose - 17/01/2009 + face_sel_status.DeleteAll(); +@@ -845,7 +845,7 @@ + cout << "Trying to sew faces ..." << flush; + + BRepOffsetAPI_Sewing sewedObj(1); +- ++ + for (int i = 1; i <= fmap.Extent(); i++) + { + TopoDS_Face face = TopoDS::Face (fmap(i)); +@@ -1038,9 +1038,6 @@ + { + cout << "writing stl..."; cout.flush(); + StlAPI_Writer writer; +- writer.RelativeMode() = Standard_False; +- +- writer.SetDeflection(0.02); + writer.Write(shape,filename); + + cout << "done" << endl; +@@ -1109,7 +1106,7 @@ + } + + +- // For the IGES Reader, all the shapes can be exported as one compund shape ++ // For the IGES Reader, all the shapes can be exported as one compund shape + // using the "OneShape" member + occgeo->shape = reader.OneShape(); + occgeo->face_colours = iges_colour_contents; +@@ -1187,7 +1184,7 @@ + } + + +- // For the STEP File Reader in OCC, the 1st Shape contains the entire ++ // For the STEP File Reader in OCC, the 1st Shape contains the entire + // compound geometry as one shape + occgeo->shape = step_shape_contents->GetShape(step_shapes.Value(1)); + occgeo->face_colours = step_colour_contents; +@@ -1218,7 +1215,7 @@ + } + + // Philippose - 23/02/2009 +- // Fixed a bug in the OpenCascade XDE Colour handling when ++ // Fixed a bug in the OpenCascade XDE Colour handling when + // opening BREP Files, since BREP Files have no colour data. + // Hence, the face_colours Handle needs to be created as a NULL handle. + occgeo->face_colours = Handle_XCAFDoc_ColorTool(); +@@ -1236,9 +1233,9 @@ + void OCCGeometry :: Save (string sfilename) const + { + const char * filename = sfilename.c_str(); +- if (strlen(filename) < 4) ++ if (strlen(filename) < 4) + throw NgException ("illegal filename"); +- ++ + if (strcmp (&filename[strlen(filename)-3], "igs") == 0) + { + IGESControl_Writer writer("millimeters", 1); diff --git a/sci-mathematics/netgen/netgen-5.3.1.ebuild b/sci-mathematics/netgen/netgen-5.3.1.ebuild index 8a2f60b..16441ff 100644 --- a/sci-mathematics/netgen/netgen-5.3.1.ebuild +++ b/sci-mathematics/netgen/netgen-5.3.1.ebuild @@ -25,7 +25,7 @@ DEPEND=" opencascade? ( sci-libs/opencascade:* ) ffmpeg? ( media-video/ffmpeg ) jpeg? ( virtual/jpeg:0= ) - mpi? ( virtual/mpi ( || ( sci-libs/parmetis sci-libs/metis ) ) ) " + mpi? ( virtual/mpi ( || ( sci-libs/parmetis