[79190] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Sat Jun 4 13:07:28 PDT 2011


On Jun 4, 2011, at 15:03, robitaille at macports.org wrote:

> Revision: 79190
>          http://trac.macports.org/changeset/79190
> Author:   robitaille at macports.org
> Date:     2011-06-04 13:03:34 -0700 (Sat, 04 Jun 2011)
> Log Message:
> -----------
> py*-atpy: added variants for optional dependencies
> 
> Modified Paths:
> --------------
>    trunk/dports/python/py25-atpy/Portfile
>    trunk/dports/python/py26-atpy/Portfile
>    trunk/dports/python/py27-atpy/Portfile
> 
> Modified: trunk/dports/python/py25-atpy/Portfile
> ===================================================================
> --- trunk/dports/python/py25-atpy/Portfile	2011-06-04 19:32:14 UTC (rev 79189)
> +++ trunk/dports/python/py25-atpy/Portfile	2011-06-04 20:03:34 UTC (rev 79190)
> @@ -6,6 +6,7 @@
> 
> name                py25-atpy
> version             0.9.5.1
> +revision            1
> maintainers         robitaille
> 
> categories-append   science
> @@ -26,10 +27,36 @@
>                     sha1  f12afe0dc987886d5928aaee6f3662896c33e36a \
>                     rmd160  435d5dc7e5bd38bf2303d3dfa808be149e0a6f5f
> 
> -depends_run-append  port:py25-numpy \
> -                    port:py25-pyfits \
> -                    port:py25-h5py \
> -                    port:py25-vo \
> -                    port:py25-mysql \
> -                    port:py25-pygresql \
> -                    port:py25-asciitable
> +depends_run-append  port:py25-numpy
> +
> +variant fits description {Include support for FITS tables} {
> +    depends_run-append  port:py25-pyfits
> +}
> +
> +variant hdf5 description {Include support for HDF5 tables} {
> +    depends_run-append  port:py25-h5py
> +}
> +
> +variant vo description {Include support for VO tables} {
> +    depends_run-append  port:py25-vo
> +}
> +
> +variant ascii description {Include support for ASCII tables} {
> +    depends_run-append  port:py25-asciitable
> +}
> +
> +variant sql description {Include support for SQL databases} {
> +    depends_run-append  port:py25-mysql \
> +                        port:py25-pygresql
> +}
> +
> +variant all description {Include support for all input/output types (FITS, HDF5, VO, ASCII, and SQL)} {
> +    depends_run-append  port:py25-pyfits \
> +                        port:py25-h5py \
> +                        port:py25-vo \
> +                        port:py25-asciitable \
> +                        port:py25-mysql \
> +                        port:py25-pygresql
> +}

Instead of replicating the logic of all the other variants in the all variant, you should just make the all variant "require" the other variants.


variant all requires fits hdf5 vo ascii sql description {Include support for all input/output types (FITS, HDF5, VO, ASCII, and SQL)} {}






More information about the macports-dev mailing list