From 705fc971df2baa4dd9a5440eed0ece2ca1f08d11 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Fri, 27 Aug 2004 09:32:45 +0000 Subject: Add p5-AI-Pathfinding-AStar 0.02, Perl implementation of the A* pathfinding algorithm. PR: ports/71014 Submitted by: Aaron Dalton --- devel/p5-AI-Pathfinding-AStar/Makefile | 31 +++++++++++++++++++++++++++++++ devel/p5-AI-Pathfinding-AStar/distinfo | 2 ++ devel/p5-AI-Pathfinding-AStar/pkg-descr | 10 ++++++++++ devel/p5-AI-Pathfinding-AStar/pkg-plist | 7 +++++++ 4 files changed, 50 insertions(+) create mode 100644 devel/p5-AI-Pathfinding-AStar/Makefile create mode 100644 devel/p5-AI-Pathfinding-AStar/distinfo create mode 100644 devel/p5-AI-Pathfinding-AStar/pkg-descr create mode 100644 devel/p5-AI-Pathfinding-AStar/pkg-plist (limited to 'devel/p5-AI-Pathfinding-AStar') diff --git a/devel/p5-AI-Pathfinding-AStar/Makefile b/devel/p5-AI-Pathfinding-AStar/Makefile new file mode 100644 index 000000000000..6de7ddec0b89 --- /dev/null +++ b/devel/p5-AI-Pathfinding-AStar/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: AI::Pathfinding::AStar +# Date created: 26 August 2004 +# Whom: Aaron Dalton +# +# $FreeBSD$ +# + +PORTNAME= AI-Pathfinding-AStar +PORTVERSION= 0.02 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= AI +PKGNAMEPREFIX= p5- + +MAINTAINER= aaron@daltons.ca +COMMENT= Perl implementation of the A* pathfinding algorithm + +BUILD_DEPENDS= ${SITE_PERL}/Heap/Simple.pm:${PORTSDIR}/devel/p5-Heap-Simple +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= AI::Pathfinding::AStar.3 + +.include + +.if ${PERL_LEVEL} < 500600 +IGNORE= Uses devel/p5-Heap-Simple, which requires perl5.6, install lang/perl5 or lang/perl5.8 +.endif + +.include diff --git a/devel/p5-AI-Pathfinding-AStar/distinfo b/devel/p5-AI-Pathfinding-AStar/distinfo new file mode 100644 index 000000000000..0bf9901d7bf4 --- /dev/null +++ b/devel/p5-AI-Pathfinding-AStar/distinfo @@ -0,0 +1,2 @@ +MD5 (AI-Pathfinding-AStar-0.02.tar.gz) = 679867a36718f5c9a6bb7bd2d6a28994 +SIZE (AI-Pathfinding-AStar-0.02.tar.gz) = 4697 diff --git a/devel/p5-AI-Pathfinding-AStar/pkg-descr b/devel/p5-AI-Pathfinding-AStar/pkg-descr new file mode 100644 index 000000000000..1d651280f34a --- /dev/null +++ b/devel/p5-AI-Pathfinding-AStar/pkg-descr @@ -0,0 +1,10 @@ +This module implements the A* pathfinding algorithm. It acts as a base class +from which a custom map object can be derived. It requires from the map object +a subroutine named "getSurrounding" and provides to the object a routine called +"findPath" which calculates the shortest (ie. least-expensive) path between two +nodes. + +WWW: http://search.cpan.org/dist/AI-Pathfinding-AStar/ + +- Aaron Dalton +aaron@daltons.ca diff --git a/devel/p5-AI-Pathfinding-AStar/pkg-plist b/devel/p5-AI-Pathfinding-AStar/pkg-plist new file mode 100644 index 000000000000..6691273a0070 --- /dev/null +++ b/devel/p5-AI-Pathfinding-AStar/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/AI/Pathfinding/AStar.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/AI/Pathfinding/AStar/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/AI/Pathfinding/AStar +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/AI/Pathfinding 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/AI 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/AI/Pathfinding 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/AI 2>/dev/null || true -- cgit v1.2.3