| Summary: | Ocaml Expat bindings (new ebuild) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Oscar Hellström <oscar> |
| Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | ml |
| Priority: | High | Keywords: | EBUILD |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Ebuild for ocaml-expat
Updated ebuild expat_example_tar.bz2 |
||
|
Description
Oscar Hellström
2007-01-29 19:20:44 UTC
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. |