intel-xed package: add versions 2019.03.01 and develop (#10987)
Also add conflicts for PPC
This commit is contained in:
parent
e5b86c5527
commit
675bb23431
@ -16,17 +16,41 @@ class IntelXed(Package):
|
|||||||
homepage = "https://intelxed.github.io/"
|
homepage = "https://intelxed.github.io/"
|
||||||
git = "https://github.com/intelxed/xed.git"
|
git = "https://github.com/intelxed/xed.git"
|
||||||
|
|
||||||
version('2018.02.14', commit='44d06033b69aef2c20ab01bfb518c52cd71bb537')
|
# The version name and git commit hashes for the main xed repo and
|
||||||
|
# the mbuild resource. Xed doesn't have official releases, only
|
||||||
|
# git commits.
|
||||||
|
|
||||||
|
version_list = [
|
||||||
|
('2019.03.01',
|
||||||
|
'b7231de4c808db821d64f4018d15412640c34113',
|
||||||
|
'176544e1fb54b6bfb40f596111368981d287e951',
|
||||||
|
),
|
||||||
|
('2018.02.14',
|
||||||
|
'44d06033b69aef2c20ab01bfb518c52cd71bb537',
|
||||||
|
'bb9123152a330c7fa1ff1a502950dc199c83e177',
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
version('develop', branch='master')
|
||||||
resource(name='mbuild',
|
resource(name='mbuild',
|
||||||
git='https://github.com/intelxed/mbuild.git',
|
git='https://github.com/intelxed/mbuild.git',
|
||||||
commit='bb9123152a330c7fa1ff1a502950dc199c83e177',
|
branch='master', destination='',
|
||||||
destination='')
|
when='@develop')
|
||||||
|
|
||||||
variant('debug', default=False, description='enable debug symbols')
|
for (vers, xed_hash, mbuild_hash) in version_list:
|
||||||
|
version(vers, commit=xed_hash)
|
||||||
|
resource(name='mbuild',
|
||||||
|
git='https://github.com/intelxed/mbuild.git',
|
||||||
|
commit=mbuild_hash, destination='',
|
||||||
|
when='@{0}'.format(vers))
|
||||||
|
|
||||||
|
variant('debug', default=False, description='Enable debug symbols')
|
||||||
|
|
||||||
depends_on('python@2.7:', type='build')
|
depends_on('python@2.7:', type='build')
|
||||||
|
|
||||||
|
conflicts('target=ppc64', msg='intel-xed only runs on x86')
|
||||||
|
conflicts('target=ppc64le', msg='intel-xed only runs on x86')
|
||||||
|
|
||||||
mycflags = []
|
mycflags = []
|
||||||
|
|
||||||
# Save CFLAGS for use in install.
|
# Save CFLAGS for use in install.
|
||||||
@ -53,7 +77,7 @@ def install(self, spec, prefix):
|
|||||||
# If an optimization flag (-O...) is specified in CFLAGS, use
|
# If an optimization flag (-O...) is specified in CFLAGS, use
|
||||||
# that, else set default opt level.
|
# that, else set default opt level.
|
||||||
for flag in self.mycflags:
|
for flag in self.mycflags:
|
||||||
if len(flag) >= 2 and flag[0:2] == '-O':
|
if flag.startswith('-O'):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
args.append('--opt=2')
|
args.append('--opt=2')
|
||||||
|
Loading…
Reference in New Issue
Block a user