ports/61633: New Port: databases/p5-T2, Object Relational mapping system.

Scott McWhirter scott at surreytech.co.uk
Tue Jan 20 15:01:36 UTC 2004


>Number:         61633
>Category:       ports
>Synopsis:       New Port: databases/p5-T2, Object Relational mapping system.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 20 07:00:33 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Scott McWhirter
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
Surrey Technologies Ltd.	
>Environment:
System: FreeBSD stcws002.stc.surreytech.co.uk 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 root at freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386
>Description:
  New Port: databases/p5-T2 0.06
    Object Relation Mapping System
>How-To-Repeat:
  N/A
>Fix:

--- p5-T2.shar begins here ---
# 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-T2
#	p5-T2/distinfo
#	p5-T2/pkg-descr
#	p5-T2/Makefile
#	p5-T2/files
#	p5-T2/files/patch-Makefile.PL
#	p5-T2/pkg-plist
#
echo c - p5-T2
mkdir -p p5-T2 > /dev/null 2>&1
echo x - p5-T2/distinfo
sed 's/^X//' >p5-T2/distinfo << 'END-of-p5-T2/distinfo'
XMD5 (T2-0.06.tar.gz) = ee1ef478629ffb1bbb690a0391141a8a
END-of-p5-T2/distinfo
echo x - p5-T2/pkg-descr
sed 's/^X//' >p5-T2/pkg-descr << 'END-of-p5-T2/pkg-descr'
XThe T2 module is a base for the refactoring of the now quite stable
XTangram Object-Relational mapper.
X
XIn a nutshell, it lets you store objects - which have to be described to a
Xsimilar level that you would describe a database to store them - into any
XSQL store. Currently, this is tested on PostgreSQL, MySQL, Oracle and
XSybase a lot, though in general database-specific extensions to SQL, such
Xas triggers, stored procedures, etc are avoided. So, if DBI installs and
Xtests successfully with your database, there is a good chance that T2 will
Xwork with it too.
X
XThe only current requirement is that objects that have tables associated
Xwith them are implemented via hashes. You also have to be able to describe
Xall of the fields for those root objects. Individual fields of stored
Xobjects may be arbitrarily complex.
X
XIf you are familiar with DBI, it is somewhat similar to bless'ing the
Xstructures returned by $dbh->fetchrow_hashref, except that references and
Xcollections to other objects in the store are loaded `on demand' (aka
XLazy-loading).
X
XWWW: http://search.cpan.org/dist/T2/
END-of-p5-T2/pkg-descr
echo x - p5-T2/Makefile
sed 's/^X//' >p5-T2/Makefile << 'END-of-p5-T2/Makefile'
X# New ports collection makefile for:	p5-T2
X# Date created:	   			19 January 2004
X# Whom:		   			Scott McWhirter <scott at surreytech.co.uk>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	T2
XPORTVERSION=	0.06
XCATEGORIES=	databases perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR= Tangram/SAMV	
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER= 	scott at surreytech.co.uk
XCOMMENT= 	Object Relational mapping system
X
XBUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Set/Object.pm:${PORTSDIR}/devel/p5-Set-Object \
X		${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple \
X		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
X		${SITE_PERL}/Tangram.pm:${PORTSDIR}/databases/p5-Tangram \
X		${SITE_PERL}/Class/Tangram.pm:${PORTSDIR}/devel/p5-Class-Tangram
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
X
XMAN3=		T2.3 T2::Association.3 T2::Attribute.3 T2::Class.3 \
X		T2::Schema.3 T2::Storage.3
X	
X
X.include <bsd.port.mk>
END-of-p5-T2/Makefile
echo c - p5-T2/files
mkdir -p p5-T2/files > /dev/null 2>&1
echo x - p5-T2/files/patch-Makefile.PL
sed 's/^X//' >p5-T2/files/patch-Makefile.PL << 'END-of-p5-T2/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Mon Apr  8 15:33:42 2002
X+++ Makefile.PL	Mon Apr  8 15:35:06 2002
X@@ -24,7 +24,7 @@
X print q{Do you plan to run the regression tests?
X (you will need to set up an *EMPTY* database)};
X 
X-goto NOTESTS unless yes();
X+goto NOTESTS;
X 
X my $configured;
X 
END-of-p5-T2/files/patch-Makefile.PL
echo x - p5-T2/pkg-plist
sed 's/^X//' >p5-T2/pkg-plist << 'END-of-p5-T2/pkg-plist'
Xbin/t2-db-info.pl
Xbin/t2-fsck-schema.pl
Xbin/t2-migrate-db.pl
Xbin/t2-write-js.pl
Xlib/perl5/site_perl/5.8.2/T2.pm
Xlib/perl5/site_perl/5.8.2/T2/Association.pm
Xlib/perl5/site_perl/5.8.2/T2/Attribute.pm
Xlib/perl5/site_perl/5.8.2/T2/Class.pm
Xlib/perl5/site_perl/5.8.2/T2/Method.pm
Xlib/perl5/site_perl/5.8.2/T2/Schema.pm
Xlib/perl5/site_perl/5.8.2/T2/Storage.pm
Xlib/perl5/site_perl/5.8.2/mach/auto/T2/.packlist
X at dirrm lib/perl5/site_perl/5.8.2/mach/auto/T2
X at dirrm lib/perl5/site_perl/5.8.2/T2
END-of-p5-T2/pkg-plist
exit
--- p5-T2.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list