Closed agarwal closed 9 years ago
Does the directory have to be exactly /usr/share/source-highlight
? That seems wrong and should be addressed in Camlhighlight. If the directory can be configured, it is possible to include data files under ~/.opam
.
I've brought up the issue on the Source-highlight mailing-list (waiting for reply). Source-highlight does accept data-dir configuration via an environment variable. However, it seems there is no way for multiple data-dirs to coexist simultaneously (local + system). Therefore, I'm considering an altogether different approach: basically, install sexp.outlang
under a $HOME/.opam
data directory and use a fully qualified path within Camlhighlight to fetch that specific file directly, instead of relying on generic data dirs.
Also, note that if you want to try Lambdoc's OPAM package before it hits the main repo, I've set up a custom repo at https://github.com/darioteixeira/opam-dario.git
Oh, one more thing: if you do try my OPAM repo, be sure to also add Ocsigen's dev repo. Eliom 4.0.0 requires Tyxml < 3.2, whereas Camlhighlight and Lambdoc require Tyxml >= 3.2. This means that if you intend to use Lambdoc in an Ocsigen application you'll need the dev versions -- that's the price one pays for being on the cutting edge...
be sure to also add Ocsigen's dev repo
Do they have a repo with the correct packages, or do I have to manually pin all of them? Thanks for the info. I'm hoping to give it all try.
@agarwal: Yes, do they have a repo, fortunately. See the instructions at http://ocsigen.org/install or just run opam repository add opamocsigen https://github.com/ocsigen/opam-ocsigen.git
Oops. I'm blind. I looked there and didn't see it. Thanks!
@agarwal: In the meantime I've released version 1.0-beta1 of Lambdoc and submitted the package to the main OPAM repo. It should be available any moment now...
Thanks.
@agarwal: You've read my mind, since on my agenda for today is packaging Lambdoc.... :-) There is a snag, however, since Lambdoc depends on Camlhighlight, and for proper installation the latter requires copying a file into a system directory (
/usr/share/source-highlight
) which is of course not writeable by the common user. I'll have to bring up the issue on the OPAM mailing list, as I'm not sure what's the kosher way to handle this.Also, I'm finishing porting and cleaning up the contents of Lambdoc's
examples
directory. Once that's done, I can make a proper (beta) release of Lambdoc.