jon.recoil.org

Module OpamFile.CompSource

Compiler version $opam/compilers/. Deprecated, only used to upgrade old data

include OpamFile.IO_FILE
Sourcetype t

File contents

Sourceval format_version : OpamVersion.t

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.

Sourceval read_from_string : ?filename:OpamFile.Comp.t OpamFile.typed_file -> string -> OpamFile.Comp.t
Sourceval write_to_channel : ?filename:OpamFile.Comp.t OpamFile.typed_file -> Stdlib.out_channel -> OpamFile.Comp.t -> unit
Sourceval write_to_string : ?filename:OpamFile.Comp.t OpamFile.typed_file -> OpamFile.Comp.t -> string
Sourcetype compiler = string
Sourcetype compiler_version = string

Create a pre-installed compiler description file

Sourceval preinstalled : OpamFile.Comp.t -> bool

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

Sourceval patches : OpamFile.Comp.t -> OpamTypes.url list

Return the list of patches to apply

Sourceval configure : OpamFile.Comp.t -> string list

Options to give to the "./configure" command

Sourceval make : OpamFile.Comp.t -> string list

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

Environment variable to set-up before running commands in the subtree

Sourceval tags : OpamFile.Comp.t -> string list
Sourceval with_configure : string list -> OpamFile.Comp.t -> OpamFile.Comp.t
Sourceval with_make : string list -> OpamFile.Comp.t -> OpamFile.Comp.t

Converts 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.