Even with that variant, gnutar will still be available under the name gnutar, so you can always run gnutar without worrying about whether you have that variant or not. The variant just adds symlinks for everything.
Regards, Kristofer On Thu, Jul 2, 2009 at 2:54 PM, Darren Weber<[email protected]> wrote: > > > On Wed, Jul 1, 2009 at 3:57 PM, Joshua Root <[email protected]> wrote: >> >> On 2009-7-2 07:16, Darren Weber wrote: >> > >> > I need to test if the system has a tar version between 1.14 and 1.14.90, >> > what is the best way to do this in tcl? >> >> Toby has answered your question, but it seems like you'd be better off >> just depending on gnutar rather than messing around doing different >> things for different tar versions. >> >> - Josh > > > Yes, so a dependency on gnutar is an option, but what if it's installed with > the variant, > > with_default_names: Install files without 'gnu' prefix > > I suppose then the script has to check for the right command - tar or gnutar > - and if it uses tar there will have to be a check for the version of tar > that's called (or at least a check for `which tar` to confirm that it's > $prefix/bin/tar). > > Thanks, > Darren > > > _______________________________________________ > macports-dev mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev > > _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
