diff options
author | erwin <erwin@FreeBSD.org> | 2003-07-07 16:02:45 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2003-07-07 16:02:45 +0800 |
commit | 9d9378aafaaa6ec46e2ff2417b5a7967eeba7471 (patch) | |
tree | a38bd787d6c63ffa9388d18166b2158bac2819ea /devel | |
parent | 1209aa7c1483b058258e6900af246bb006295026 (diff) | |
download | freebsd-ports-gnome-9d9378aafaaa6ec46e2ff2417b5a7967eeba7471.tar.gz freebsd-ports-gnome-9d9378aafaaa6ec46e2ff2417b5a7967eeba7471.tar.zst freebsd-ports-gnome-9d9378aafaaa6ec46e2ff2417b5a7967eeba7471.zip |
Add p5-DateTime-Format-Pg 0.04,
parse and format PostgreSQL dates
and times.
PR: 54027
Submitted by: Mathieu Arnold <m@absolight.net>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-DateTime-Format-Pg/Makefile | 31 | ||||
-rw-r--r-- | devel/p5-DateTime-Format-Pg/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-DateTime-Format-Pg/pkg-descr | 7 | ||||
-rw-r--r-- | devel/p5-DateTime-Format-Pg/pkg-plist | 7 |
5 files changed, 47 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index c1928a749af3..6cb255d7756b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/p5-DateTime-Format-Pg/Makefile b/devel/p5-DateTime-Format-Pg/Makefile new file mode 100644 index 000000000000..84909ce4d8c9 --- /dev/null +++ b/devel/p5-DateTime-Format-Pg/Makefile @@ -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> diff --git a/devel/p5-DateTime-Format-Pg/distinfo b/devel/p5-DateTime-Format-Pg/distinfo new file mode 100644 index 000000000000..8131a0316dd2 --- /dev/null +++ b/devel/p5-DateTime-Format-Pg/distinfo @@ -0,0 +1 @@ +MD5 (DateTime-Format-Pg-0.04.tar.gz) = 81ad7158cfc49ab0349e36b195eb3c45 diff --git a/devel/p5-DateTime-Format-Pg/pkg-descr b/devel/p5-DateTime-Format-Pg/pkg-descr new file mode 100644 index 000000000000..10e4c2b57388 --- /dev/null +++ b/devel/p5-DateTime-Format-Pg/pkg-descr @@ -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/ diff --git a/devel/p5-DateTime-Format-Pg/pkg-plist b/devel/p5-DateTime-Format-Pg/pkg-plist new file mode 100644 index 000000000000..9a334e3550cc --- /dev/null +++ b/devel/p5-DateTime-Format-Pg/pkg-plist @@ -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 |