diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2017-11-14 18:29:22 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2017-11-14 18:29:22 +0000 |
commit | e22be4275b28feef47fadb345f20b1551e722ff6 (patch) | |
tree | 3240c7f42a18bbaf5d1d69daafd6507d8ef13366 /french/aster/files/patch-as_setup.py | |
parent | devel/py-python-gist: Update to 0.6.0 (diff) |
Upgrade - endly! - to Code_Aster 13.4.0-3.
Notes:
- I have (not yet) succeeded to enable MFront in this version;
- it uses math/mumps-edf, repocopied from math/mumps;
- cad/scotch is now taken out of the aster tarball;
- french/eficas is no more used: to be replaced by "aster-study" in Salome_Meca
(the port cad/salome should be resurrected!)
Notes
Notes:
svn path=/head/; revision=454187
Diffstat (limited to 'french/aster/files/patch-as_setup.py')
-rw-r--r-- | french/aster/files/patch-as_setup.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/french/aster/files/patch-as_setup.py b/french/aster/files/patch-as_setup.py index 0836f467c458..ed00e8f64ef9 100644 --- a/french/aster/files/patch-as_setup.py +++ b/french/aster/files/patch-as_setup.py @@ -1,4 +1,4 @@ ---- as_setup.py.orig 2016-09-07 08:44:22 UTC +--- as_setup.py.orig 2017-08-26 13:56:41 UTC +++ as_setup.py @@ -45,6 +45,8 @@ import tarfile import compileall @@ -17,7 +17,7 @@ self._print(self._fmt_title % _('Extraction')) if kargs.get('external')<>None: self._call_external(**kargs) -@@ -518,6 +521,60 @@ class SETUP: +@@ -518,6 +521,76 @@ class SETUP: if iextr_as: self.Clean(to_delete=path) @@ -73,6 +73,22 @@ + if nl > 0: + ligne =ligne.replace("'hdf5'", "'hdf5-18'") + sys.stdout.write(ligne) ++ file2patch = os.path.join(self.workdir, self.content, 'waf') ++ self._print('FreeBSD patch: /bin/bash => modify ' + file2patch) ++ for ligne in fileinput.input(file2patch, inplace=1): ++ nl = 0 ++ nl = string.find(ligne, "/bin/bash") ++ if nl > 0: ++ ligne =ligne.replace("/bin/bash", " %%LOCALBASE%%/bin/bash") ++ sys.stdout.write(ligne) ++ file2patch = os.path.join(self.workdir, self.content, 'waftools/mathematics.py') ++ self._print('FreeBSD patch: nproc => gnproc ' + file2patch) ++ for ligne in fileinput.input(file2patch, inplace=1): ++ nl = 0 ++ nl = string.find(ligne, "'nproc'") ++ if nl > 0: ++ ligne =ligne.replace("'nproc'", "'gnproc'") ++ sys.stdout.write(ligne) + # End of FreeBSD patches + #------------------------------------------------------------------------------- |