comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: How to nicely distribute a simple Ada library?
Date: Sun, 04 Dec 2011 22:04:57 +0000
Date: 2011-12-04T22:04:57+00:00	[thread overview]
Message-ID: <m2mxb8at86.fsf@pushface.org> (raw)
In-Reply-To: slrnjdmlq0.1lme.lithiumcat@sigil.instinctive.eu

Natasha Kerensikova <lithiumcat@gmail.com> writes:

> I gather that packaging systems have their own way to perform the
> installation, but how can I provide an installation mechanism that
> does not depend on a distribution? I would rather avoid automess
> tools, they feel extremely overkill compared to the simplicity and
> presumed portability of my libraries. I can write a `make install` in
> pure makefile language, but is there another more idiomatic way of
> doing it?  What about windows or mac platforms?

I don't have access to other compilers than GNAT, but for GNAT (GPL and
FSF) I do try to support Linux and Windows/Cygwin as well as Mac OS X.

I've put a small writeup from the user point of view at [1]. This is a
work in progress.

One thing I personally find helpful is to install alongside the
compiler, because I have more than one installed (at the moment, GCC
4.6.0 and GNAT GPL 2011). The source may be compiler-agnostic, but the
object and ali files certainly aren't. Also, this saves the bother of
specifying the ADA_PROJECT_PATH.

There are at least 2 ways of doing this with GNAT. One is the way that
GNAT GPL and FSF GCC use, which is that the GPR is found in
$prefix/lib/gnat/, source in $prefix/include/$package/ and objects in
$prefix/lib/$package/. The other is the way that Debian uses (see the
Policy).

[1] http://booch95.sourceforge.net/installation.html



  parent reply	other threads:[~2011-12-04 22:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04 11:19 How to nicely distribute a simple Ada library? Natasha Kerensikova
2011-12-04 12:06 ` Dmitry A. Kazakov
2011-12-05 11:55   ` Yannick Duchêne (Hibou57)
2011-12-05 11:58   ` Yannick Duchêne (Hibou57)
2011-12-05 13:31     ` Dmitry A. Kazakov
2011-12-05 14:11       ` Yannick Duchêne (Hibou57)
2011-12-05 15:22         ` Georg Bauhaus
2011-12-05 15:51           ` Yannick Duchêne (Hibou57)
2011-12-05 17:50             ` Dmitry A. Kazakov
2011-12-05 15:24         ` Dmitry A. Kazakov
2011-12-06  0:22   ` Randy Brukardt
2011-12-06  6:27     ` J-P. Rosen
2011-12-08  7:47       ` Randy Brukardt
2011-12-08 10:17         ` Ludovic Brenta
2011-12-09  0:00           ` Randy Brukardt
2011-12-09  8:42             ` Ludovic Brenta
2011-12-06  8:57   ` Ludovic Brenta
2011-12-06  9:47     ` Dmitry A. Kazakov
2011-12-06 10:13       ` Ludovic Brenta
2011-12-08 15:53   ` Yannick Duchêne (Hibou57)
2011-12-08 18:34     ` Dmitry A. Kazakov
2011-12-04 12:28 ` Ludovic Brenta
2011-12-04 14:39 ` Georg Bauhaus
2011-12-08 10:18   ` Natasha Kerensikova
2011-12-08 11:28     ` Ludovic Brenta
2011-12-08 14:00     ` Robert A Duff
2011-12-08 15:37       ` Georg Bauhaus
2011-12-04 17:42 ` Jeffrey Carter
2011-12-04 20:25 ` Tero Koskinen
2011-12-04 22:04 ` Simon Wright [this message]
2011-12-05 11:53 ` Yannick Duchêne (Hibou57)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox