[120913] trunk/dports/science/lscsoft-deps/Portfile

Ryan Schmidt ryandesign at macports.org
Wed Jun 11 07:57:26 PDT 2014


On Jun 11, 2014, at 9:46 AM, ram at macports.org wrote:

> Revision
> 120913
> Author
> ram at macports.org
> Date
> 2014-06-11 07:46:31 -0700 (Wed, 11 Jun 2014)
> Log Message
> 
> science/lscsoft-deps: add variants to fine tune dependencies
> Modified Paths
> 
> 	• trunk/dports/science/lscsoft-deps/Portfile


> +variant glue description {Include dependencies for glue development} {
> +  depends_run-append port:python27 \
> +                     port:py27-numpy \
> +                     port:py27-pyrxp \
> +                     port:py27-m2crypto \
> +                     port:py27-cjson \
> +                     port:py27-pyxmpp \
> +                     port:py27-libxml2 \
> +                     port:py27-m2crypto \
> +                     port:py27-dnspython
> +}
> +
> +variant lalsuite requires glue description {Include dependencies for LALSuite development} {
> +  depends_run-append port:pkgconfig \
> +                     port:swig \
> +                     port:swig-python \
> +                     port:python27 \
> +                     port:py27-numpy \
> +                     port:py27-healpy \
> +                     port:gsl \
> +                     port:fftw-3 \
> +                     port:fftw-3-single \
> +                     port:libframe \
> +                     port:metaio \
> +                     port:libxml2 \
> +                     path:lib/pkgconfig/glib-2.0.pc:glib2 \
> +                     port:healpix-c
> +}
> +
> +variant pylal requires glue lalsuite description {Include dependencies for pyLAL development} {
> +  depends_run-append port:python27 \
> +                     port:pkgconfig \
> +                     port:py27-numpy \
> +                     port:py27-scipy \
> +                     port:py27-matplotlib \
> +                     port:py27-matplotlib-basemap
> +}
> +
> +variant gstlal requires glue lalsuite pylal description {Include dependencies for gstlal development} {
> +  depends_run-append port:orc \
> +                     port:gstreamer010 \
> +                     port:gstreamer010-gst-plugins-base \
> +                     port:gstreamer010-gst-plugins-good \
> +                     port:py27-gobject \
> +                     port:py27-gst-python
> +}

The variants that require the glue variant needn't (and indeed shouldn't) repeat dependencies already declared in the glue variant. Doing so causes the dependencies to be repeated in port info output:


$ port info lscsoft-deps
lscsoft-deps @20140611 (science)
Variants:             [+]glue, [+]gstlal, [+]lalsuite, [+]pylal

Description:          This is a meta-port that depends on all the ports
                      needed for developing Software used within the LIGO
                      Scientific Collaboration.
Homepage:             http://www.lsc-group.phys.uwm.edu/daswg

Runtime Dependencies: git, autoconf, automake, libtool, python27,
                      py27-numpy, py27-pyrxp, py27-m2crypto, py27-cjson,
                      py27-pyxmpp, py27-libxml2, py27-m2crypto,
                      py27-dnspython, pkgconfig, swig, swig-python,
                      python27, py27-numpy, py27-healpy, gsl, fftw-3,
                      fftw-3-single, libframe, metaio, libxml2, glib2,
                      healpix-c, python27, pkgconfig, py27-numpy,
                      py27-scipy, py27-matplotlib, py27-matplotlib-basemap,
                      orc, gstreamer010, gstreamer010-gst-plugins-base,
                      gstreamer010-gst-plugins-good, py27-gobject,
                      py27-gst-python
Platforms:            darwin
License:              unknown
Maintainers:          ram at macports.org, aronnax at macports.org


Note how e.g. "python27" appears three times in the runtime dependencies.



More information about the macports-dev mailing list