Support for bazel (#2023)

* Add package bazel

* Add support for bazel-based builds
This commit is contained in:
Eric
2016-10-18 16:46:42 +02:00
committed by Todd Gamblin
parent 4c2af4f888
commit 306eea5e59
5 changed files with 379 additions and 1 deletions

View File

@@ -116,6 +116,10 @@ def install(self, spec, prefix):
# FIXME: Add additional dependencies if required.
depends_on('scons', type='build')""",
'bazel': """\
# FIXME: Add additional dependencies if required.
depends_on('bazel', type='build')""",
'python': """\
extends('python')
@@ -164,6 +168,10 @@ def install(self, spec, prefix):
scons('prefix={0}'.format(prefix))
scons('install')""",
'bazel': """\
# FIXME: Add logic to build and install here.
bazel()""",
'python': """\
# FIXME: Add logic to build and install here.
setup_py('install', '--prefix={0}'.format(prefix))""",
@@ -238,7 +246,8 @@ def __call__(self, stage, url):
(r'/CMakeLists.txt$', 'cmake'),
(r'/SConstruct$', 'scons'),
(r'/setup.py$', 'python'),
(r'/NAMESPACE$', 'R')
(r'/NAMESPACE$', 'R'),
(r'/WORKSPACE$', 'bazel')
]
# Peek inside the compressed file.