Hi,
I would like to import devel/rust-bindgen, a cli utility to generate
Rust interface from C (or some C++) headers.
It is using llvm to read/parse C files (libclang.so).
The library is loaded at runtime, but the binary doesn't automatically
find it (/usr/local/llvmXX/lib path isn't a standard one). So I moved
the binary to libexec and created a small shell wrapper to autodetect
the library path. It is still possible to manually override the library
path using environment variable.
I didn't set any devel/llvm version in RUN_DEPENDS as it is working with
all versions (so I don't force installing a specific version).
It could be done differently if requested.
All tests are passing (tested on amd64).
Comments or OK ?
--
Sebastien Marie
No comments:
Post a Comment