This module implements a memory-efficient node type (for trees, skip lists and similar data structures) for Perl. You may ask "Why bother implementing an ordered structure such as a tree when Perl has hashes built-in?" Since Perl is optimized for speed over memory usage, hashes (and lists) use a lot of memory. So the purpose of this package is to provide a simple low-level Node class which can be used as a base class to implement various kinds of tree structures. Each node has a key/value pair and a variable number of "children" pointers. How nodes are organized or the algorithm used to organize them is for you to implement. There is no Pure-perl version because this package was written to overcome limitations of Perl.
The base Perl module has been updated since this port was originally submitted. Below is the updated shell archive. Aaron # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Tree-Node # p5-Tree-Node/Makefile # p5-Tree-Node/distinfo # p5-Tree-Node/pkg-descr # p5-Tree-Node/pkg-plist # echo c - p5-Tree-Node mkdir -p p5-Tree-Node > /dev/null 2>&1 echo x - p5-Tree-Node/Makefile sed 's/^X//' >p5-Tree-Node/Makefile << 'END-of-p5-Tree-Node/Makefile' X# New ports collection makefile for: p5-Tree-Node X# Date created: 01 July 2005 X# Whom: Aaron Dalton <aaron@daltons.ca> X# X# $FreeBSD$ X# X XPORTNAME= Tree-Node XPORTVERSION= 0.06 XCATEGORIES= devel perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Tree XPKGNAMEPREFIX= p5- X XMAINTAINER= aaron@daltons.ca XCOMMENT= Memory-efficient tree nodes in Perl X XPERL_CONFIGURE= yes X XMAN3= Tree::Node.3 X X.include <bsd.port.mk> END-of-p5-Tree-Node/Makefile echo x - p5-Tree-Node/distinfo sed 's/^X//' >p5-Tree-Node/distinfo << 'END-of-p5-Tree-Node/distinfo' XMD5 (Tree-Node-0.06.tar.gz) = 667894c4e717e7f4f609e31c1db69aac XSIZE (Tree-Node-0.06.tar.gz) = 50886 END-of-p5-Tree-Node/distinfo echo x - p5-Tree-Node/pkg-descr sed 's/^X//' >p5-Tree-Node/pkg-descr << 'END-of-p5-Tree-Node/pkg-descr' XThis module implements a memory-efficient node type (for trees, skip lists Xand similar data structures) for Perl. X XYou may ask "Why bother implementing an ordered structure such as a tree Xwhen Perl has hashes built-in?" Since Perl is optimized for speed over Xmemory usage, hashes (and lists) use a lot of memory. X XSo the purpose of this package is to provide a simple low-level Node class Xwhich can be used as a base class to implement various kinds of tree Xstructures. Each node has a key/value pair and a variable number of X"children" pointers. X XHow nodes are organized or the algorithm used to organize them is for you Xto implement. X XThere is no Pure-perl version because this package was written to overcome Xlimitations of Perl. X XWWW: http://search.cpan.org/dist/Tree-Node/ XAuthor: Robert Rothenberg <rrwo@cpan.org> X X- Aaron Dalton Xaaron@daltons.ca END-of-p5-Tree-Node/pkg-descr echo x - p5-Tree-Node/pkg-plist sed 's/^X//' >p5-Tree-Node/pkg-plist << 'END-of-p5-Tree-Node/pkg-plist' X%%SITE_PERL%%/%%PERL_ARCH%%/Tree/Node.pm X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tree/Node/.packlist X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tree/Node/Node.bs X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tree/Node/Node.so X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tree/Node X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tree 2>/dev/null || true X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Tree 2>/dev/null || true X END-of-p5-Tree-Node/pkg-plist exit
cp Node.bs blib/arch/auto/Tree/Node/Node.bs chmod 644 blib/arch/auto/Tree/Node/Node.bs Manifying blib/man3/Tree::Node.3 /usr/local/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build Too early to specify a build action 'Build'. Do 'Build Build' instead. *** Error code 255 Stop in /usr/build/spool/prs/p5-Tree-Node/work/Tree-Node-0.06. *** Error code 1 Stop in /spool/prs/p5-Tree-Node. -- Sem.
State Changed From-To: open->feedback Wait for a feedback.
Sorry for the oversight. I have changed the Makefile to PERL_MODBUILD instead of _CONFIGURE. Odd that I didn't receive that same error when I built the port. Anyway, attached is the new shell archive. If you have any further problems, let me know. Sorry again for the bother! Cheers! Aaron
State Changed From-To: feedback->closed New port added, thanks!