Revision
107495
Author
jmr@macports.org
Date
2013-07-01 08:45:44 -0700 (Mon, 01 Jul 2013)

Log Message

py*-hcluster: unify

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/dports/python/py-hcluster/Portfile (107476 => 107495)


--- trunk/dports/python/py26-hcluster/Portfile	2013-07-01 01:02:13 UTC (rev 107476)
+++ trunk/dports/python/py-hcluster/Portfile	2013-07-01 15:45:44 UTC (rev 107495)
@@ -2,12 +2,11 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-hcluster
+name                py-hcluster
 version             0.2.0
-categories          python
-maintainers         ucla.edu:jameskyle
+maintainers         jameskyle
 description         This library provides Python functions for agglomerative clustering.
 long_description    ${description} The interface is very similar to MATLAB's \
                     Statistics Toolbox API to make code easier to port from \
@@ -16,7 +15,6 @@
 homepage            http://code.google.com/p/scipy-cluster/
 
 platforms           darwin
-depends_lib-append  port:py26-numpy
 
 master_sites        googlecode:scipy-cluster
 
@@ -26,4 +24,9 @@
 
 distname            hcluster-${version}
 
-build.env           CCFLAGS="-I${prefix}/include -L${prefix}/lib"
+python.versions     25 26
+
+if {$subport ne $name} {
+    depends_lib-append  port:py${python.version}-numpy
+    build.env           CCFLAGS="-I${prefix}/include -L${prefix}/lib"
+}