diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-04-28 16:05:27 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-04-28 16:05:27 +0000 |
commit | 252058d18efa9d8cfa198e70fea3644d80ede536 (patch) | |
tree | 2f14e20e3029a24370632b861e240c85f78d523f /sci-libs | |
parent | punt (diff) | |
download | gentoo-2-252058d18efa9d8cfa198e70fea3644d80ede536.tar.gz gentoo-2-252058d18efa9d8cfa198e70fea3644d80ede536.tar.bz2 gentoo-2-252058d18efa9d8cfa198e70fea3644d80ede536.zip |
Not installable for almost an year now wrt bugs #326613, #284921, #316515, #315411. Other minor bugs, #336126.
Diffstat (limited to 'sci-libs')
23 files changed, 0 insertions, 2003 deletions
diff --git a/sci-libs/openfoam-kernel/ChangeLog b/sci-libs/openfoam-kernel/ChangeLog deleted file mode 100644 index 03bd6c7d4703..000000000000 --- a/sci-libs/openfoam-kernel/ChangeLog +++ /dev/null @@ -1,134 +0,0 @@ -# ChangeLog for sci-libs/openfoam-kernel -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-kernel/ChangeLog,v 1.6 2010/07/01 21:24:24 ssuominen Exp $ - - 01 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> - openfoam-kernel-1.5_p20090311.ebuild, - +files/openfoam-kernel-1.5_p20090311-gcc45.patch: - Fix building with GCC 4.5+ wrt #326519. - - 25 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org> - openfoam-kernel-1.5_p20090311.ebuild, -files/OpenFOAM-1.5-compile.patch: - Move humonguous, duplicated patches to mirrors. - - 14 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> - openfoam-kernel-1.5_p20090311.ebuild, - +files/openfoam-kernel-1.5_p20090311-gcc44.patch: - Fix building with GCC 4.4+ wrt #279160, thanks to Dominik Kapusta for - patch. - - 26 Apr 2009; Patrick Lauer <patrick@gentoo.org> metadata.xml: - Adding Oliver Borm to metadata - -*openfoam-kernel-1.5_p20090311 (25 Apr 2009) - - 25 Apr 2009; Patrick Lauer <patrick@gentoo.org> - +files/OpenFOAM-1.5-compile.patch, +files/OpenFOAM-1.5-ggi.patch, - +metadata.xml, +openfoam-kernel-1.5_p20090311.ebuild: - Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the - sunrise people for massaging it into shape. - - 17 Apr 2009; Justin Lecher <jlec@gentoo.org> - openfoam-kernel-1.5_p20090311.ebuild: - QA quotes around EAPI version - - 14 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-kernel-1.5_p20090311.ebuild, files/OpenFOAM-1.5-compile.patch: - Fixed typos - - 13 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-kernel-1.5_p20090204.ebuild, - +openfoam-kernel-1.5_p20090311.ebuild, +files/OpenFOAM-1.5-ggi.patch: - Version bump - - 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-kernel-1.4.1_p20080827.ebuild, - -files/openfoam-kernel-compile-1.4.1_p20080827.patch: - Remove old version. - - 04 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-kernel-1.5_p20080905.ebuild, - +openfoam-kernel-1.5_p20090204.ebuild: - Some new patches for openfoam-kernel - - 23 Jan 2009; Christian Ruppert (idl0r) <spooky85@gmail.com> - openfoam-kernel-1.5_p20080905.ebuild: - removed useless java-pkg-2_pkg_setup, thanks to boroli - - 20 Jan 2009; Christian Ruppert (idl0r) <spooky85@gmail.com> - openfoam-kernel-1.4.1_p20080827.ebuild, - openfoam-kernel-1.5_p20080905.ebuild: - Added suggested DEPEND="${RDEPEND}", moved to EAPI 2, cleanup. - - 08 Sep 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - openfoam-kernel-1.5_p20080905.ebuild: - Use ${P} in SRC_URI - - 08 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-kernel-1.5.ebuild, +openfoam-kernel-1.5_p20080905.ebuild: - New patche sets - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - openfoam-kernel-1.4.1_p20080827.ebuild, - -files/openfoam-kernel-1.4.1_p20080827.patch: - Move big patch to external source - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - -openfoam-kernel-1.4.1_p20080131.ebuild: - Drop old version - - 28 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-kernel-1.4.1_p20080827.ebuild, - +files/openfoam-kernel-compile-1.4.1_p20080827.patch, - +files/openfoam-kernel-1.4.1_p20080827.patch: - Update patches for the OpenFOAM Kernel - - 04 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-kernel-1.4.1_p20080131.ebuild, openfoam-kernel-1.5.ebuild: - Changed version dependencies - - 28 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-kernel-1.5.ebuild: - Fixed some errors due to wrong relative paths. - - 26 Jul 2008; Thomas Anderson <gentoofan23@gentoo.org> - openfoam-kernel-1.5.ebuild: - Fix unnecessary quoting - - 22 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-kernel-1.5.ebuild, +files/OpenFOAM-1.5-compile.patch: - Version bump to 1.5 - - 08 Apr 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-kernel-1.4.1_p20080131.ebuild: - Just changed the unpack command and source, according to the new sources - from dev.ge.org - - 27 Mar 2008; Markus Ullmann <jokey@gentoo.org> - openfoam-kernel-1.4.1_p20080131: - Actually unpack the patchset - - 27 Mar 2008; Markus Ullmann <jokey@gentoo.org> - -openfoam-kernel-1.4.1_p20080131.patch, - -openfoam-kernel-compile-1.4.1_p20080131.patch, - openfoam-kernel-1.4.1_p20080131: - Move patchset to dev.ge.org - - 27 Mar 2008; Markus Ullmann <jokey@gentoo.org> - -openfoam-kernel-1.4.1_p20080118.patch, - -openfoam-kernel-compile-1.4.1_p20080118.patch, - openfoam-kernel-1.4.1_p20080118: - Drop old - - 31 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de> - +files/openfoam-kernel-compile-1.4.1_p20080131.patch, - +files/openfoam-kernel-1.4.1_p20080131.patch, - +openfoam-kernel-1.4.1_p20080131.ebuild: - Update patches for the OpenFOAM Kernel. - - 29 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de> - +files/openfoam-kernel-1.4.1_p20080118.patch, - +files/openfoam-kernel-compile-1.4.1_p20080118.patch, +metadata.xml, - +openfoam-kernel-1.4.1_p20080118.ebuild: - This new Ebuild contains the kernel of OpenFOAM - diff --git a/sci-libs/openfoam-kernel/Manifest b/sci-libs/openfoam-kernel/Manifest deleted file mode 100644 index fa66072de6f1..000000000000 --- a/sci-libs/openfoam-kernel/Manifest +++ /dev/null @@ -1,10 +0,0 @@ -AUX OpenFOAM-1.5-ggi.patch 5907 RMD160 9a678e2fd7d36e862ffa1ed7e18aa4a073b77ea3 SHA1 2053a2e4e0c96500330b8ec233673391cb7487cf SHA256 e592d47ffee2fe9495378860932630936d5d838cf7290fb10d1e298986729b6c -AUX openfoam-kernel-1.5_p20090311-gcc44.patch 1724 RMD160 4af87a7d199df2bf4585349cb3081cd61d8b648b SHA1 fc932548b0612666681ba0fdfa8ea0a842fe91f1 SHA256 153494cb285dac663b07fe71fccbeba7678cbcde5a0967e02bffcbcf247c8003 -AUX openfoam-kernel-1.5_p20090311-gcc45.patch 6327 RMD160 220779ada5fb67bdc374c7f818897118ef584305 SHA1 3206a6f177852c856a42a18e838d0deb67bbf4e1 SHA256 5bcac0c15478a79fb811dc80a5f41eb8d5db9f7bac7165dda82d30d12153ab0b -DIST OpenFOAM-1.5-compile-2.patch.bz2 2939 RMD160 62e3e5b688a0a5e34f8406fdab0af6001df46f26 SHA1 d6b1ce5403ff173242b92521a2a5f446194c7b72 SHA256 9bcad542c35452271d80585e5dc174627791e33b5c2e089edfbceb0aa13c0bc1 -DIST OpenFOAM-1.5-svn.patch 4002548 RMD160 75b28c0c9c03b3e3886d0d90e8c631233d0734a2 SHA1 349e50a91095e0ff0e75b41f8eb8453623d5e4a8 SHA256 2a5872a4dbb8f58cb55b1ec64bcdc6f8e462ce2a541d21f1a8fc5faeb345d7d4 -DIST OpenFOAM-1.5.General.tgz 117334661 RMD160 bccaa9f8f99d31aa6c791d40b30dd9ad4f534041 SHA1 3577f562dc1f54bb32e1e0ef43f979418212c2f7 SHA256 d4cba2d9475523a53cea80b8d39da70d12bfffb9f46e2d1442946ba4a23efd31 -DIST OpenFOAM-git-1.5_p20090311.patch 711366 RMD160 ac9f6710aa9c92473068c18cf97ca2b25dc904e8 SHA1 068ade9111558adf4b2330e6acb5aabfe55f58fe SHA256 393ad127f9bd2cf6eb8826d65e2528d83ad8b6cceeab3de5ed04fb01746e3201 -EBUILD openfoam-kernel-1.5_p20090311.ebuild 1812 RMD160 c3a63a334e817824c04f9a2c78f2b35184a784fb SHA1 45e90b5d0796b56b029fe33651274c325bb1afcd SHA256 92ec275f8765195b5cc46c82a0128e643fc70dd588463e29781e28149f2fdf77 -MISC ChangeLog 5006 RMD160 f75c92c41328bfb2239305b50af55cbaffbc09d5 SHA1 dbb3ecda0ba425e8c9e714970cc1d07155b3029a SHA256 368336a999eb57f26d1146d7df730654e91dff97b2b2494f35dbee3661705c16 -MISC metadata.xml 342 RMD160 bba0c7eb3af0d1cd2322a40e86f4a80a0f48b6cf SHA1 7950d74b3d7d4fbe7167b487c5cd26559548b4ab SHA256 b57f05d81648f5a92cedd91c025852cb3bc5fc8d4ab4d110eb6886fc89e2ba97 diff --git a/sci-libs/openfoam-kernel/files/OpenFOAM-1.5-ggi.patch b/sci-libs/openfoam-kernel/files/OpenFOAM-1.5-ggi.patch deleted file mode 100644 index 1559050187ba..000000000000 --- a/sci-libs/openfoam-kernel/files/OpenFOAM-1.5-ggi.patch +++ /dev/null @@ -1,233 +0,0 @@ ---- OpenFOAM-1.5/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-01-21 13:25:35.000000000 +0100 -@@ -54,9 +54,14 @@ - : - public polyPatch - { -- // Private data -+protected: -+ -+ // Protected data -+ -+ // Alowing derived classes to create their own transformation -+ // HJ, 24/Oct/2008 - -- //- offset (distance) vector from one side of the couple to the other -+ //- Offset (distance) vector from one side of the couple to the other - mutable vectorField separation_; - - //- Face transformation tensor ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-01-21 13:25:37.000000000 +0100 -@@ -173,6 +173,11 @@ - mutable Field<PointType>* pointNormalsPtr_; - - -+ // Static Private Data -+ -+ static const bool nSquaredProjection_; -+ -+ - // Private Member Functions - - //- Calculate edges of the patch -@@ -412,6 +417,22 @@ - labelHashSet* setPtr = NULL - ) const; - -+ //- Write VTK patch, HJ, 14/Jan/2009 -+ static void writeVTK -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ -+ //- Write VTK patch normals, HJ, 14/Jan/2009 -+ static void writeVTKNormals -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ - - // Edit - ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-01-21 13:25:37.000000000 +0100 -@@ -30,6 +30,7 @@ - #include "PrimitivePatch.H" - #include "Map.H" - #include "ListOps.H" -+#include "OFstream.H" - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -@@ -331,6 +332,166 @@ - } - - -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTK -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << points.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlpBuffer(3*points.size()); -+ -+ label counter = 0; -+ forAll (points, i) -+ { -+ mlpBuffer[counter++] = float(points[i].x()); -+ mlpBuffer[counter++] = float(points[i].y()); -+ mlpBuffer[counter++] = float(points[i].z()); -+ } -+ -+ forAll (mlpBuffer, i) -+ { -+ mps << mlpBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ -+ // Write faces -+ label nFaceVerts = 0; -+ -+ forAll (faces, faceI) -+ { -+ nFaceVerts += faces[faceI].size() + 1; -+ } -+ labelList mlfBuffer(nFaceVerts); -+ -+ counter = 0; -+ forAll (faces, faceI) -+ { -+ const Face& f = faces[faceI]; -+ -+ mlfBuffer[counter++] = f.size(); -+ -+ forAll (f, fpI) -+ { -+ mlfBuffer[counter++] = f[fpI]; -+ } -+ } -+ mps << nl; -+ -+ mps << "POLYGONS " << faces.size() << ' ' << nFaceVerts << endl; -+ -+ forAll (mlfBuffer, i) -+ { -+ mps << mlfBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTKNormals -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << faces.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlPointBuffer(3*faces.size()); -+ -+ label counter = 0; -+ forAll (faces, i) -+ { -+ const vector c = faces[i].centre(points); -+ -+ mlPointBuffer[counter++] = float(c.x()); -+ mlPointBuffer[counter++] = float(c.y()); -+ mlPointBuffer[counter++] = float(c.z()); -+ } -+ -+ forAll (mlPointBuffer, i) -+ { -+ mps << mlPointBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+ -+ // Write normals -+ mps << "POINT_DATA " << faces.size() << nl -+ << "FIELD attributes " << 1 << nl -+ << "normals" << " 3 " -+ << faces.size() << " float" << nl; -+ -+ List<float> mlNormalBuffer(3*faces.size()); -+ -+ counter = 0; -+ forAll (faces, i) -+ { -+ const vector n = faces[i].normal(points); -+ -+ mlNormalBuffer[counter++] = float(n.x()); -+ mlNormalBuffer[counter++] = float(n.y()); -+ mlNormalBuffer[counter++] = float(n.z()); -+ } -+ -+ forAll (mlNormalBuffer, i) -+ { -+ mps << mlNormalBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - } // End namespace Foam diff --git a/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc44.patch b/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc44.patch deleted file mode 100644 index 6e41bfb00a1c..000000000000 --- a/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc44.patch +++ /dev/null @@ -1,42 +0,0 @@ -diff --git a/src/OSspecific/Unix/signals/sigFpe.C b/src/OSspecific/Unix/signals/sigFpe.C -index e3bcf15..759f8c8 100644 ---- a/src/OSspecific/Unix/signals/sigFpe.C -+++ b/src/OSspecific/Unix/signals/sigFpe.C -@@ -39,6 +39,7 @@ License - - # include <fenv.h> - # include <malloc.h> -+# include <stdint.h> - - #elif defined(sgiN32) || defined(sgiN32Gcc) - -diff --git a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C -index 9f858b9..25f2641 100644 ---- a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C -+++ b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C -@@ -763,10 +763,11 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples - const scalarField& maxDist - ) const - { -+ treeBoundBox tbb(samples); - // Build tree out of all samples. - octree<octreeDataPoint> ppTree - ( -- treeBoundBox(samples), // overall search domain -+ tbb, // overall search domain - octreeDataPoint(samples), // all information needed to do checks - 1, // min levels - 20.0, // maximum ratio of cubes v.s. cells -@@ -864,10 +865,11 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples - scalar maxSearch = max(maxDist); - vector span(maxSearch, maxSearch, maxSearch); - -+ treeBoundBox tbb(samples); - // octree.shapes holds reference! - octree<octreeDataPoint> ppTree - ( -- treeBoundBox(samples), // overall search domain -+ tbb, // overall search domain - octreeDataPoint(samples), // all information needed to do checks - 1, // min levels - 20.0, // maximum ratio of cubes v.s. cells diff --git a/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc45.patch b/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc45.patch deleted file mode 100644 index 3432f01bb8ed..000000000000 --- a/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc45.patch +++ /dev/null @@ -1,132 +0,0 @@ -diff -ur OpenFOAM-1.5.orig/wmake/MakefileFiles OpenFOAM-1.5/wmake/MakefileFiles ---- OpenFOAM-1.5.orig/wmake/MakefileFiles 2008-06-27 14:19:31.000000000 +0300 -+++ OpenFOAM-1.5/wmake/MakefileFiles 2010-07-02 00:07:07.000000000 +0300 -@@ -58,7 +58,7 @@ - allFiles : $(FILES) $(SFILES) $(OFILES) $(DFILES) $(IFILES) - - $(FILES) : files -- @$(CPP) $(GFLAGS) $(FFLAGS) files > $(FILES) -+ @$(CPP) -P $(GFLAGS) $(FFLAGS) files > $(FILES) - - $(SFILES): files - @wmakeDerivedFiles -diff -ur OpenFOAM-1.5.orig/wmake/MakefileOptions OpenFOAM-1.5/wmake/MakefileOptions ---- OpenFOAM-1.5.orig/wmake/MakefileOptions 2010-07-02 00:12:07.000000000 +0300 -+++ OpenFOAM-1.5/wmake/MakefileOptions 2010-07-02 00:05:52.000000000 +0300 -@@ -48,7 +48,7 @@ - #------------------------------------------------------------------------------ - - $(OPTIONS) : options -- @wmkdir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options > $(OPTIONS) -+ @wmkdir $(WM_OPTIONS) ; $(CPP) -P $(GFLAGS) options > $(OPTIONS) - - - #------------------------------------------------------------------------------ -diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Gcc/general OpenFOAM-1.5/wmake/rules/linux64Gcc/general ---- OpenFOAM-1.5.orig/wmake/rules/linux64Gcc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linux64Gcc/general 2010-07-02 00:07:27.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -A64 - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Gcc42/general OpenFOAM-1.5/wmake/rules/linux64Gcc42/general ---- OpenFOAM-1.5.orig/wmake/rules/linux64Gcc42/general 2008-05-25 22:46:24.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linux64Gcc42/general 2010-07-02 00:08:59.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -A64 - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Icc/general OpenFOAM-1.5/wmake/rules/linux64Icc/general ---- OpenFOAM-1.5.orig/wmake/rules/linux64Icc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linux64Icc/general 2010-07-02 00:10:09.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxGcc/general OpenFOAM-1.5/wmake/rules/linuxGcc/general ---- OpenFOAM-1.5.orig/wmake/rules/linuxGcc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linuxGcc/general 2010-07-02 00:08:30.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -melf_i386 - - PROJECT_LIBS = -l$(WM_PROJECT) -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxGcc42/general OpenFOAM-1.5/wmake/rules/linuxGcc42/general ---- OpenFOAM-1.5.orig/wmake/rules/linuxGcc42/general 2008-05-30 14:26:58.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linuxGcc42/general 2010-07-02 00:09:55.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -melf_i386 - - PROJECT_LIBS = -l$(WM_PROJECT) -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIA64Gcc/general OpenFOAM-1.5/wmake/rules/linuxIA64Gcc/general ---- OpenFOAM-1.5.orig/wmake/rules/linuxIA64Gcc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linuxIA64Gcc/general 2010-07-02 00:07:43.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIA64Icc/general OpenFOAM-1.5/wmake/rules/linuxIA64Icc/general ---- OpenFOAM-1.5.orig/wmake/rules/linuxIA64Icc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linuxIA64Icc/general 2010-07-02 00:06:11.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -DICC_IA64_PREFETCH -+CPP = /lib/cpp -P $(GFLAGS) -DICC_IA64_PREFETCH - AR = ar - ARFLAGS = cr - RANLIB = ranlib -diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIcc/general OpenFOAM-1.5/wmake/rules/linuxIcc/general ---- OpenFOAM-1.5.orig/wmake/rules/linuxIcc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linuxIcc/general 2010-07-02 00:08:18.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -melf_i386 - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxmingw32/general OpenFOAM-1.5/wmake/rules/linuxmingw32/general ---- OpenFOAM-1.5.orig/wmake/rules/linuxmingw32/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/linuxmingw32/general 2010-07-02 00:08:45.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = mingw32-ld - - PROJECT_LIBS = -l$(WM_PROJECT) -diff -ur OpenFOAM-1.5.orig/wmake/rules/SiCortex64Gcc/general OpenFOAM-1.5/wmake/rules/SiCortex64Gcc/general ---- OpenFOAM-1.5.orig/wmake/rules/SiCortex64Gcc/general 2010-07-02 00:12:08.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/SiCortex64Gcc/general 2010-07-02 00:06:28.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -A64 - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -diff -ur OpenFOAM-1.5.orig/wmake/rules/solarisGcc/general OpenFOAM-1.5/wmake/rules/solarisGcc/general ---- OpenFOAM-1.5.orig/wmake/rules/solarisGcc/general 2008-05-01 17:16:40.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/solarisGcc/general 2010-07-02 00:10:28.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /usr/lib/cpp -undef $(GFLAGS) -+CPP = /usr/lib/cpp -P -undef $(GFLAGS) - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream - -diff -ur OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general ---- OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general 2010-07-02 00:12:08.000000000 +0300 -+++ OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general 2010-07-02 00:08:00.000000000 +0300 -@@ -1,4 +1,4 @@ --CPP = /lib/cpp $(GFLAGS) -+CPP = /lib/cpp -P $(GFLAGS) - LD = ld -64 - - PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream diff --git a/sci-libs/openfoam-kernel/metadata.xml b/sci-libs/openfoam-kernel/metadata.xml deleted file mode 100644 index 199db2e8871c..000000000000 --- a/sci-libs/openfoam-kernel/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> - </maintainer> -<maintainer> - <email>oli.borm@web.de</email> - <name>Oliver Borm</name> -</maintainer> -</pkgmetadata> diff --git a/sci-libs/openfoam-kernel/openfoam-kernel-1.5_p20090311.ebuild b/sci-libs/openfoam-kernel/openfoam-kernel-1.5_p20090311.ebuild deleted file mode 100644 index dc847ae628c9..000000000000 --- a/sci-libs/openfoam-kernel/openfoam-kernel-1.5_p20090311.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-kernel/openfoam-kernel-1.5_p20090311.ebuild,v 1.4 2010/07/01 21:24:24 ssuominen Exp $ - -EAPI="2" - -inherit eutils versionator multilib toolchain-funcs - -MY_PN="OpenFOAM" -MY_PV=$(get_version_component_range 1-2) -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="OpenFOAM - kernel" -HOMEPAGE="http://www.opencfd.co.uk/openfoam/" -SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz - http://omploader.org/vMWRlMQ/${MY_PN}-git-${PVR}.patch - http://omploader.org/vMWRlMA/${MY_P}-svn.patch - mirror://gentoo/${MY_P}-compile-2.patch.bz2" - -LICENSE="GPL-2" -SLOT="1.5" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="!=sci-libs/openfoam-${MY_PV}* - !=sci-libs/openfoam-bin-${MY_PV}* - =sci-libs/openfoam-wmake-${MY_PV}* - sci-libs/parmetis - sci-libs/parmgridgen" -DEPEND="${RDEPEND} - >=sys-devel/gcc-4.1" - -S=${WORKDIR}/${MY_P} -INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" - -pkg_setup() { - # just to be sure the right profile is selected (gcc-config) - if ! version_is_at_least 4.1 $(gcc-version) ; then - die "${PN} requires >=sys-devel/gcc-4.1 to compile." - fi -} - -src_prepare() { - epatch "${DISTDIR}"/${MY_P}-compile-2.patch.bz2 - epatch "${DISTDIR}"/${MY_P}-svn.patch - epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch - epatch "${FILESDIR}"/${MY_P}-ggi.patch - epatch "${FILESDIR}"/${P}-gcc4{4,5}.patch -} - -src_compile() { - cp -a ${INSDIR}/etc/{bashrc,settings.sh} etc/. || die "cannot copy bashrc" - - export FOAM_INST_DIR="${WORKDIR}" - source etc/bashrc - - wcleanLnIncludeAll || die "could not clean lnInclude dirs" - - cd src - ./Allwmake || die "could not build OpenFOAM kernel" -} - -src_install() { - insopts -m0755 - insinto ${INSDIR} - doins -r lib/ || die "doins failed" -} diff --git a/sci-libs/openfoam-solvers/ChangeLog b/sci-libs/openfoam-solvers/ChangeLog deleted file mode 100644 index b62c2e8d0a06..000000000000 --- a/sci-libs/openfoam-solvers/ChangeLog +++ /dev/null @@ -1,103 +0,0 @@ -# ChangeLog for sci-libs/openfoam-solvers -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-solvers/ChangeLog,v 1.5 2010/04/25 11:32:43 jlec Exp $ - - 25 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org> - openfoam-solvers-1.5_p20090311.ebuild, -files/OpenFOAM-1.5-compile.patch: - Move humonguous, duplicated patches to mirrors. - - 13 Jun 2009; Torsten Veller <tove@gentoo.org> - openfoam-solvers-1.5_p20090311.ebuild: - Add missing die: "..." -> die "..." - - 26 Apr 2009; Patrick Lauer <patrick@gentoo.org> metadata.xml: - Adding Oliver Borm to metadata - -*openfoam-solvers-1.5_p20090311 (25 Apr 2009) - - 25 Apr 2009; Patrick Lauer <patrick@gentoo.org> - +files/OpenFOAM-1.5-compile.patch, +files/OpenFOAM-1.5-ggi.patch, - +metadata.xml, +openfoam-solvers-1.5_p20090311.ebuild: - Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the - sunrise people for massaging it into shape. - - 17 Apr 2009; Justin Lecher <jlec@gentoo.org> - openfoam-solvers-1.5_p20090311.ebuild: - QA quotes around EAPI version - - 14 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-solvers-1.5_p20090311.ebuild, files/OpenFOAM-1.5-compile.patch, - -files/openfoam-solvers-1.5_p20080905.patch: - Fixed typos - - 13 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-solvers-1.5_p20080905.ebuild, - +openfoam-solvers-1.5_p20090311.ebuild, +files/OpenFOAM-1.5-ggi.patch: - Version bump - - 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-solvers-1.4.1_p20080827.ebuild, - -files/openfoam-solvers-1.4.1_p20080827.patch, - -files/openfoam-solvers-compile-1.4.1_p20080827.patch: - Remove old version. - - 20 Jan 2009; Christian Ruppert (idl0r) <spooky85@gmail.com> - openfoam-solvers-1.4.1_p20080827.ebuild, - openfoam-solvers-1.5_p20080905.ebuild: - Added suggested DEPEND="${RDEPEND}", moved to EAPI 2, cleanup. - - 08 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-solvers-1.5.ebuild, +openfoam-solvers-1.5_p20080905.ebuild, - +files/openfoam-solvers-1.5_p20080905.patch: - New patch sets - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - -openfoam-solvers-1.4.1_p20080328.ebuild, - -files/openfoam-solvers-1.4.1_p20080328.patch, - -files/openfoam-solvers-compile-1.4.1_p20080328.patch: - Drop old version - - 28 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-solvers-1.4.1_p20080827.ebuild, - +files/openfoam-solvers-1.4.1_p20080827.patch, - +files/openfoam-solvers-compile-1.4.1_p20080827.patch: - Update patches for the OpenFOAM solvers - - 04 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-solvers-1.4.1_p20080328.ebuild, openfoam-solvers-1.5.ebuild: - Changed version dependencies - - 28 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-solvers-1.5.ebuild: - Added the the removed quoting again. - - 28 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-solvers-1.5.ebuild: - Fixed some errors due to wrong relative paths. - - 26 Jul 2008; Thomas Anderson <gentoofan23@gentoo.org> - openfoam-solvers-1.5.ebuild: - Fix unnecessary quoting, and add some more - - 22 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-solvers-1.5.ebuild, +files/OpenFOAM-1.5-compile.patch: - Version bump to 1.5 - - 30 Mar 2008; Thomas Sachau (Tommy[D]) tommy@gentoo.org - -openfoam-solvers-1.4.1_p20080118.ebuild, - -files/openfoam-solvers-1.4.1_p20080118.patch, - -files/openfoam-solvers-compile-1.4.1_p20080118.patch: - Drop old version - - 28 Mar 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-solvers-1.4.1_p20080328.ebuild, - +files/openfoam-solvers-1.4.1_p20080328.patch, - +files/openfoam-solvers-compile-1.4.1_p20080328.patch: - Some bug fixes. - - 29 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de> - +files/openfoam-solvers-1.4.1_p20080118.patch, - +files/openfoam-solvers-compile-1.4.1_p20080118.patch, +metadata.xml, - +openfoam-solvers-1.4.1_p20080118.ebuild: - New Ebuild for the OpenFOAM solvers - diff --git a/sci-libs/openfoam-solvers/Manifest b/sci-libs/openfoam-solvers/Manifest deleted file mode 100644 index 6abbb67bfe72..000000000000 --- a/sci-libs/openfoam-solvers/Manifest +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -AUX OpenFOAM-1.5-ggi.patch 5907 RMD160 9a678e2fd7d36e862ffa1ed7e18aa4a073b77ea3 SHA1 2053a2e4e0c96500330b8ec233673391cb7487cf SHA256 e592d47ffee2fe9495378860932630936d5d838cf7290fb10d1e298986729b6c -DIST OpenFOAM-1.5-compile-2.patch.bz2 2939 RMD160 62e3e5b688a0a5e34f8406fdab0af6001df46f26 SHA1 d6b1ce5403ff173242b92521a2a5f446194c7b72 SHA256 9bcad542c35452271d80585e5dc174627791e33b5c2e089edfbceb0aa13c0bc1 -DIST OpenFOAM-1.5-svn.patch 4002548 RMD160 75b28c0c9c03b3e3886d0d90e8c631233d0734a2 SHA1 349e50a91095e0ff0e75b41f8eb8453623d5e4a8 SHA256 2a5872a4dbb8f58cb55b1ec64bcdc6f8e462ce2a541d21f1a8fc5faeb345d7d4 -DIST OpenFOAM-1.5.General.tgz 117334661 RMD160 bccaa9f8f99d31aa6c791d40b30dd9ad4f534041 SHA1 3577f562dc1f54bb32e1e0ef43f979418212c2f7 SHA256 d4cba2d9475523a53cea80b8d39da70d12bfffb9f46e2d1442946ba4a23efd31 -DIST OpenFOAM-git-1.5_p20090311.patch 711366 RMD160 ac9f6710aa9c92473068c18cf97ca2b25dc904e8 SHA1 068ade9111558adf4b2330e6acb5aabfe55f58fe SHA256 393ad127f9bd2cf6eb8826d65e2528d83ad8b6cceeab3de5ed04fb01746e3201 -EBUILD openfoam-solvers-1.5_p20090311.ebuild 2225 RMD160 aa288f1435a4f030b44b2a32f726f74464cc1f12 SHA1 c3297e96f032c5f72236849600f53b8f54fcc57a SHA256 56c3f64f28e24e2c8429d12f7b7ef56cdd42add0eb9fd0caf56b0b1bdb7d8828 -MISC ChangeLog 3981 RMD160 d2f6e6e25056926939fb280ee30fa6b1f93929ba SHA1 03ba2fbdc80c1554fb7ac09373466d4894322d83 SHA256 ec42a28e381ab7baf1a1776b0319f8a4e3e3df95d9ec86d2df7448baadaeb781 -MISC metadata.xml 342 RMD160 bba0c7eb3af0d1cd2322a40e86f4a80a0f48b6cf SHA1 7950d74b3d7d4fbe7167b487c5cd26559548b4ab SHA256 b57f05d81648f5a92cedd91c025852cb3bc5fc8d4ab4d110eb6886fc89e2ba97 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iEYEARECAAYFAkvUKGAACgkQgAnW8HDreRaIgACePCi+ksMSQ6XBo70LJC8UzyZG -TOAAniT9tbnyz/tkA2TSdaBLZ7NRPVWV -=r8tN ------END PGP SIGNATURE----- diff --git a/sci-libs/openfoam-solvers/files/OpenFOAM-1.5-ggi.patch b/sci-libs/openfoam-solvers/files/OpenFOAM-1.5-ggi.patch deleted file mode 100644 index 1559050187ba..000000000000 --- a/sci-libs/openfoam-solvers/files/OpenFOAM-1.5-ggi.patch +++ /dev/null @@ -1,233 +0,0 @@ ---- OpenFOAM-1.5/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-01-21 13:25:35.000000000 +0100 -@@ -54,9 +54,14 @@ - : - public polyPatch - { -- // Private data -+protected: -+ -+ // Protected data -+ -+ // Alowing derived classes to create their own transformation -+ // HJ, 24/Oct/2008 - -- //- offset (distance) vector from one side of the couple to the other -+ //- Offset (distance) vector from one side of the couple to the other - mutable vectorField separation_; - - //- Face transformation tensor ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-01-21 13:25:37.000000000 +0100 -@@ -173,6 +173,11 @@ - mutable Field<PointType>* pointNormalsPtr_; - - -+ // Static Private Data -+ -+ static const bool nSquaredProjection_; -+ -+ - // Private Member Functions - - //- Calculate edges of the patch -@@ -412,6 +417,22 @@ - labelHashSet* setPtr = NULL - ) const; - -+ //- Write VTK patch, HJ, 14/Jan/2009 -+ static void writeVTK -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ -+ //- Write VTK patch normals, HJ, 14/Jan/2009 -+ static void writeVTKNormals -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ - - // Edit - ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-01-21 13:25:37.000000000 +0100 -@@ -30,6 +30,7 @@ - #include "PrimitivePatch.H" - #include "Map.H" - #include "ListOps.H" -+#include "OFstream.H" - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -@@ -331,6 +332,166 @@ - } - - -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTK -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << points.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlpBuffer(3*points.size()); -+ -+ label counter = 0; -+ forAll (points, i) -+ { -+ mlpBuffer[counter++] = float(points[i].x()); -+ mlpBuffer[counter++] = float(points[i].y()); -+ mlpBuffer[counter++] = float(points[i].z()); -+ } -+ -+ forAll (mlpBuffer, i) -+ { -+ mps << mlpBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ -+ // Write faces -+ label nFaceVerts = 0; -+ -+ forAll (faces, faceI) -+ { -+ nFaceVerts += faces[faceI].size() + 1; -+ } -+ labelList mlfBuffer(nFaceVerts); -+ -+ counter = 0; -+ forAll (faces, faceI) -+ { -+ const Face& f = faces[faceI]; -+ -+ mlfBuffer[counter++] = f.size(); -+ -+ forAll (f, fpI) -+ { -+ mlfBuffer[counter++] = f[fpI]; -+ } -+ } -+ mps << nl; -+ -+ mps << "POLYGONS " << faces.size() << ' ' << nFaceVerts << endl; -+ -+ forAll (mlfBuffer, i) -+ { -+ mps << mlfBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTKNormals -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << faces.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlPointBuffer(3*faces.size()); -+ -+ label counter = 0; -+ forAll (faces, i) -+ { -+ const vector c = faces[i].centre(points); -+ -+ mlPointBuffer[counter++] = float(c.x()); -+ mlPointBuffer[counter++] = float(c.y()); -+ mlPointBuffer[counter++] = float(c.z()); -+ } -+ -+ forAll (mlPointBuffer, i) -+ { -+ mps << mlPointBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+ -+ // Write normals -+ mps << "POINT_DATA " << faces.size() << nl -+ << "FIELD attributes " << 1 << nl -+ << "normals" << " 3 " -+ << faces.size() << " float" << nl; -+ -+ List<float> mlNormalBuffer(3*faces.size()); -+ -+ counter = 0; -+ forAll (faces, i) -+ { -+ const vector n = faces[i].normal(points); -+ -+ mlNormalBuffer[counter++] = float(n.x()); -+ mlNormalBuffer[counter++] = float(n.y()); -+ mlNormalBuffer[counter++] = float(n.z()); -+ } -+ -+ forAll (mlNormalBuffer, i) -+ { -+ mps << mlNormalBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - } // End namespace Foam diff --git a/sci-libs/openfoam-solvers/metadata.xml b/sci-libs/openfoam-solvers/metadata.xml deleted file mode 100644 index 199db2e8871c..000000000000 --- a/sci-libs/openfoam-solvers/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> - </maintainer> -<maintainer> - <email>oli.borm@web.de</email> - <name>Oliver Borm</name> -</maintainer> -</pkgmetadata> diff --git a/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild b/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild deleted file mode 100644 index 98cc79481dfb..000000000000 --- a/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild,v 1.3 2009/09/25 09:31:34 flameeyes Exp $ - -EAPI="2" - -inherit eutils versionator multilib toolchain-funcs - -MY_PN="OpenFOAM" -MY_PV=$(get_version_component_range 1-2) -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="OpenFOAM - solvers" -HOMEPAGE="http://www.opencfd.co.uk/openfoam/" -SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz - http://omploader.org/vMWRlMQ/${MY_PN}-git-${PVR}.patch - http://omploader.org/vMWRlMA/${MY_P}-svn.patch - mirror://gentoo/${MY_P}-compile-2.patch.bz2" - -LICENSE="GPL-2" -SLOT="1.5" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="!=sci-libs/openfoam-${MY_PV}* - !=sci-libs/openfoam-bin-${MY_PV}* - =sci-libs/openfoam-kernel-${MY_PV}*" -DEPEND="${RDEPEND} - >=sys-devel/gcc-4.1" - -S=${WORKDIR}/${MY_P} -INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" - -pkg_setup() { - # just to be sure the right profile is selected (gcc-config) - if ! version_is_at_least 4.1 $(gcc-version) ; then - die "${PN} requires >=sys-devel/gcc-4.1 to compile." - fi -} - -src_prepare() { - epatch "${DISTDIR}"/${MY_P}-compile-2.patch.bz2 - epatch "${DISTDIR}"/${MY_P}-svn.patch - epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch - epatch "${FILESDIR}"/${MY_P}-ggi.patch -} - -src_compile() { - cp -a ${INSDIR}/etc/{bashrc,settings.sh} etc/. || die "cannot copy bashrc" - - # This is a hack, due to the meta ebuild: - sed -i -e "s|FOAM_LIB=\$WM_PROJECT_DIR/lib|FOAM_LIB=${INSDIR}/lib|" \ - -e "s|FOAM_LIBBIN=\$FOAM_LIB|FOAM_LIBBIN=\$WM_PROJECT_DIR/lib|" \ - -e "s|_foamAddLib \$FOAM_USER_LIBBIN|_foamAddLib \$FOAM_LIB|" \ - etc/settings.sh || die "could not replace paths" - - sed -i -e "s|-L\$(LIB_WM_OPTIONS_DIR)|-L\$(LIB_WM_OPTIONS_DIR) -L${INSDIR}/lib|" \ - wmake/Makefile || die "could not replace search paths" - - export FOAM_INST_DIR="${WORKDIR}" - source etc/bashrc - - cd applications/solvers - wmake all || die "could not build OpenFOAM utilities" -} - -src_install() { - insopts -m0755 - insinto ${INSDIR}/applications/bin - doins -r applications/bin/* || die "doins failed" - - insinto ${INSDIR}/lib - doins -r lib/* || die "doins failed" -} diff --git a/sci-libs/openfoam-src/ChangeLog b/sci-libs/openfoam-src/ChangeLog deleted file mode 100644 index b405ad2568db..000000000000 --- a/sci-libs/openfoam-src/ChangeLog +++ /dev/null @@ -1,117 +0,0 @@ -# ChangeLog for sci-libs/openfoam-src -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-src/ChangeLog,v 1.5 2010/04/25 11:32:56 jlec Exp $ - - 25 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org> - openfoam-src-1.5_p20090311.ebuild, -files/OpenFOAM-1.5-compile.patch, - openfoam-src-1.6.ebuild, -files/OpenFOAM-1.6-compile.patch: - Move humonguous, duplicated patches to mirrors. - -*openfoam-src-1.6 (18 Sep 2009) - - 18 Sep 2009; Patrick Lauer <patrick@gentoo.org> +openfoam-src-1.6.ebuild, - +files/OpenFOAM-1.6-compile.patch: - Bump to 1.6, thanks to Oliver Borm for ebuilds and patches. Fixes #280586 - - 26 Apr 2009; Patrick Lauer <patrick@gentoo.org> metadata.xml: - Adding Oliver Borm to metadata - -*openfoam-src-1.5_p20090311 (25 Apr 2009) - - 25 Apr 2009; Patrick Lauer <patrick@gentoo.org> - +files/OpenFOAM-1.5-compile.patch, +files/OpenFOAM-1.5-ggi.patch, - +metadata.xml, +openfoam-src-1.5_p20090311.ebuild: - Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the - sunrise people for massaging it into shape. - - 17 Apr 2009; Justin Lecher <jlec@gentoo.org> - openfoam-src-1.5_p20090311.ebuild: - QA quotes around EAPI version - - 14 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-src-1.5_p20090311.ebuild, files/OpenFOAM-1.5-compile.patch: - Fixed typos - - 13 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-src-1.5_p20090204.ebuild, +openfoam-src-1.5_p20090311.ebuild, - +files/OpenFOAM-1.5-ggi.patch: - Version bump - - 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-src-1.4.1_p20080827.ebuild, - -files/openfoam-src-compile-1.4.1_p20080827.patch: - Remove old version. - - 05 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org> - openfoam-src-1.4.1_p20080827.ebuild, openfoam-src-1.5_p20090204.ebuild: - Make repoman happy - - 04 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-src-1.5_p20080905.ebuild, +openfoam-src-1.5_p20090204.ebuild: - Changed to EAPI=2 and added some new patches - - 08 Sep 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - openfoam-src-1.5_p20080905.ebuild: - Use ${P} in SRC_URI - - 08 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-src-1.5.ebuild, +openfoam-src-1.5_p20080905.ebuild: - New patch sets - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - openfoam-src-1.4.1_p20080827.ebuild, - -files/openfoam-src-1.4.1_p20080827.patch: - Move big patch to external source - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - -openfoam-src-1.4.1_p20080131.ebuild: - Drop old version - - 29 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-src-1.4.1_p20080827.ebuild: - Fixed typo in OpenFOAM sources - - 28 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-src-1.4.1_p20080827.ebuild, - +files/openfoam-src-1.4.1_p20080827.patch, - +files/openfoam-src-compile-1.4.1_p20080827.patch: - Update patches for the OpenFOAM sources - - 04 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-src-1.4.1_p20080131.ebuild, openfoam-src-1.5.ebuild: - Changed version dependencies - - 28 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-src-1.5.ebuild: - Removed unnecessary insopts line - - 26 Jul 2008; Thomas Anderson <gentoofan23@gentoo.org> - openfoam-src-1.5.ebuild: - Fix unnecessary quoting - - 22 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-src-1.5.ebuild, +files/OpenFOAM-1.5-compile.patch: - Version bump to 1.5 - - 27 Mar 2008; Markus Ullmann <jokey@gentoo.org> - -openfoam-src-1.4.1_p20080131.patch, - -openfoam-src-compile-1.4.1_p20080131.patch: - Move patchset to dev.ge.org - - 27 Mar 2008; Markus Ullmann <jokey@gentoo.org> - -openfoam-src-1.4.1_p20080118.patch, - -openfoam-src-compile-1.4.1_p20080118.patch, openfoam-src-1.4.1_p20080118: - Drop old - - 31 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de> - +files/openfoam-src-1.4.1_p20080131.patch, - +files/openfoam-src-compile-1.4.1_p20080131.patch, - +openfoam-src-1.4.1_p20080131.ebuild: - Update patches in OpenFOAM kernel sources - - 30 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de> - +files/openfoam-src-compile-1.4.1_p20080118.patch, - +files/openfoam-src-1.4.1_p20080118.patch, +metadata.xml, - +openfoam-src-1.4.1_p20080118.ebuild: - New Ebuild for the OpenFOAM kernel sources - diff --git a/sci-libs/openfoam-src/Manifest b/sci-libs/openfoam-src/Manifest deleted file mode 100644 index 615b70d77a34..000000000000 --- a/sci-libs/openfoam-src/Manifest +++ /dev/null @@ -1,21 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -AUX OpenFOAM-1.5-ggi.patch 5907 RMD160 9a678e2fd7d36e862ffa1ed7e18aa4a073b77ea3 SHA1 2053a2e4e0c96500330b8ec233673391cb7487cf SHA256 e592d47ffee2fe9495378860932630936d5d838cf7290fb10d1e298986729b6c -DIST OpenFOAM-1.5-compile-2.patch.bz2 2939 RMD160 62e3e5b688a0a5e34f8406fdab0af6001df46f26 SHA1 d6b1ce5403ff173242b92521a2a5f446194c7b72 SHA256 9bcad542c35452271d80585e5dc174627791e33b5c2e089edfbceb0aa13c0bc1 -DIST OpenFOAM-1.5-svn.patch 4002548 RMD160 75b28c0c9c03b3e3886d0d90e8c631233d0734a2 SHA1 349e50a91095e0ff0e75b41f8eb8453623d5e4a8 SHA256 2a5872a4dbb8f58cb55b1ec64bcdc6f8e462ce2a541d21f1a8fc5faeb345d7d4 -DIST OpenFOAM-1.5.General.tgz 117334661 RMD160 bccaa9f8f99d31aa6c791d40b30dd9ad4f534041 SHA1 3577f562dc1f54bb32e1e0ef43f979418212c2f7 SHA256 d4cba2d9475523a53cea80b8d39da70d12bfffb9f46e2d1442946ba4a23efd31 -DIST OpenFOAM-1.6-compile.patch.bz2 5835 RMD160 d470a9b641a8391715dba5276297da31fa590008 SHA1 66179651ccf33759ef00aa983510006a8a7dc8ba SHA256 633966faf70ffb0acbb1684075630cf9a3028b7099e3fcee549d8c850d55b794 -DIST OpenFOAM-1.6.General.tgz 241760751 RMD160 eec3f30f5083cd394f942d4bfd35e74856df88fd SHA1 b5ffefd1262d96c29575d540e279b7752b623192 SHA256 a752d8e70ad26b84d6939e32e443e341f4cafecaff0068c0cc85c43562d21f9a -DIST OpenFOAM-git-1.5_p20090311.patch 711366 RMD160 ac9f6710aa9c92473068c18cf97ca2b25dc904e8 SHA1 068ade9111558adf4b2330e6acb5aabfe55f58fe SHA256 393ad127f9bd2cf6eb8826d65e2528d83ad8b6cceeab3de5ed04fb01746e3201 -EBUILD openfoam-src-1.5_p20090311.ebuild 1356 RMD160 82a0fe1b093aa1abdadc12db8fdb4dd6e9e9e0fd SHA1 0a4ac44903403f2b1663185a5a77f36df0b4cf1c SHA256 c2111494f69d2363ff282b5cb0078b0828336379ede4e33c4027ca9c65293a7a -EBUILD openfoam-src-1.6.ebuild 1005 RMD160 31a16c28a15d97cd4794f341eb5bcd60b917159c SHA1 321013e2f3c4f28d91acb826664feb354d241900 SHA256 5dc8267cefea6294256033cbdbde1a227da560eda19aba0193f90b71c87c2cff -MISC ChangeLog 4306 RMD160 2269c33ec82f27d582dba930fc72ae62d069954f SHA1 87ad6995a40d7d7335460c8601ae11f6b1590dce SHA256 2f03aecaef88efe95ab5c295ad32dcceb9f8d8be40d68dcb690b83aa87560a26 -MISC metadata.xml 342 RMD160 bba0c7eb3af0d1cd2322a40e86f4a80a0f48b6cf SHA1 7950d74b3d7d4fbe7167b487c5cd26559548b4ab SHA256 b57f05d81648f5a92cedd91c025852cb3bc5fc8d4ab4d110eb6886fc89e2ba97 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iEYEARECAAYFAkvUKG0ACgkQgAnW8HDreRY+ZQCgymYolAi3pyUXTjGnC3AMgE1M -Z7EAoJFBKb/l6/8vZROXLHJ+3EoP7/Gp -=IiPC ------END PGP SIGNATURE----- diff --git a/sci-libs/openfoam-src/files/OpenFOAM-1.5-ggi.patch b/sci-libs/openfoam-src/files/OpenFOAM-1.5-ggi.patch deleted file mode 100644 index 1559050187ba..000000000000 --- a/sci-libs/openfoam-src/files/OpenFOAM-1.5-ggi.patch +++ /dev/null @@ -1,233 +0,0 @@ ---- OpenFOAM-1.5/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-01-21 13:25:35.000000000 +0100 -@@ -54,9 +54,14 @@ - : - public polyPatch - { -- // Private data -+protected: -+ -+ // Protected data -+ -+ // Alowing derived classes to create their own transformation -+ // HJ, 24/Oct/2008 - -- //- offset (distance) vector from one side of the couple to the other -+ //- Offset (distance) vector from one side of the couple to the other - mutable vectorField separation_; - - //- Face transformation tensor ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-01-21 13:25:37.000000000 +0100 -@@ -173,6 +173,11 @@ - mutable Field<PointType>* pointNormalsPtr_; - - -+ // Static Private Data -+ -+ static const bool nSquaredProjection_; -+ -+ - // Private Member Functions - - //- Calculate edges of the patch -@@ -412,6 +417,22 @@ - labelHashSet* setPtr = NULL - ) const; - -+ //- Write VTK patch, HJ, 14/Jan/2009 -+ static void writeVTK -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ -+ //- Write VTK patch normals, HJ, 14/Jan/2009 -+ static void writeVTKNormals -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ - - // Edit - ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-01-21 13:25:37.000000000 +0100 -@@ -30,6 +30,7 @@ - #include "PrimitivePatch.H" - #include "Map.H" - #include "ListOps.H" -+#include "OFstream.H" - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -@@ -331,6 +332,166 @@ - } - - -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTK -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << points.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlpBuffer(3*points.size()); -+ -+ label counter = 0; -+ forAll (points, i) -+ { -+ mlpBuffer[counter++] = float(points[i].x()); -+ mlpBuffer[counter++] = float(points[i].y()); -+ mlpBuffer[counter++] = float(points[i].z()); -+ } -+ -+ forAll (mlpBuffer, i) -+ { -+ mps << mlpBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ -+ // Write faces -+ label nFaceVerts = 0; -+ -+ forAll (faces, faceI) -+ { -+ nFaceVerts += faces[faceI].size() + 1; -+ } -+ labelList mlfBuffer(nFaceVerts); -+ -+ counter = 0; -+ forAll (faces, faceI) -+ { -+ const Face& f = faces[faceI]; -+ -+ mlfBuffer[counter++] = f.size(); -+ -+ forAll (f, fpI) -+ { -+ mlfBuffer[counter++] = f[fpI]; -+ } -+ } -+ mps << nl; -+ -+ mps << "POLYGONS " << faces.size() << ' ' << nFaceVerts << endl; -+ -+ forAll (mlfBuffer, i) -+ { -+ mps << mlfBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTKNormals -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << faces.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlPointBuffer(3*faces.size()); -+ -+ label counter = 0; -+ forAll (faces, i) -+ { -+ const vector c = faces[i].centre(points); -+ -+ mlPointBuffer[counter++] = float(c.x()); -+ mlPointBuffer[counter++] = float(c.y()); -+ mlPointBuffer[counter++] = float(c.z()); -+ } -+ -+ forAll (mlPointBuffer, i) -+ { -+ mps << mlPointBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+ -+ // Write normals -+ mps << "POINT_DATA " << faces.size() << nl -+ << "FIELD attributes " << 1 << nl -+ << "normals" << " 3 " -+ << faces.size() << " float" << nl; -+ -+ List<float> mlNormalBuffer(3*faces.size()); -+ -+ counter = 0; -+ forAll (faces, i) -+ { -+ const vector n = faces[i].normal(points); -+ -+ mlNormalBuffer[counter++] = float(n.x()); -+ mlNormalBuffer[counter++] = float(n.y()); -+ mlNormalBuffer[counter++] = float(n.z()); -+ } -+ -+ forAll (mlNormalBuffer, i) -+ { -+ mps << mlNormalBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - } // End namespace Foam diff --git a/sci-libs/openfoam-src/metadata.xml b/sci-libs/openfoam-src/metadata.xml deleted file mode 100644 index 199db2e8871c..000000000000 --- a/sci-libs/openfoam-src/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> - </maintainer> -<maintainer> - <email>oli.borm@web.de</email> - <name>Oliver Borm</name> -</maintainer> -</pkgmetadata> diff --git a/sci-libs/openfoam-src/openfoam-src-1.5_p20090311.ebuild b/sci-libs/openfoam-src/openfoam-src-1.5_p20090311.ebuild deleted file mode 100644 index 05689e602128..000000000000 --- a/sci-libs/openfoam-src/openfoam-src-1.5_p20090311.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-src/openfoam-src-1.5_p20090311.ebuild,v 1.2 2009/09/25 09:30:00 flameeyes Exp $ - -EAPI="2" - -inherit eutils versionator multilib - -MY_PN="OpenFOAM" -MY_PV=$(get_version_component_range 1-2) -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="OpenFOAM - sources" -HOMEPAGE="http://www.opencfd.co.uk/openfoam/" -SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz - http://omploader.org/vMWRlMQ/${MY_PN}-git-${PVR}.patch - http://omploader.org/vMWRlMA/${MY_P}-svn.patch - mirror://gentoo/${MY_P}-compile-2.patch.bz2" - -LICENSE="GPL-2" -SLOT="1.5" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="|| ( =sci-libs/openfoam-meta-${MY_PV}* =sci-libs/openfoam-${MY_PV}* =sci-libs/openfoam-bin-${MY_PV}* )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${MY_P} -INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" - -src_prepare() { - epatch "${DISTDIR}"/${MY_P}-compile-2.patch.bz2 - epatch "${DISTDIR}"/${MY_P}-svn.patch - epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch - epatch "${FILESDIR}"/${MY_P}-ggi.patch -} - -src_compile() { - source ${INSDIR}/etc/bashrc - wcleanLnIncludeAll || die "could not clean lnInclude dirs" -} -src_install() { - insinto ${INSDIR}/src - doins -r src/* - - insinto ${INSDIR}/applications - doins -r applications/* -} diff --git a/sci-libs/openfoam-src/openfoam-src-1.6.ebuild b/sci-libs/openfoam-src/openfoam-src-1.6.ebuild deleted file mode 100644 index 69443e2224c4..000000000000 --- a/sci-libs/openfoam-src/openfoam-src-1.6.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-src/openfoam-src-1.6.ebuild,v 1.2 2009/09/25 09:30:00 flameeyes Exp $ - -EAPI="2" - -inherit eutils versionator multilib - -MY_PN="OpenFOAM" -MY_PV=$(get_version_component_range 1-2) -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="OpenFOAM - sources" -HOMEPAGE="http://www.opencfd.co.uk/openfoam/" -SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz - mirror://gentoo/${MY_P}-compile.patch.bz2" - -LICENSE="GPL-2" -SLOT="1.6" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="|| ( =sci-libs/openfoam-meta-${MY_PV}* =sci-libs/openfoam-${MY_PV}* =sci-libs/openfoam-bin-${MY_PV}* )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${MY_P} -INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" - -src_prepare() { - epatch "${DISTDIR}"/${MY_P}-compile.patch.bz2 -} - -src_install() { - insinto ${INSDIR}/src - doins -r src/* - - insinto ${INSDIR}/applications - doins -r applications/* -} diff --git a/sci-libs/openfoam-utilities/ChangeLog b/sci-libs/openfoam-utilities/ChangeLog deleted file mode 100644 index 1196af79a056..000000000000 --- a/sci-libs/openfoam-utilities/ChangeLog +++ /dev/null @@ -1,117 +0,0 @@ -# ChangeLog for sci-libs/openfoam-utilities -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-utilities/ChangeLog,v 1.4 2010/04/25 11:33:04 jlec Exp $ - - 25 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org> - openfoam-utilities-1.5_p20090311.ebuild, - -files/OpenFOAM-1.5-compile.patch: - Move humonguous, duplicated patches to mirrors. - - 26 Apr 2009; Patrick Lauer <patrick@gentoo.org> metadata.xml: - Adding Oliver Borm to metadata - -*openfoam-utilities-1.5_p20090311 (25 Apr 2009) - - 25 Apr 2009; Patrick Lauer <patrick@gentoo.org> - +files/OpenFOAM-1.5-compile.patch, +files/OpenFOAM-1.5-ggi.patch, - +metadata.xml, +openfoam-utilities-1.5_p20090311.ebuild: - Initial import from sunrise. Thanks to Oliver Borm for the ebuild and the - sunrise people for massaging it into shape. - - 17 Apr 2009; Justin Lecher <jlec@gentoo.org> - openfoam-utilities-1.5_p20090311.ebuild: - QA quotes around EAPI version - - 14 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-utilities-1.5_p20090311.ebuild, files/OpenFOAM-1.5-compile.patch: - Fixed typos - - 13 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-utilities-1.5_p20090204.ebuild, - +openfoam-utilities-1.5_p20090311.ebuild, +files/OpenFOAM-1.5-ggi.patch: - Version bump - - 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-utilities-1.4.1_p20080827.ebuild, - -files/openfoam-utilities-compile-1.4.1_p20080827.patch: - Remove old version. - - 05 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org> - openfoam-utilities-1.4.1_p20080827.ebuild: - Make repoman happy - - 04 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-utilities-1.5_p20080905.ebuild, - +openfoam-utilities-1.5_p20090204.ebuild: - Changed to EAPI=2 and added some new patches - - 08 Sep 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - openfoam-utilities-1.5_p20080905.ebuild: - Use ${P} in SRC_URI - - 08 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - -openfoam-utilities-1.5.ebuild, +openfoam-utilities-1.5_p20080905.ebuild: - New patch sets - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - -files/openfoam-utilities-1.4.1_p20080827.patch: - Move big patch to external source - - 31 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - -openfoam-utilities-1.4.1_p20080328.ebuild, - -files/openfoam-utilities-1.4.1_p20080328.patch, - -files/openfoam-utilities-compile-1.4.1_p20080328.patch: - Drop old version - - 28 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-utilities-1.4.1_p20080827.ebuild, - +files/openfoam-utilities-1.4.1_p20080827.patch, - +files/openfoam-utilities-compile-1.4.1_p20080827.patch: - Update patches for the OpenFOAM utilities - - 04 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-utilities-1.4.1_p20080328.ebuild, openfoam-utilities-1.5.ebuild: - Changed version dependencies - - 28 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-utilities-1.5.ebuild: - Removed unnecessary variable declaration - - 28 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-utilities-1.5.ebuild: - Fixed some errors due to wrong relative paths. - - 26 Jul 2008; Thomas Anderson <gentoofan23@gentoo.org> - openfoam-utilities-1.5.ebuild: - Fix unnecessary quoting - - 22 Jul 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-utilities-1.5.ebuild, +files/OpenFOAM-1.5-compile.patch: - Version bump to 1.5 - - 22 Apr 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> - openfoam-utilities-1.4.1_p20080328.ebuild: - Fix dep - - 21 Apr 2008; Oliver Borm (boroli) <oli.borm@web.de> - openfoam-utilities-1.4.1_p20080328.ebuild: - Fixed some minor dependency problems. - - 30 Mar 2008; Thomas Sachau (Tommy[D]) tommy@gentoo.org - -openfoam-utilities-1.4.1_p20080118.ebuild, - -files/openfoam-utilities-compile-1.4.1_p20080118.patch, - -files/openfoam-utilities-1.4.1_p20080118.patch: - Drop old version - - 28 Mar 2008; Oliver Borm (boroli) <oli.borm@web.de> - +openfoam-utilities-1.4.1_p20080328.ebuild, - +files/openfoam-utilities-1.4.1_p20080328.patch, - +files/openfoam-utilities-compile-1.4.1_p20080328.patch: - sci-libs/parmetis in portage requires new dependencies - - 29 Jan 2008; Oliver Borm (boroli) <oli.borm@web.de> - +files/openfoam-utilities-compile-1.4.1_p20080118.patch, - +files/openfoam-utilities-1.4.1_p20080118.patch, +metadata.xml, - +openfoam-utilities-1.4.1_p20080118.ebuild: - New Ebuild for the OpenFOAM utilities - diff --git a/sci-libs/openfoam-utilities/Manifest b/sci-libs/openfoam-utilities/Manifest deleted file mode 100644 index 0743b583625b..000000000000 --- a/sci-libs/openfoam-utilities/Manifest +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -AUX OpenFOAM-1.5-ggi.patch 5907 RMD160 9a678e2fd7d36e862ffa1ed7e18aa4a073b77ea3 SHA1 2053a2e4e0c96500330b8ec233673391cb7487cf SHA256 e592d47ffee2fe9495378860932630936d5d838cf7290fb10d1e298986729b6c -DIST OpenFOAM-1.5-compile-2.patch.bz2 2939 RMD160 62e3e5b688a0a5e34f8406fdab0af6001df46f26 SHA1 d6b1ce5403ff173242b92521a2a5f446194c7b72 SHA256 9bcad542c35452271d80585e5dc174627791e33b5c2e089edfbceb0aa13c0bc1 -DIST OpenFOAM-1.5-svn.patch 4002548 RMD160 75b28c0c9c03b3e3886d0d90e8c631233d0734a2 SHA1 349e50a91095e0ff0e75b41f8eb8453623d5e4a8 SHA256 2a5872a4dbb8f58cb55b1ec64bcdc6f8e462ce2a541d21f1a8fc5faeb345d7d4 -DIST OpenFOAM-1.5.General.tgz 117334661 RMD160 bccaa9f8f99d31aa6c791d40b30dd9ad4f534041 SHA1 3577f562dc1f54bb32e1e0ef43f979418212c2f7 SHA256 d4cba2d9475523a53cea80b8d39da70d12bfffb9f46e2d1442946ba4a23efd31 -DIST OpenFOAM-git-1.5_p20090311.patch 711366 RMD160 ac9f6710aa9c92473068c18cf97ca2b25dc904e8 SHA1 068ade9111558adf4b2330e6acb5aabfe55f58fe SHA256 393ad127f9bd2cf6eb8826d65e2528d83ad8b6cceeab3de5ed04fb01746e3201 -EBUILD openfoam-utilities-1.5_p20090311.ebuild 2640 RMD160 7f4a065eda3c328118a7c2c7cab02549adf3c51e SHA1 de10721dfd02a9998aafc67e26655e2305611d27 SHA256 6304dc7c1c89068cb504e3df77a14c29cc8cd4530d2439c6a5e03c0d3cc9a224 -MISC ChangeLog 4432 RMD160 13a63ba464f0e4b90bc160b17b3809ecb21e5645 SHA1 74649e0ad84456f937793f4a59716e87897f5865 SHA256 42385e003cacc47f3c4ddf2a43a017c50ace0a1cd475bc826572f5b538f97df8 -MISC metadata.xml 342 RMD160 bba0c7eb3af0d1cd2322a40e86f4a80a0f48b6cf SHA1 7950d74b3d7d4fbe7167b487c5cd26559548b4ab SHA256 b57f05d81648f5a92cedd91c025852cb3bc5fc8d4ab4d110eb6886fc89e2ba97 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iEYEARECAAYFAkvUKHUACgkQgAnW8HDreRa6dACgqCQUAf2W2g4MYxyD9XRCRWtk -U5oAn2/LRAqfcPZpTW0ZgGln3tIlnBiD -=wwoV ------END PGP SIGNATURE----- diff --git a/sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch b/sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch deleted file mode 100644 index 1559050187ba..000000000000 --- a/sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch +++ /dev/null @@ -1,233 +0,0 @@ ---- OpenFOAM-1.5/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-01-21 13:25:35.000000000 +0100 -@@ -54,9 +54,14 @@ - : - public polyPatch - { -- // Private data -+protected: -+ -+ // Protected data -+ -+ // Alowing derived classes to create their own transformation -+ // HJ, 24/Oct/2008 - -- //- offset (distance) vector from one side of the couple to the other -+ //- Offset (distance) vector from one side of the couple to the other - mutable vectorField separation_; - - //- Face transformation tensor ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-01-21 13:25:37.000000000 +0100 -@@ -173,6 +173,11 @@ - mutable Field<PointType>* pointNormalsPtr_; - - -+ // Static Private Data -+ -+ static const bool nSquaredProjection_; -+ -+ - // Private Member Functions - - //- Calculate edges of the patch -@@ -412,6 +417,22 @@ - labelHashSet* setPtr = NULL - ) const; - -+ //- Write VTK patch, HJ, 14/Jan/2009 -+ static void writeVTK -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ -+ //- Write VTK patch normals, HJ, 14/Jan/2009 -+ static void writeVTKNormals -+ ( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+ ); -+ - - // Edit - ---- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-03-12 16:57:20.000000000 +0100 -+++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-01-21 13:25:37.000000000 +0100 -@@ -30,6 +30,7 @@ - #include "PrimitivePatch.H" - #include "Map.H" - #include "ListOps.H" -+#include "OFstream.H" - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -@@ -331,6 +332,166 @@ - } - - -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTK -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << points.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlpBuffer(3*points.size()); -+ -+ label counter = 0; -+ forAll (points, i) -+ { -+ mlpBuffer[counter++] = float(points[i].x()); -+ mlpBuffer[counter++] = float(points[i].y()); -+ mlpBuffer[counter++] = float(points[i].z()); -+ } -+ -+ forAll (mlpBuffer, i) -+ { -+ mps << mlpBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ -+ // Write faces -+ label nFaceVerts = 0; -+ -+ forAll (faces, faceI) -+ { -+ nFaceVerts += faces[faceI].size() + 1; -+ } -+ labelList mlfBuffer(nFaceVerts); -+ -+ counter = 0; -+ forAll (faces, faceI) -+ { -+ const Face& f = faces[faceI]; -+ -+ mlfBuffer[counter++] = f.size(); -+ -+ forAll (f, fpI) -+ { -+ mlfBuffer[counter++] = f[fpI]; -+ } -+ } -+ mps << nl; -+ -+ mps << "POLYGONS " << faces.size() << ' ' << nFaceVerts << endl; -+ -+ forAll (mlfBuffer, i) -+ { -+ mps << mlfBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ -+template -+< -+ class Face, -+ template<class> class FaceList, -+ class PointField, -+ class PointType -+> -+void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTKNormals -+( -+ const fileName& name, -+ const FaceListType& faces, -+ const Field<PointType>& points -+) -+{ -+ // Write patch and points into VTK -+ OFstream mps(name + ".vtk"); -+ -+ mps << "# vtk DataFile Version 2.0" << nl -+ << name << ".vtk" << nl -+ << "ASCII" << nl -+ << "DATASET POLYDATA" << nl -+ << "POINTS " << faces.size() << " float" << nl; -+ -+ // Write points -+ List<float> mlPointBuffer(3*faces.size()); -+ -+ label counter = 0; -+ forAll (faces, i) -+ { -+ const vector c = faces[i].centre(points); -+ -+ mlPointBuffer[counter++] = float(c.x()); -+ mlPointBuffer[counter++] = float(c.y()); -+ mlPointBuffer[counter++] = float(c.z()); -+ } -+ -+ forAll (mlPointBuffer, i) -+ { -+ mps << mlPointBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+ -+ // Write normals -+ mps << "POINT_DATA " << faces.size() << nl -+ << "FIELD attributes " << 1 << nl -+ << "normals" << " 3 " -+ << faces.size() << " float" << nl; -+ -+ List<float> mlNormalBuffer(3*faces.size()); -+ -+ counter = 0; -+ forAll (faces, i) -+ { -+ const vector n = faces[i].normal(points); -+ -+ mlNormalBuffer[counter++] = float(n.x()); -+ mlNormalBuffer[counter++] = float(n.y()); -+ mlNormalBuffer[counter++] = float(n.z()); -+ } -+ -+ forAll (mlNormalBuffer, i) -+ { -+ mps << mlNormalBuffer[i] << ' '; -+ -+ if (i > 0 && (i % 10) == 0) -+ { -+ mps << nl; -+ } -+ } -+ mps << nl; -+} -+ -+ - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - } // End namespace Foam diff --git a/sci-libs/openfoam-utilities/metadata.xml b/sci-libs/openfoam-utilities/metadata.xml deleted file mode 100644 index 199db2e8871c..000000000000 --- a/sci-libs/openfoam-utilities/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> - </maintainer> -<maintainer> - <email>oli.borm@web.de</email> - <name>Oliver Borm</name> -</maintainer> -</pkgmetadata> diff --git a/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild b/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild deleted file mode 100644 index aa35d3947180..000000000000 --- a/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild,v 1.2 2009/09/25 09:31:47 flameeyes Exp $ - -EAPI="2" - -inherit eutils versionator multilib toolchain-funcs - -MY_PN="OpenFOAM" -MY_PV=$(get_version_component_range 1-2) -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="OpenFOAM - utilities" -HOMEPAGE="http://www.opencfd.co.uk/openfoam/" -SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz - http://omploader.org/vMWRlMQ/${MY_PN}-git-${PVR}.patch - http://omploader.org/vMWRlMA/${MY_P}-svn.patch - mirror://gentoo/${MY_P}-compile-2.patch.bz2" - -LICENSE="GPL-2" -SLOT="1.5" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="!=sci-libs/openfoam-${MY_PV}* - !=sci-libs/openfoam-bin-${MY_PV}* - =sci-libs/openfoam-solvers-${MY_PV}*" -DEPEND="${RDEPEND} - >=sys-devel/gcc-4.1" - -S=${WORKDIR}/${MY_P} -INSDIR="/usr/$(get_libdir)/${MY_PN}/${MY_P}" - -pkg_setup() { - # just to be sure the right profile is selected (gcc-config) - if ! version_is_at_least 4.1 $(gcc-version) ; then - die "${PN} requires >=sys-devel/gcc-4.1 to compile." - fi -} - -src_prepare() { - epatch "${DISTDIR}"/${MY_P}-compile-2.patch.bz2 - epatch "${DISTDIR}"/${MY_P}-svn.patch - epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch - epatch "${FILESDIR}"/${MY_P}-ggi.patch - - chmod +x applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake -} - -src_compile() { - cp -a ${INSDIR}/etc/{bashrc,settings.sh} "${S}"/etc/. || die "cannot copy bashrc" - - # This is a hack, due to the meta ebuild: - sed -i -e "s|FOAM_LIB=\$WM_PROJECT_DIR/lib|FOAM_LIB=${INSDIR}/lib|" \ - -e "s|FOAM_LIBBIN=\$FOAM_LIB|FOAM_LIBBIN=\$WM_PROJECT_DIR/lib|" \ - -e "s|_foamAddLib \$FOAM_USER_LIBBIN|_foamAddLib \$FOAM_LIB|" \ - etc/settings.sh || die "could not replace paths" - - sed -i -e "s|-L\$(LIB_WM_OPTIONS_DIR)|-L\$(LIB_WM_OPTIONS_DIR) -L${INSDIR}/lib|" \ - wmake/Makefile || die "could not replace search paths" - - sed -i -e "s|(FOAM_LIBBIN)|(FOAM_LIB)|" applications/utilities/postProcessing/velocityField/{flowType,Pe,uprime,vorticity,enstrophy,Q,Co,Lambda2,Mach}/Make/options || die "cannot change LIB dir" - sed -i -e "s|(FOAM_LIBBIN)|(FOAM_LIB)|" applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options || die "cannot change LIB dir" - - export FOAM_INST_DIR="${WORKDIR}" - source etc/bashrc - - cd applications/utilities - wmake all || die "could not build OpenFOAM utilities" -} - -src_install() { - insopts -m0755 - insinto ${INSDIR}/applications/bin - doins -r applications/bin/* - - insinto ${INSDIR}/lib - doins -r lib/* -} |