[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: a/ispell dependency?

On Mon, Feb 04, 2002 at 11:35:48PM +0000, Daniel Glassey wrote:
> Hullo,
> I'm trying to get my package (gnomesword) to depend on aspell for all archs 
> that it builds on (all except mips and mipsel) and ispell for the others, but 
> I can't find what the syntax for this would be in policy or anywhere else.

> something like aspell [!mips && !mipsel], ispell [mips, mipsel]
> sounds right though that doesn't work

> I see other packages such as kate have used ispell | aspell, but what I want 
> is aspell in preference so that won't work.

Then simply reverse the order of the dependency:

Depends: aspell | ispell

If your package will automatically fall back to using ispell at runtime 
if aspell is unavailiable, then this is all you need; and unlike other 
solutions, it will automatically do the Right Thing regardless of the 
state of individual ports at any point in time.

Consider also the possibility of a user who might /prefer/ to use ispell 
instead of aspell, regardless of which port they're running.

Steve Langasek
postmodern programmer

Attachment: pgp3fc7HIimRp.pgp
Description: PGP signature

Reply to: