Subject: Re: conditional PLIST?
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Rasputin <rasputin@idoru.mine.nu>
List: tech-pkg
Date: 07/14/2003 12:10:04
* Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de> [0708 12:08]:
> On Mon, 14 Jul 2003, Rasputin wrote:
> > If rubyunit isn't installed, it'll create a compatibility library for it
> > and install thhat, otherwise it leaves well alone.
> >
> > I've fixedthis by adding rubyunit to DEPENDS, but that seems like
> > a bit of laziness. Is it possible to dynamically creata PLIST?
> > Couldn't find an explanation in Packages.txt, are there packages that
> > do this I can crib from?
>
> You can either create $PLIST from $PLIST_SRC on your own, or just tell
> the system to add a few more lines (from a second file) if you find
> rubyunit installed at build time, see pkgsrc/audio/nas and others for an
> example.
>
> Problem with that approach is that it won't work properly with binary
> pkgs. I suggest you add a dependency on rubyunit, unless it adds too much
> bloat. In that case, disable support for rubyunit unconditionally.
I think I'll go for that option; a lot of the online docs still refer
to rubyunit so I want to play nicely with it.
--
Every solution breeds new problems.
Rasputin :: Jack of All Trades - Master of Nuns