diff options
author | tobez <tobez@FreeBSD.org> | 2005-10-24 16:28:28 +0800 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2005-10-24 16:28:28 +0800 |
commit | 68fdb37ebc292f998240652749020f3a04869381 (patch) | |
tree | d8d681732994c23377ccc6c8141a51b97b9a98fc /math | |
parent | 01186aaa3e69cdb47c289af5bd1e1d2b78fb2f9d (diff) | |
download | freebsd-ports-gnome-68fdb37ebc292f998240652749020f3a04869381.tar.gz freebsd-ports-gnome-68fdb37ebc292f998240652749020f3a04869381.tar.zst freebsd-ports-gnome-68fdb37ebc292f998240652749020f3a04869381.zip |
Add math/p5-Math-ConvexHull 1.00, a Perl module to calculate convex
hulls using Graham's scan (n*log(n)).
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/p5-Math-ConvexHull/Makefile | 28 | ||||
-rw-r--r-- | math/p5-Math-ConvexHull/distinfo | 2 | ||||
-rw-r--r-- | math/p5-Math-ConvexHull/pkg-descr | 9 | ||||
-rw-r--r-- | math/p5-Math-ConvexHull/pkg-plist | 5 |
5 files changed, 45 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 023fff5a7fed..20b5b373f266 100644 --- a/math/Makefile +++ b/math/Makefile @@ -160,6 +160,7 @@ SUBDIR += p5-Math-BigRat SUBDIR += p5-Math-Calc-Units SUBDIR += p5-Math-Combinatorics + SUBDIR += p5-Math-ConvexHull SUBDIR += p5-Math-Currency SUBDIR += p5-Math-Derivative SUBDIR += p5-Math-Expr diff --git a/math/p5-Math-ConvexHull/Makefile b/math/p5-Math-ConvexHull/Makefile new file mode 100644 index 000000000000..2193bbbb0e02 --- /dev/null +++ b/math/p5-Math-ConvexHull/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: math/p5-Math-ConvexHull +# Date created: 24 October 2005 +# Whom: Anton Berezin <tobez@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Math-ConvexHull +PORTVERSION= 1.00 +CATEGORIES= math perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Math +PKGNAMEPREFIX= p5- + +MAINTAINER= tobez@FreeBSD.org +COMMENT= Calculate convex hulls using Graham's scan (n*log(n)) + +PERL_CONFIGURE= yes + +MAN3= Math::ConvexHull.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again +.endif + +.include <bsd.port.post.mk> diff --git a/math/p5-Math-ConvexHull/distinfo b/math/p5-Math-ConvexHull/distinfo new file mode 100644 index 000000000000..47564de14654 --- /dev/null +++ b/math/p5-Math-ConvexHull/distinfo @@ -0,0 +1,2 @@ +MD5 (Math-ConvexHull-1.00.tar.gz) = b3b5ccbdbf3094ac7ae96dd763981636 +SIZE (Math-ConvexHull-1.00.tar.gz) = 3124 diff --git a/math/p5-Math-ConvexHull/pkg-descr b/math/p5-Math-ConvexHull/pkg-descr new file mode 100644 index 000000000000..05a3a5b4bab6 --- /dev/null +++ b/math/p5-Math-ConvexHull/pkg-descr @@ -0,0 +1,9 @@ +Math::ConvexHull is a simple module that calculates convex hulls from a +set of points in 2D space. It is a straightforward implementation of the +algorithm known as Graham's scan which, with complexity of O(n*log(n)), +is the fastest known method of finding the convex hull of an arbitrary +set of points. There are some methods of eliminating points that cannot +be part of the convex hull. These may or may not be implemented in a +future version. + +WWW: http://search.cpan.org/dist/Math-ConvexHull/ diff --git a/math/p5-Math-ConvexHull/pkg-plist b/math/p5-Math-ConvexHull/pkg-plist new file mode 100644 index 000000000000..ff11bfdaa509 --- /dev/null +++ b/math/p5-Math-ConvexHull/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/Math/ConvexHull.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/ConvexHull/.packlist +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/ConvexHull 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Math 2>/dev/null || true |