From 652e7fd38f622838c40a83730be0734ce150ee03 Mon Sep 17 00:00:00 2001
From: Kirill Ponomarev <krion@FreeBSD.org>
Date: Fri, 21 May 2004 08:32:14 +0000
Subject: Add p5-Algorithm-Cluster 1.26,

This module is an interface to the C Clustering Library, a
general purpose library implementing functions for hierarchical
clustering (pairwise simple, complete, average, and centroid
linkage), along with k-means and k-medians clustering, and 2D
self-organizing maps. The library is distributed along with
Cluster 3.0, an enhanced version of the famous Cluster program
originally written by Michael Eisen while at Stanford
University. The C clustering library was written by Michiel de
Hoon.

PR:		ports/66970
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
---
 devel/Makefile                       |  1 +
 devel/p5-Algorithm-Cluster/Makefile  | 33 +++++++++++++++++++++++++++++++++
 devel/p5-Algorithm-Cluster/distinfo  |  2 ++
 devel/p5-Algorithm-Cluster/pkg-descr | 14 ++++++++++++++
 devel/p5-Algorithm-Cluster/pkg-plist |  7 +++++++
 5 files changed, 57 insertions(+)
 create mode 100644 devel/p5-Algorithm-Cluster/Makefile
 create mode 100644 devel/p5-Algorithm-Cluster/distinfo
 create mode 100644 devel/p5-Algorithm-Cluster/pkg-descr
 create mode 100644 devel/p5-Algorithm-Cluster/pkg-plist

diff --git a/devel/Makefile b/devel/Makefile
index ee8f18430ac8..f8d77425b7b0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -553,6 +553,7 @@
     SUBDIR += p4v
     SUBDIR += p5-Agent
     SUBDIR += p5-Algorithm-Annotate
+    SUBDIR += p5-Algorithm-Cluster
     SUBDIR += p5-Algorithm-Diff
     SUBDIR += p5-Algorithm-Evolutionary
     SUBDIR += p5-Algorithm-Interval2Prefix
diff --git a/devel/p5-Algorithm-Cluster/Makefile b/devel/p5-Algorithm-Cluster/Makefile
new file mode 100644
index 000000000000..ff2e00e3fd56
--- /dev/null
+++ b/devel/p5-Algorithm-Cluster/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for:	p5-Algorithm-Cluster
+# Date created:				Fri May 21 15:21:09 CST 2004
+# Whom:					Cheng-Lung Sung <clsung@dragon2.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	Algorithm-Cluster
+PORTVERSION=	1.26
+CATEGORIES=	devel perl5
+MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR=	Algorithm
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	clsung@dragon2.net
+COMMENT=	A perl interface to C clustering library
+
+PERL_CONFIGURE=	yes
+USE_REINPLACE=	yes
+
+MAN3=		Algorithm::Cluster.3
+
+post-patch:
+		@${REINPLACE_CMD} -e  \
+		"s|${PORTNAME}|Algorithm::Cluster|" ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+IGNORE=		This port requires perl 5.6.x or later. Install lang/perl5 then try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Algorithm-Cluster/distinfo b/devel/p5-Algorithm-Cluster/distinfo
new file mode 100644
index 000000000000..992326dc076b
--- /dev/null
+++ b/devel/p5-Algorithm-Cluster/distinfo
@@ -0,0 +1,2 @@
+MD5 (Algorithm-Cluster-1.26.tar.gz) = d53ddb38d374a7bcaa43f9879299796e
+SIZE (Algorithm-Cluster-1.26.tar.gz) = 65103
diff --git a/devel/p5-Algorithm-Cluster/pkg-descr b/devel/p5-Algorithm-Cluster/pkg-descr
new file mode 100644
index 000000000000..2cb5d3ca5d7f
--- /dev/null
+++ b/devel/p5-Algorithm-Cluster/pkg-descr
@@ -0,0 +1,14 @@
+This module is an interface to the C Clustering Library, a general 
+purpose library implementing functions for hierarchical clustering 
+(pairwise simple, complete, average, and centroid linkage), 
+along with k-means and k-medians clustering, and 2D self-organizing maps. 
+The library is distributed along with Cluster 3.0, an enhanced version 
+of the famous Cluster program originally written by Michael Eisen 
+while at Stanford University. The C clustering library was written 
+by Michiel de Hoon.
+
+This module is a Perl wrapper for the C clustering library for 
+cDNA microarray data, Copyright (C) 2002 Michiel Jan Laurens de Hoon.
+
+Author: John Nolan <jpnolan@sonic.net>
+WWW: http://search.cpan.org/search?dist=Algorithm-Cluster
diff --git a/devel/p5-Algorithm-Cluster/pkg-plist b/devel/p5-Algorithm-Cluster/pkg-plist
new file mode 100644
index 000000000000..f857472737fd
--- /dev/null
+++ b/devel/p5-Algorithm-Cluster/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Algorithm/Cluster.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Cluster/Cluster.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Cluster/Cluster.so
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Cluster/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Cluster
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Algorithm 2>/dev/null || true
-- 
cgit v1.2.3