Bug 82885 - New Port: devel/p5-Tree-Node
Summary: New Port: devel/p5-Tree-Node
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-02 05:30 UTC by Aaron Dalton
Modified: 2005-07-31 18:12 UTC (History)
0 users

See Also:


Attachments
submission.txt (2.74 KB, text/plain)
2005-07-02 05:30 UTC, Aaron Dalton
no flags Details
submission.txt (2.75 KB, text/plain)
2005-07-29 22:59 UTC, Aaron Dalton
no flags Details
submission.txt (2.74 KB, text/plain)
2005-07-31 16:22 UTC, Aaron Dalton
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Dalton 2005-07-02 05:30:16 UTC
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.
Comment 1 Aaron Dalton 2005-07-29 22:59:56 UTC
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
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2005-07-31 13:56:01 UTC
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.
Comment 3 Sergey Matveychuk freebsd_committer freebsd_triage 2005-07-31 13:56:07 UTC
State Changed
From-To: open->feedback

Wait for a feedback.
Comment 4 Aaron Dalton 2005-07-31 16:22:03 UTC
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
Comment 5 Sergey Matveychuk freebsd_committer freebsd_triage 2005-07-31 18:12:06 UTC
State Changed
From-To: feedback->closed

New port added, thanks!