forked from OCamlPro/ocp-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocp-autoconf.config
230 lines (197 loc) · 5.92 KB
/
ocp-autoconf.config
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
(*************************************)
(* Never edit options files while *)
(* the program is running *)
(*************************************)
(* SECTION : Header *)
(* These options must be read first *)
(*************************************)
(* [project_name]: Project Name *)
project_name = "ocp-build"
(* [project_version]: Project Version *)
project_version = "1.99.21-beta"
(* [manage_files]: Files managed by ocp-autoconf in this project. *)
(* Note that 'autoconf' here means the *directory* autoconf, i.e. all files *)
(* in that directory. *)
manage_files = [
autoconf;
configure;
"build.ocp2";
opam;
".travis.yml";
"autoconf/travis-ci.sh";
"autoconf/travis-install.sh";
"push-opam.sh";
]
(* [project_copyright]: Project Copyright *)
project_copyright = "Copyright 2011-2016 OCamlPro SAS"
(* [ocaml_minimal_version]: Minimal version of OCaml *)
ocaml_minimal_version = "4.02.3"
(* [ocaml_unsupported_version]: Version of OCaml not yet supported *)
ocaml_unsupported_version = ""
(* [need_packages]: Packages (ocamlfind) needed by the project. *)
(* They can be specified as a list with items of the forms: *)
(* * "findlib" *)
(* * ("findlib", "version") *)
(* * { name="findlib" version="version" opam="package" } *)
(* The later form can be used to specify a different opam package name. *)
need_packages = [
"ocamlfind"
{ name = "cmdliner" version = ">=1.0" };
(* "parsexp"; mandatory only for jbuild2ocp *)
{ name = "re.glob" opam = "re" version = ">=1.7.3" };
]
(* [need_tools]: Tools needed by the project. Tested by ./configure. *)
need_tools = [
]
(* [optional_packages]: ocamlfind packages that could be used by the project *)
optional_packages = [
]
(* [need_modules]: Modules needed by the project *)
need_modules = [
]
(* [extra_config_files]: Extra files to be substituted. *)
(* Their paths should be related to the autoconf/ subdirectory. *)
extra_config_files = [
]
(* [extra_m4_files]: Extra m4 files to be added. *)
(* They will be copied in autoconf/m4/. *)
extra_m4_files = [
]
(* [extra_config_vars]: Extra variables to be substituted. *)
(* These variables will appear directly in autoconf/Makefile.config, *)
(* and as conf_xxx variables in autoconf/config.ocpgen, where xxx is *)
(* their lowercase translation. *)
extra_config_vars = [
HAS_BYTES;
]
(* [extra_bool_vars]: Extra variables to be substituted as boolean. Same as *)
(* extra_config_vars, but they will appear as booleans in *)
(* autoconf/config.ocpgen *)
extra_bool_vars = [
]
(* [need_ocamllex]: Does the project need ocamllex *)
need_ocamllex = true
(* [need_ocamlyacc]: Does the project need ocamlyacc *)
need_ocamlyacc = true
(* [opam_fields]: Fields of the 'opam' file to generate. *)
(* (other ones should come from the 'opam.trailer' file). *)
opam_fields = [
"opam-version";
maintainer;
authors;
homepage;
maintainer;
"dev-repo";
"bug-reports";
build;
install;
remove;
available;
depends;
]
(* [opam_maintainer]: Maintainer of the OPAM package *)
opam_maintainer = "Fabrice Le Fessant <[email protected]>"
(* [authors]: Authors *)
authors = [
"Fabrice Le Fessant <[email protected]>";
]
(* [homepage]: URL of project homepage *)
homepage = "http://www.typerex.org/ocp-build.html"
(* [github_project]: Name of the project on Github (Organization/Project). *)
(* Other fields can be inferred from this if left empty *)
github_project = "OCamlPro/ocp-build"
(* [dev_repo]: URL of public development repository. *)
(* If github_project is specified, the value is automatically inferred. *)
dev_repo = ""
(* [download_url_prefix]: Prefix of the download URL. *)
(* The download URL should be: *)
(* ${download_url_prefix}${package_version}.tar.gz. *)
(* If github_project is specified, the value is automatically inferred. *)
download_url_prefix = ""
(* [bug_reports]: URL where bug reports should be issued. *)
(* If github_project is specified, the value is automatically inferred. *)
bug_reports = ""
(* [opam_configure_line]: Line to appear in opam build instructions *)
opam_configure_line = [
"./configure";
"--prefix";
"%{prefix}%";
]
(* [opam_remove_commands]: Commands to call on OPAM remove *)
opam_remove_commands = [
[
rm;
"-f";
"%{prefix}%/bin/ocp-build";
];
[
rm;
"-f";
"%{prefix}%/bin/ocp-pp";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocp-build";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocplib-compat";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocplib-debug";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocplib-lang";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocplib-subcmd";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocplib-system";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/ocplib-unix";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/typerex/installed.ocp";
];
[
rm;
"-rf";
"%{prefix}%/lib/ocaml/site-ocp2/ocp-build";
];
[
sh;
"-exc";
"rmdir %{prefix}%/lib/ocaml/typerex || true";
];
]
(* [install_packages]: ocp-build packages to install and uninstall. *)
install_packages = [
]
(* [format_version]: Version of the format of this file *)
format_version = 5
(* [travis_versions]: Versions of OCaml to build on Travis. *)
travis_versions = [
system;
(* "3.12.1"; "4.01.0"; removed for no support for module aliases *)
(* "4.02.3"; problem with opam 1.2 *)
"4.03.0";
"4.04.0";
"4.05.0";
"4.06.1";
]