diff --git a/devel/p5-Time-Piece-MySQL/Makefile b/devel/p5-Time-Piece-MySQL/Makefile new file mode 100644 index 00000000000..1f56731f3de --- /dev/null +++ b/devel/p5-Time-Piece-MySQL/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/11/14 19:07:17 espie Exp $ + +COMMENT= "mysql representations for Time::Piece objects" + +MODULES= cpan +DISTNAME= Time-Piece-MySQL-0.05 +CATEGORIES= devel + +# Artistic License +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +RUN_DEPENDS= ::devel/p5-Time-Piece + +.include diff --git a/devel/p5-Time-Piece-MySQL/distinfo b/devel/p5-Time-Piece-MySQL/distinfo new file mode 100644 index 00000000000..fce57be5771 --- /dev/null +++ b/devel/p5-Time-Piece-MySQL/distinfo @@ -0,0 +1,4 @@ +MD5 (Time-Piece-MySQL-0.05.tar.gz) = 59eb18c952f61cf2481c38c0f43c37c8 +RMD160 (Time-Piece-MySQL-0.05.tar.gz) = 446d0a989b0c775f324beff26aa4b5467b464b3a +SHA1 (Time-Piece-MySQL-0.05.tar.gz) = 72f8c5effd3e404d03cbf0f97532b77f15c71ff5 +SIZE (Time-Piece-MySQL-0.05.tar.gz) = 3701 diff --git a/devel/p5-Time-Piece-MySQL/pkg/DESCR b/devel/p5-Time-Piece-MySQL/pkg/DESCR new file mode 100644 index 00000000000..d57148b2a49 --- /dev/null +++ b/devel/p5-Time-Piece-MySQL/pkg/DESCR @@ -0,0 +1,13 @@ +Using this module in addition to "Time::Piece" adds a +few MySQL-specific date-time methods to "Time::Piece" objects. + +OBJECT METHODS + mysql_date / mysql_time / mysql_datetime / mysql_timestamp + Returns the date and/or time in a format suitable for use by MySQL. + +CONSTRUCTORS + from_mysql_date / from_mysql_datetime / from_mysql_timestamp + Given a date, datetime, or timestamp value as returned from MySQL, these + constructors return a new Time::Piece object. If the value is NULL, they + will retrun undef. + diff --git a/devel/p5-Time-Piece-MySQL/pkg/PLIST b/devel/p5-Time-Piece-MySQL/pkg/PLIST new file mode 100644 index 00000000000..8474940d316 --- /dev/null +++ b/devel/p5-Time-Piece-MySQL/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/14 19:07:17 espie Exp $ +${P5SITE}/Time/ +${P5SITE}/Time/Piece/ +${P5SITE}/Time/Piece/MySQL.pm +@man man/man3p/Time::Piece::MySQL.3p