[opam-devel] Conditional build instructions for pinned packages

Anil Madhavapeddy anil at recoil.org
Thu Jul 4 10:44:45 BST 2013


Having some constraints to indicate a pinned package (or a development remote as opposed to an archive) seems reasonable.  Could you create a bug about this on the tracker?

-anil

On 2 Jul 2013, at 16:53, Daniel Bünzli <daniel.buenzli at erratique.ch> wrote:

> Hello, 
> 
> I'd like to make my released opam packages pinable with their corresponding git repos. 
> 
> For that I need to invoke a special script *only whenever* I build from a git checkout. This script prepares the sources, injects the right version number so that ocamlfind correctly identifies the installed version and generates the oasis artefacts:
> 
> build: [
> ["devel/pkg-opam-git-setup" ] { WHAT CAN I WRITE HERE }
> ["ocaml" "setup.ml" "-configure" "--prefix" "%{prefix}%" ]
> ["ocaml" "setup.ml" "-build"]
> ["ocaml" "setup.ml" "-install"]
> 
> ]
> 
> So for "WHAT CAN I WRITE HERE" is it possible to either test for `devel/pkg-opam-git-setup` existence (it is not in the release tarballs) or is there some kind of special variable to test that indicates a pinned status ? 
> 
> Thanks, 
> 
> Daniel
> 
> 
> _______________________________________________
> opam-devel mailing list
> opam-devel at lists.ocaml.org
> http://lists.ocaml.org/listinfo/opam-devel
> 



More information about the opam-devel mailing list