This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
forked from conda-forge/boost-cpp-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 3
/
meta.yaml
196 lines (181 loc) · 8 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{% set version = "1.65.1" %}
{% set win_vstr = "1_65_1" %}
{% set filename = "boost_%s.tar.bz2" % version.replace(".", "_") %}
package:
name: libboost_multiple_outputs
version: {{ version }}
source:
url: https://dl.bintray.com/boostorg/release/{{ version }}/source/{{ filename }}
sha256: 9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81
patches:
# https://svn.boost.org/trac10/attachment/ticket/11120/python_jam.patch
- python_jam.patch
# https://github.com/boostorg/build/issues/230
- case-insensitive-env-vars.patch
# https://github.com/boostorg/build/pull/227
# - more-msvc-fixes.patch
# https://github.com/boostorg/build/pull/{226,227} (a more complete version of both)
- 0001-fix-non-c90-lines.patch
- 0002-CONDA_BUILD-customization.patch
- 0003-boost.python-fix-python-lib-config-dirname.patch
build:
number: 4
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- icu # [unix]
- bzip2 # [unix]
- zlib
outputs:
- name: libboost
script: install-libboost.sh # [unix]
script: install-libboost.bat # [win]
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- icu # [unix]
- bzip2 # [unix]
- zlib
test:
commands:
# Verify b2 and bjam executables work
- b2 --help
- bjam --help
# Verify Python headers are removed.
- "! test -f $PREFIX/include/boost/python.hpp" # [unix]
- "! test -d $PREFIX/include/boost/python" # [unix]
- if exist %PREFIX%\\Library\\include\\boost\\python.hpp exit 1 # [win]
- if exist %PREFIX%\\Library\\include\\boost\\python exit 1 # [win]
# Verify static-only libraries.
- test -f $PREFIX/lib/libboost_exception.a # [unix]
- test -f $PREFIX/lib/libboost_test_exec_monitor.a # [unix]
# Verify libraries.
{% set boost_libs = [
"atomic",
"chrono",
"container",
"context",
"coroutine",
"date_time",
"filesystem",
"graph",
"iostreams",
"locale",
"log",
"log_setup",
"math_c99",
"math_c99f",
"math_c99l",
"math_tr1",
"math_tr1f",
"math_tr1l",
"prg_exec_monitor",
"program_options",
"random",
"regex",
"serialization",
"signals",
"system",
"thread",
"timer",
"type_erasure",
"unit_test_framework",
"wave",
"wserialization"
] %}
{% for each_boost_lib in boost_libs %}
- test -f $PREFIX/lib/libboost_{{ each_boost_lib }}.a # [unix]
- test -f $PREFIX/lib/libboost_{{ each_boost_lib }}.dylib # [osx]
- test -f $PREFIX/lib/libboost_{{ each_boost_lib }}.so # [linux]
- if not exist %PREFIX%\\Library\\bin\\boost_{{ each_boost_lib }}-vc90-mt-{{ win_vstr }}.dll exit 1 # [win and py27]
- if not exist %PREFIX%\\Library\\bin\\boost_{{ each_boost_lib }}-vc100-mt-{{ win_vstr }}.dll exit 1 # [win and py34]
- if not exist %PREFIX%\\Library\\bin\\boost_{{ each_boost_lib }}-vc140-mt-{{ win_vstr }}.dll exit 1 # [win and py35]
- if not exist %PREFIX%\\Library\\lib\\boost_{{ each_boost_lib }}-vc90-mt-{{ win_vstr }}.lib exit 1 # [win and py27]
- if not exist %PREFIX%\\Library\\lib\\boost_{{ each_boost_lib }}-vc100-mt-{{ win_vstr }}.lib exit 1 # [win and py34]
- if not exist %PREFIX%\\Library\\lib\\boost_{{ each_boost_lib }}-vc140-mt-{{ win_vstr }}.lib exit 1 # [win and py35]
{% endfor %}
- conda inspect linkages -p $PREFIX libboost # [not win]
- conda inspect objects -p $PREFIX libboost # [osx]
- name: py-boost
script: install-py-boost.sh # [unix]
script: install-py-boost.bat # [win]
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- {{ pin_subpackage('libboost', exact=True) }}
- python
- numpy
run:
- {{ pin_subpackage('libboost', exact=True) }}
- python
- {{ pin_compatible('numpy') }}
test:
source_files: libs/python/example/*
requires:
- {{ compiler('c') }} # [not win]
- {{ compiler('cxx') }} # [not win]
commands:
- pushd libs/python/example/tutorial # [not win]
- bjam --debug --debug-configuration # [not win]
- python -c 'from __future__ import print_function; import hello_ext; print(hello_ext.greet())' # [not win]
- popd # [not win]
# verify Python headers
- test -f $PREFIX/include/boost/python.hpp # [unix]
- test -d $PREFIX/include/boost/python # [unix]
- if not exist %LIBRARY_INC%\\boost\\python.hpp exit 1 # [win]
- if not exist %LIBRARY_INC%\\boost\\python exit 1 # [win]
# Verify libraries.
{% set py_boost_libs = [
"python",
"numpy"
] %}
{% for each_py_boost_lib in py_boost_libs %}
- test -f $PREFIX/lib/libboost_{{ each_py_boost_lib }}.a # [unix and py27]
- test -f $PREFIX/lib/libboost_{{ each_py_boost_lib }}3.a # [unix and py >= 35]
- test -f $PREFIX/lib/libboost_{{ each_py_boost_lib }}.dylib # [osx]
- test -f $PREFIX/lib/libboost_{{ each_py_boost_lib }}3.dylib # [osx and py >=35]
- test -f $PREFIX/lib/libboost_{{ each_py_boost_lib }}.so # [linux]
- test -f $PREFIX/lib/libboost_{{ each_py_boost_lib }}3.so # [linux and py >= 35]
- if not exist %PREFIX%\\Library\\bin\\boost_{{ each_py_boost_lib }}-vc90-mt-{{ win_vstr }}.dll exit 1 # [win and py27]
- if not exist %PREFIX%\\Library\\bin\\boost_{{ each_py_boost_lib }}3-vc140-mt-{{ win_vstr }}.dll exit 1 # [win and py >= 35]
- if not exist %PREFIX%\\Library\\lib\\boost_{{ each_py_boost_lib }}-vc90-mt-{{ win_vstr }}.lib exit 1 # [win and py27]
- if not exist %PREFIX%\\Library\\lib\\boost_{{ each_py_boost_lib }}3-vc140-mt-{{ win_vstr }}.lib exit 1 # [win and py >= 35]
{% endfor %}
- conda inspect linkages -p $PREFIX py-boost # [not win]
- conda inspect objects -p $PREFIX py-boost # [osx]
# Metapackages to mirror conda-forge's name. It is my goal to deprecate
# these names and eventually stop providing the packages.
# TODO :: Aim to remove these by Oct 10th 2018.
- name: boost-cpp
requirements:
build:
- {{ compiler('c') }}
run:
- {{ pin_subpackage('libboost', exact=True) }}
- name: boost
requirements:
host:
- python
run:
- {{ pin_subpackage('libboost', exact=True) }}
- {{ pin_subpackage('py-boost', exact=True) }}
- python
about:
home: http://www.boost.org/
license: Boost-1.0
summary: Free peer-reviewed portable C++ source libraries.
extra:
recipe-maintainers:
- ccordoba12
- isuruf
- jakirkham
- jschueller
- mingwandroid
- msarahan
- ocefpaf