Expat bindings for Objective Caml Reproducible: Always
Created attachment 108509 [details] Ebuild for ocaml-expat Don't know how to do with use flags. There is a choice to build byte-code or native code or both. Right now there is only a use-flag for adding the native code. Is there a policy for OCaml programs?
Yes, we just assume that everyone has ocamlopt, so we always build with native code. Two minor remarks: - "( use foo ) && bar" is deprecated, one should use "if use foo ; then bar fi" instead - we don't install LICENSE, since it's already in /usr/portage/license Also, the tradition is to put the '{' on the same line than the function name. Do you have an example of a program which uses this library, so I can give it a quick test?
Not sure about any program that uses it, developing that atm, but with a few more deps. http://www.cduce.org/ seems to use it, but has quite a few dependencies. I could create a tarball with a small OCaml program that links to ocaml-expat.
Created attachment 108518 [details] Updated ebuild Updated the ebuild based on comments
Created attachment 108524 [details] expat_example_tar.bz2 Very small example of using OCaml Expat bindings...
And this one found its way into the tree as well. Thanks.