From 3c83758fd227515c5d49daa1ece66c0951946595 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sun, 21 Nov 2004 20:56:57 +0000 Subject: Add petsc 2.2.1, portable, Extensible Toolkit for Scientific computation. --- .../files/patch-python::PETSc::packages::X11.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 math/petsc/files/patch-python::PETSc::packages::X11.py (limited to 'math/petsc/files/patch-python::PETSc::packages::X11.py') diff --git a/math/petsc/files/patch-python::PETSc::packages::X11.py b/math/petsc/files/patch-python::PETSc::packages::X11.py new file mode 100644 index 000000000000..3ecac3113c25 --- /dev/null +++ b/math/petsc/files/patch-python::PETSc::packages::X11.py @@ -0,0 +1,27 @@ +--- python/PETSc/packages/X11.py.orig Wed Sep 22 02:45:51 2004 ++++ python/PETSc/packages/X11.py Sat Oct 2 00:27:14 2004 +@@ -26,7 +26,7 @@ + import nargs + help.addArgument('X11', '-with-x=', nargs.ArgBool(None, 1, 'Activate X11')) + help.addArgument('X11', '-with-x-include=', nargs.ArgDir(None, None, 'Specify an include directory for X11')) +- help.addArgument('X11', '-with-x-lib=', nargs.Arg(None, None, 'Specify X11 library file')) ++ help.addArgument('X11', '-with-x-library=', nargs.Arg(None, None, 'Specify X11 library file')) + return + + def generateGuesses(self): +@@ -123,6 +123,7 @@ + if not os.path.isdir(self.framework.argDB['with-x-include']): + raise RuntimeError('Invalid X include directory specified by --with-x-include='+os.path.abspath(self.framework.argDB['with-x-include'])) + includeDir = self.framework.argDB['with-x-include'] ++ foundInclude = 1 + else: + testInclude = 'X11/Intrinsic.h' + +@@ -144,6 +145,7 @@ + if not os.path.isfile(self.framework.argDB['with-x-library']): + raise RuntimeError('Invalid X library specified by --with-x-library='+os.path.abspath(self.framework.argDB['with-x-library'])) + libraryDir = os.path.dirname(self.framework.argDB['with-x-library']) ++ foundLibrary = 1 + else: + testLibrary = 'Xt' + testFunction = 'XtMalloc' -- cgit v1.2.3