opam-version: "2.0" authors: "Hugues Cassé " homepage: "https://github.com/BinaryAnalysisPlatform/FrontC" bug-reports: "https://github.com/BinaryAnalysisPlatform/FrontC/issues" dev-repo: "git+https://github.com/BinaryAnalysisPlatform/FrontC" maintainer: "Ivan Gotovchits " license: "LGPL-2.1-only" depends: [ "ocaml" ] patches: ["fix-cmxs-cmx.patch"] build: [ [make "PREFIX=%{lib}%" "OCAML_SITE=%{lib}%"] ] install: [ [make "install" "PREFIX=%{lib}%" "OCAML_SITE=%{lib}%"] ["cp" "META" "%{lib}%/FrontC"] ] synopsis: "Library providing a C parser and lexer" description: """ FrontC is an OCAML library providing a C parser and lexer. The result is a syntactic tree easy to process with usual OCAML tree management. It provides support for ANSI C syntax, old-C K&R style syntax and the standard GNU CC attributes. It provides also a C pretty printer as an example of use.""" url { src: "https://github.com/BinaryAnalysisPlatform/FrontC/archive/refs/tags/v3.4.3.tar.gz" checksum: [ "sha256=b96098bc56008e4239e571bb4e7407ac3b83be1c89bf945e2048063f9a5e528c" "md5=399f66735541ecf8e06220618eef5c98" ] mirrors: "https://mirrors.aegis.cylab.cmu.edu/bap/FrontC/v3.4.3.tar.gz" } extra-source "fix-cmxs-cmx.patch" { src: "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/FrontC/fix-cmxs-cmx.patch" checksum: [ "sha256=44f1845b21cb04d050e57201fd295721321db375776e5da57644aa751892a539" "md5=c1adc4cd6bcfe4939c3290683eaea33b" ] } extra-source "FrontC.install" { src: "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/FrontC/FrontC.install" checksum: [ "sha256=501dee92dc12ec57e4f34b5e5e15ee9630cb47c0c3f5219d6172a450c3495224" "md5=c56e698d092d18179f9458f311c56412" ] }