[96112] trunk/dports/python/py-spyder/Portfile

eborisch at macports.org eborisch at macports.org
Tue Jul 31 22:32:26 PDT 2012


Revision: 96112
          https://trac.macports.org/changeset/96112
Author:   eborisch at macports.org
Date:     2012-07-31 22:32:22 -0700 (Tue, 31 Jul 2012)
Log Message:
-----------
py27-spyder: Break dependencies out into variants. Enables smaller footprint install for those not interested in the 'heavier' features.

Modified Paths:
--------------
    trunk/dports/python/py-spyder/Portfile

Modified: trunk/dports/python/py-spyder/Portfile
===================================================================
--- trunk/dports/python/py-spyder/Portfile	2012-08-01 05:06:16 UTC (rev 96111)
+++ trunk/dports/python/py-spyder/Portfile	2012-08-01 05:32:22 UTC (rev 96112)
@@ -4,6 +4,7 @@
 PortSystem          1.0
 name                py-spyder
 version             2.1.11
+revision            1
 epoch               20111202
 
 PortGroup           python 1.0
@@ -78,20 +79,48 @@
             ${worksrcpath}/doc/conf.py
     }
 
+    # Bare minimum
     depends_lib-append  \
-        port:py${python.version}-h5py \
-        port:py${python.version}-htmldocs \
-        port:py${python.version}-ipython \
-        port:py${python.version}-lint \
-        port:py${python.version}-matplotlib \
-        port:py${python.version}-pep8 \
-        port:py${python.version}-pil \
-        port:py${python.version}-pyflakes \
         port:py${python.version}-pyqt4 \
-        port:py${python.version}-rope \
-        port:py${python.version}-scipy \
         port:py${python.version}-sphinx
     
+    variant tiny description {
+        Remove all optional dependencies for quickest install. Dependencies\
+        are detected/enabled at runtime and may be installed separately.
+    } conflicts small {}
+
+    variant small description {
+        Remove most optional dependencies for quicker install. Dependencies\
+        are detected/enabled at runtime and may be installed separately.
+    } conflicts tiny {}
+    
+    # These add very little to the install time
+    if {![ variant_isset tiny ]} {
+        depends_lib-append \
+            port:py${python.version}-htmldocs \
+            port:py${python.version}-lint \
+            port:py${python.version}-pep8 \
+            port:py${python.version}-pyflakes \
+            port:py${python.version}-rope
+    }
+
+    # These add substantially to the install time
+    if {![ variant_isset small ] &&
+        ![ variant_isset tiny  ] } {
+        depends_lib-append \
+            port:py${python.version}-h5py \
+            port:py${python.version}-ipython \
+            port:py${python.version}-matplotlib \
+            port:py${python.version}-scipy
+    }
+
+    variant pil description {
+       Support image objects in editor through PIL (many dependencies.)
+    } {
+        depends_lib-append \
+            port:py${python.version}-pil
+    }
+
     post-destroot {
         if {${python.version} == ${python.default_version}} {
           ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120731/7f6788a7/attachment.html>


More information about the macports-changes mailing list