1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Add p5-DateTime-Format-Pg 0.04,

parse and format PostgreSQL dates
and times.

PR:		54027
Submitted by:	Mathieu Arnold <m@absolight.net>
This commit is contained in:
Erwin Lansing 2003-07-07 08:02:45 +00:00
parent 7a9841055c
commit 948965c2ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84363
5 changed files with 47 additions and 0 deletions

View File

@ -558,6 +558,7 @@
SUBDIR += p5-DateTime-Format-Bork
SUBDIR += p5-DateTime-Format-Builder
SUBDIR += p5-DateTime-Format-DBI
SUBDIR += p5-DateTime-Format-Pg
SUBDIR += p5-DateTime-Format-Strptime
SUBDIR += p5-DateTime-LeapSecond
SUBDIR += p5-DateTime-Precise

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: p5-DateTime-Format-Pg
# Date created: 2 july 2003
# Whom: Mathieu Arnold <m@absolight.net>
#
# $FreeBSD$
#
PORTNAME= DateTime-Format-Pg
PORTVERSION= 0.04
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DateTime
PKGNAMEPREFIX= p5-
MAINTAINER= m@absolight.net
COMMENT= Parse and format PostgreSQL dates and times
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DateTime.pm:${PORTSDIR}/devel/p5-DateTime \
${SITE_PERL}/DateTime/TimeZone.pm:${PORTSDIR}/devel/p5-DateTime-TimeZone \
${SITE_PERL}/DateTime/Format/Builder.pm:${PORTSDIR}/devel/p5-DateTime-Format-Builder
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= DateTime::Format::Pg.3
post-patch:
@${PERL} -pi -e '$$_ = "" if /5.008/' ${WRKSRC}/Makefile.PL
@${PERL} -pi -e 's/^our (\$$VERSION)/use vars qw($$1); $$1/;' ${WRKSRC}/lib/DateTime/Format/Pg.pm
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (DateTime-Format-Pg-0.04.tar.gz) = 81ad7158cfc49ab0349e36b195eb3c45

View File

@ -0,0 +1,7 @@
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.
WWW: http://datetime.perl.org/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/DateTime/Format/Pg.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Format/Pg/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Format/Pg
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime/Format 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/DateTime 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/DateTime/Format 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/DateTime 2>/dev/null || true