Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 164443

Summary: Ocaml Expat bindings (new ebuild)
Product: Gentoo Linux Reporter: Oscar Hellström <oscar>
Component: New packagesAssignee: 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
Expat bindings for Objective Caml

Reproducible: Always
Comment 1 Oscar Hellström 2007-01-29 19:22:24 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?
Comment 2 Alexandre Buisse (RETIRED) gentoo-dev 2007-01-29 19:44:06 UTC
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?
Comment 3 Oscar Hellström 2007-01-29 20:04:19 UTC
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.
Comment 4 Oscar Hellström 2007-01-29 20:08:20 UTC
Created attachment 108518 [details]
Updated ebuild

Updated the ebuild based on comments
Comment 5 Oscar Hellström 2007-01-29 20:41:18 UTC
Created attachment 108524 [details]
expat_example_tar.bz2

Very small example of using OCaml Expat bindings...
Comment 6 Alexandre Buisse (RETIRED) gentoo-dev 2007-02-06 21:28:21 UTC
And this one found its way into the tree as well.

Thanks.