You've already forked OpenUxAS-bootstrap
mirror of
https://github.com/AdaCore/OpenUxAS-bootstrap.git
synced 2026-02-12 13:07:23 -08:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
import os
|
|
from e3.fs import sync_tree
|
|
from e3.os.fs import unixpath
|
|
from e3.anod.loader import spec
|
|
from e3.anod.spec import Anod
|
|
|
|
|
|
class Boost(spec('common')):
|
|
"""Boost provides free peer-reviewed portable C++ source libraries."""
|
|
|
|
@property
|
|
def build_deps(self):
|
|
return [Anod.Dependency('compiler')]
|
|
|
|
@property
|
|
def build_source_list(self):
|
|
return [Anod.Source(name='boost_1_68_0.tar.bz2',
|
|
publish=True)]
|
|
|
|
@property
|
|
def source_pkg_build(self):
|
|
return [
|
|
self.HTTPSSourceBuilder(
|
|
name='boost_1_68_0.tar.bz2',
|
|
url='https://dl.bintray.com/boostorg/release/1.68.0/source/'
|
|
'boost_1_68_0.tar.bz2')]
|
|
|
|
@Anod.primitive()
|
|
def build(self):
|
|
bootstrap_args = [os.environ['SHELL'], './bootstrap.sh',
|
|
'--prefix=%s' % unixpath(self['INSTALL_DIR']),
|
|
'--without-icu',
|
|
'--with-libraries=filesystem,system,regex,date_time']
|
|
self.shell(*bootstrap_args, cwd=self['SRC_DIR'])
|
|
if self.env.build.os.name == 'darwin':
|
|
toolset = 'darwin'
|
|
else:
|
|
toolset = 'gcc'
|
|
self.shell(os.path.join(self['SRC_DIR'], 'b2'),
|
|
'link=static',
|
|
'toolset=%s' % toolset, 'cxxstd=11',
|
|
'install', cwd=self['SRC_DIR'])
|
|
sync_tree(os.path.join(self['INSTALL_DIR'], 'lib'),
|
|
os.path.join(self['INSTALL_DIR'], 'lib64'), delete=True)
|