Index: head/science/py-hcluster/Makefile =================================================================== --- head/science/py-hcluster/Makefile (revision 396894) +++ head/science/py-hcluster/Makefile (revision 396895) @@ -1,21 +1,28 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= hcluster PORTVERSION= 0.2.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= science python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Hierarchical Clustering Package For Scipy +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + BUILD_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:${PORTSDIR}/math/py-matplotlib RUN_DEPENDS:= ${BUILD_DEPENDS} USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_hierarchy_wrap.so + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_distance_wrap.so .include Index: head/science/py-hcluster/files/patch-setup.py =================================================================== --- head/science/py-hcluster/files/patch-setup.py (revision 396894) +++ head/science/py-hcluster/files/patch-setup.py (revision 396895) @@ -1,12 +1,12 @@ ---- setup.py.orig 2008-12-14 21:42:50.000000000 +0800 -+++ setup.py 2008-12-14 21:43:35.000000000 +0800 -@@ -33,7 +33,8 @@ +--- setup.py.orig 2008-12-14 09:19:42 UTC ++++ setup.py +@@ -33,7 +33,8 @@ if len(valid_paths) > 1: print string.join(l, '\n') # Prompt the user with a list of selections. while not (s >= 1 and s <= len(valid_paths)): - s = input('Selection [default=1]:') +# s = input('Selection [default=1]:') + s=1 if s == '': s = 1 else: Index: head/science/py-hcluster/pkg-descr =================================================================== --- head/science/py-hcluster/pkg-descr (revision 396894) +++ head/science/py-hcluster/pkg-descr (revision 396895) @@ -1,14 +1,14 @@ py-hcluster library provides Python functions for agglomerative clustering. Its features include * generating hierarchical clusters from distance matrices * computing distance matrices from observation vectors * computing statistics on clusters * cutting linkages to generate flat clusters * and visualizing clusters with dendrograms. The interface is very similar to MATLAB's Statistics Toolbox API to make code easier to port from MATLAB to Python/Numpy. The core implementation of this library is in C for efficiency. -WWW: http://code.google.com/p/scipy-cluster/ +WWW: http://code.google.com/p/scipy-cluster/