Benjamin Place wrote:
On Dec 13, 2005, at 1:49 PM, Trevor Harmon wrote:

If I understand what you're asking, and GNAT is used *only* to build the program, and there is a GNAT package in Fink, you can simply add this line to the program's .info:

BuildDepends: gnat

Thanks for your response, Trevor.

I don't think there is a GNAT package in Fink, I looked on the Packages page and didn't find one. It seems to me that the GNAT Ada compiler is analogous to Apple's DevTools, so therefore GNAT would need to be represented in Fink by a virtual package.

My reading of Fink's dev docs makes me think that would be *hard*.

Is there another way? Is making a virtual package easier than I think?

No, it is not easy, because the virtual packages you are thinking of are coded as parts of the fink "kernel", not as actual packages.

But IMHO there is another legitimate possibility, more along the lines you were thinking of originally: I think you can just write a package for your project that checks at build time (and again at install time if there is a runtime depency) whether the macada.org compiler is installed. If it detects that this is not installed, it errors out and gives instructions on where to read about installing the macada compiler. The package DescUsage text would mention that you need to download and install the macada stuff first before trying to build or install your package and it would give links to instructions for doing so.

We already have examples of packages that depend on external stuff like specific commercial fortran compilers or parts of the developer tools that are not installed by default, and which manage their dependencies on these external components "by hand", not via virtual packages.

Creating a virtual package would only be justified if there were several packages using it.

Of course, creating a veritable ada package in Fink would be best, but it is a major task and not indispensable for what you are trying to do.

--
Martin




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to