Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Petter A. Urkedal" <paurkedal@gmail.com>
To: Helmut Brandl <helmut.brandl@gmx.net>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Preparing a project for opam
Date: Sun, 8 Jan 2017 00:46:13 +0100	[thread overview]
Message-ID: <CALa9pHSV8Rs2RekooTJ323--kALVftSQ1AX-vbvvn1q9y9H9rA@mail.gmail.com> (raw)
In-Reply-To: <e9293b65-fc37-153b-22a8-86cc56018ac8@gmx.net>

On 8 January 2017 at 00:38, Helmut Brandl <helmut.brandl@gmx.net> wrote:
> Hello list,
>
> I am trying to prepare my project to being published via opam. I have pinned
> my project to a local version on my harddisk and generated and opam file
> which opam can build successfully.
>
> Now I am struggling with the "install" section of the opam file.
>
> For building I use ocamlbuild which builds a native executable file in the
> source directory (to be precise in the _build subdirectory of the source
> directory). Installing just means copying this executable into a directory
> which is in the search path. I have achieved this by copying the executable
> directly to ".opam/system/bin". However I am not sure if this is the
> recommended way since somebody else might have chosen another directory name
> and path on where to store ".opam".
>
> Is there a portable way to do this? Thanks for any hint.

Yes, take a look at the "package-name.install" section in
http://opam.ocaml.org/doc/Manual.html.  You can then drop the install
section from the opam file, and it also saves you from maintaining a
corresponding removal script, as opam will keep track of what gets
installed.

  reply	other threads:[~2017-01-07 23:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-07 23:38 Helmut Brandl
2017-01-07 23:46 ` Petter A. Urkedal [this message]
2017-01-07 23:46 ` Anton Bachin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALa9pHSV8Rs2RekooTJ323--kALVftSQ1AX-vbvvn1q9y9H9rA@mail.gmail.com \
    --to=paurkedal@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=helmut.brandl@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox