Module OpamFile.CompSource
Compiler version $opam/compilers/. Deprecated, only used to upgrade old data
include OpamFile.IO_FILE
File contents
Empty file
Write some contents to a file
Read file contents.
Returns None on non-existing file
Read file contents. Return empty if the file does not exist.
val read_from_channel :
?filename:OpamFile.Comp.t OpamFile.typed_file ->
Stdlib.in_channel ->
OpamFile.Comp.tval read_from_string :
?filename:OpamFile.Comp.t OpamFile.typed_file ->
string ->
OpamFile.Comp.tval write_to_channel :
?filename:OpamFile.Comp.t OpamFile.typed_file ->
Stdlib.out_channel ->
OpamFile.Comp.t ->
unitval write_to_string :
?filename:OpamFile.Comp.t OpamFile.typed_file ->
OpamFile.Comp.t ->
stringval create_preinstalled :
OpamFile.Comp.compiler ->
OpamFile.Comp.compiler_version ->
OpamTypes.name list ->
(OpamTypes.spf_unresolved, OpamTypes.euok_writeable) OpamTypes.env_update
list ->
OpamFile.Comp.tCreate a pre-installed compiler description file
Is it a pre-installed compiler description file
Get OPAM version
Return the compiler name
Return the compiler version
Return the url of the compiler
Return the list of patches to apply
Options to give to the "./configure" command
Options to give to the "make" command
Options to give to build the package. If this one is provided, nothing should be specified for configure and make.
Packages to install immediately after the creation of OCaml
val env :
OpamFile.Comp.t ->
(OpamTypes.spf_unresolved, OpamTypes.euok_writeable) OpamTypes.env_update
listEnvironment variable to set-up before running commands in the subtree
val to_package :
?package:OpamTypes.package ->
OpamFile.Comp.t ->
OpamFile.Descr.t option ->
OpamFile.OPAM.tConverts a compiler definition to package metadata. For compat. If package is unspecified, a package named "ocaml" is created for "standard" compilers (when the compiler name doesn't contain a "+" and is equal to the compiler version); otherwise, a package "ocaml-VARIANT" is created with "VARIANT" the part of the compiler name on the right of the "+". In both case, the version corresponds to the OCaml version and is version comp.