Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  2 Jul 2003 17:19:43 +0200 (CEST)
From:      Mathieu Arnold <m@absolight.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        m@absolight.net
Subject:   ports/54027: new port devel/p5-DateTime-Format-Pg
Message-ID:  <20030702151943.81EF87DD9@aragorn.reaumur.absolight.net>
Resent-Message-ID: <200307021520.h62FKEH3056756@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         54027
>Category:       ports
>Synopsis:       new port devel/p5-DateTime-Format-Pg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 02 08:20:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mathieu Arnold
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.reaumur.absolight.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 10 13:45:07 CEST 2003 root@aragorn.reaumur.absolight.net:/usr/obj/usr/src/sys/ARAGORN i386

>Description:
New port devel/p5-DateTime-Format-Pg

This module understands the formats used by PostgreSQL for its DATE, TIME,
TIMESTAMP, and INTERVAL data types. It can be used to parse these formats in
order to create DateTime or DateTime::Duration objects, and it can take a
DateTime or DateTime::Duration object and produce a string representing it in a
format accepted by PostgreSQL.
>How-To-Repeat:
>Fix:

--- p5-DateTime-Format-Pg.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-DateTime-Format-Pg
#	p5-DateTime-Format-Pg/Makefile
#	p5-DateTime-Format-Pg/distinfo
#	p5-DateTime-Format-Pg/pkg-descr
#	p5-DateTime-Format-Pg/pkg-plist
#
echo c - p5-DateTime-Format-Pg
mkdir -p p5-DateTime-Format-Pg > /dev/null 2>&1
echo x - p5-DateTime-Format-Pg/Makefile
sed 's/^X//' >p5-DateTime-Format-Pg/Makefile << 'END-of-p5-DateTime-Format-Pg/Makefile'
X# New ports collection makefile for:	p5-DateTime-Format-Pg
X# Date created:	   2 july 2003
X# Whom:		   Mathieu Arnold <m@absolight.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	DateTime-Format-Pg
XPORTVERSION=	0.04
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	DateTime
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	m@absolight.net
XCOMMENT=	Parse and format PostgreSQL dates and times
X
XRUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DateTime.pm:${PORTSDIR}/devel/p5-DateTime \
X		${SITE_PERL}/DateTime/TimeZone.pm:${PORTSDIR}/devel/p5-DateTime-TimeZone \
X		${SITE_PERL}/DateTime/Format/Builder.pm:${PORTSDIR}/devel/p5-DateTime-Format-Builder
XBUILD_DEPENDS=	${RUN_DEPENDS}
X
XPERL_CONFIGURE=	yes
X
XMAN3=		DateTime::Format::Pg.3
X
Xpost-patch:
X	@${PERL} -pi -e '$$_ = "" if /5.008/' ${WRKSRC}/Makefile.PL
X	@${PERL} -pi -e 's/^our (\$$VERSION)/use vars qw($$1); $$1/;' ${WRKSRC}/lib/DateTime/Format/Pg.pm
X
X.include <bsd.port.mk>
END-of-p5-DateTime-Format-Pg/Makefile
echo x - p5-DateTime-Format-Pg/distinfo
sed 's/^X//' >p5-DateTime-Format-Pg/distinfo << 'END-of-p5-DateTime-Format-Pg/distinfo'
XMD5 (DateTime-Format-Pg-0.04.tar.gz) = 81ad7158cfc49ab0349e36b195eb3c45
END-of-p5-DateTime-Format-Pg/distinfo
echo x - p5-DateTime-Format-Pg/pkg-descr
sed 's/^X//' >p5-DateTime-Format-Pg/pkg-descr << 'END-of-p5-DateTime-Format-Pg/pkg-descr'
XThis module understands the formats used by PostgreSQL for its DATE, TIME,
XTIMESTAMP, and INTERVAL data types. It can be used to parse these formats in
Xorder to create DateTime or DateTime::Duration objects, and it can take a
XDateTime or DateTime::Duration object and produce a string representing it in a
Xformat accepted by PostgreSQL.
X
XWWW: http://datetime.perl.org/
END-of-p5-DateTime-Format-Pg/pkg-descr
echo x - p5-DateTime-Format-Pg/pkg-plist
sed 's/^X//' >p5-DateTime-Format-Pg/pkg-plist << 'END-of-p5-DateTime-Format-Pg/pkg-plist'
X%%SITE_PERL%%/DateTime/Format/Pg.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Format/Pg/.packlist
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Format/Pg
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Format 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/DateTime/Format 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/DateTime 2>/dev/null || true
END-of-p5-DateTime-Format-Pg/pkg-plist
exit
--- p5-DateTime-Format-Pg.shar ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030702151943.81EF87DD9>