jswhit committed:
> 
>===================================================================
> RCS file: /cvsroot/fink/dists/10.3/unstable/main/finkinfo/sci/fftw.info,v
> +Info2: <<
> +Package: fftw%type_pkg[-mpi]
> +Type: -mpi (boolean)
> +Conflicts: fftw-absoft, (%type_raw[-mpi] = -mpi) fftw, (%type_raw[-mpi] = .) 
> fftw-mpi
> +Replaces: fftw-absoft, (%type_raw[-mpi] = -mpi) fftw, (%type_raw[-mpi] = .) fftw-mpi

Packages automaticaly purge themselves from Conflicts and Replaces.
Instead of that conditionals mess, you can just:

  Conflicts: fftw-absoft, fftw, fftw-mpi
  Replaces: fftw-absoft, fftw, fftw-mpi

and fink will do What You Want to make fftw and fftw-mpi mutually
exclusive.

The Right Thing.

> +CompileScript: echo "No Compile Script"
> +InstallScript: <<
> + #!/bin/bash -ev
> + if [ "%type_raw[-mpi]" == "-mpi" ]; then
> +    ./configure %c --enable-mpi
> + else
> +    ./configure %c
> + fi
> + make install prefix=%i infodir=%i/share/info
> + make clean
> + if [ "%type_raw[-mpi]" == "-mpi" ]; then
> +    ./configure %c --enable-float --enable-altivec --enable-mpi
> + else
> +    ./configure %c --enable-float --enable-altivec
> + fi
> + make
> + make install prefix=%i infodir=%i/share/info

It seems strange that the compiling is done in InstallPhase. If there
are two independent sets of things being compiled here, perhaps it
should really be two separate packages?

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to