|
40 | 40 | from spack import * |
41 | 41 |
|
42 | 42 | # |
43 | | -# omniORB 4.1.7 de ATT tres legerement retouche pour qu'il puisse s'installe dans |
| 43 | +# omniORB 4.1.7 de ATT tres legerement retouche pour qu'il puisse s'installe dans |
44 | 44 | # un environnement spack (de base il y a un probleme de shebang ...) |
45 | 45 | # |
| 46 | + |
| 47 | + |
46 | 48 | class OmniorbAnl(AutotoolsPackage): |
47 | 49 | """ORB de ATT""" |
48 | 50 |
|
49 | | - homepage = "" |
50 | | - url = "omniorb-anl-4.1.7.tar.gz" |
| 51 | + homepage = "" |
| 52 | + url = "omniorb-anl-4.1.7.tar.gz" |
51 | 53 | maintainers = ['meshing_team'] |
52 | 54 | version('4.1.7', sha256='3f42d97cb0344afb25c3b203ec874ad3d2ea944ea75a16bcb5e084c66273691d') |
53 | 55 | version('4.3.0.1', sha256="9a33c5ba83f3c8a0fc5e7f30ad10acea9923b1787c50feb6c0b20cbee64f8e85") |
54 | 56 |
|
55 | | - # On a besoin de 2.7 <= python < 3.0.0 : |
| 57 | + # On a besoin de 2.7 <= python < 3.0.0 : |
56 | 58 | depends_on('python', type=('build', 'link', 'run')) |
57 | 59 |
|
58 | 60 | def configure_args(self): |
59 | 61 | # FIXME: Add arguments other than --prefix |
60 | 62 | # FIXME: If not needed delete this function |
61 | | - args = [] |
62 | | - py = self.spec['python'] |
63 | | - args.append (f'PYTHON={py.command.path}') |
64 | | - if self.spec.satisfies ('@4.2.99:') : |
65 | | - args.append ('CXXFLAGS=-std=c++11') |
66 | | - |
| 63 | + args = [] |
| 64 | + py = self.spec['python'] |
| 65 | + args.append(f'PYTHON={py.command.path}') |
| 66 | + if self.spec.satisfies('@4.2.99:'): |
| 67 | + args.append('CXXFLAGS=-std=c++11') |
| 68 | + |
67 | 69 | return args |
68 | 70 |
|
69 | 71 | # Positionnement de l'environnement PYTHON nécéssaire sous RedHat 7/Spack Organizer master 200923 |
70 | | - def setup_build_environment (self, env): |
71 | | - py = self.spec['python'] |
72 | | - env.set ('PYTHON', py.command.path) |
| 72 | + def setup_build_environment(self, env): |
| 73 | + py = self.spec['python'] |
| 74 | + env.set('PYTHON', py.command.path) |
73 | 75 |
|
74 | | - def setup_run_environment (self, env): |
75 | | - py = self.spec['python'] |
76 | | - env.set ('PYTHON', py.command.path) |
| 76 | + def setup_run_environment(self, env): |
| 77 | + py = self.spec['python'] |
| 78 | + env.set('PYTHON', py.command.path) |
0 commit comments