summaryrefslogtreecommitdiff
path: root/devel/p5-Date-Calc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-11-26 17:38:11 +0000
committerwiz <wiz@pkgsrc.org>2001-11-26 17:38:11 +0000
commitfa34c4821d802bbbbff56bbc7a6be3addda7c332 (patch)
tree27b537d1a0bef0a0f2b8b4fc94e706bc7718c49e /devel/p5-Date-Calc
parentdd1eb83248c3e9c0eabf1aaf8b600a5d61b3136f (diff)
downloadpkgsrc-fa34c4821d802bbbbff56bbc7a6be3addda7c332.tar.gz
Update to 5.0, provided by Shell Hung in pkg/14694.
More interesting changes since 4.3: Module "Date::Calc": + Added the following new functions: * check_time() * Delta_YMD() * Delta_YMDHMS() * Add_Delta_YM() * Add_Delta_YMDHMS() * Normalize_DHMS() * This_Year() * Gmtime() * Localtime() * Mktime() * Timezone() * Date_to_Time() * Time_to_Date() * Fixed_Window() * Moving_Window() * ISO_LC() * ISO_UC() + Added support for Norwegian. + Added support for Swedish. + Added support for Danish. + Added support for Finnish. + Changed the month names of some languages to lower case. + Changed the french "long" date format to a more popular form. + Fixed the broken parsing of special ISO-Latin-1 characters in Date::Calc (replaced <ctype.h> with better solution). - Locales wouldn't help here, because "Decode_Language()" must work with any locale setting. Moreover, setting a language in Date::Calc would also require to set the proper corresponding locale in the current environment, which may not be available on the current system. The new solution works independently of any locale and with ALL languages (in ISO-Latin-1). + Changed the function "Add_Delta_YMD()" to have a more intuitive, consistent and reversible behaviour. This might break existing code, though. (To get the old behaviour, use the new function "Add_Delta_YM()" plus "Add_Delta_Days()" thereafter instead.) + Added an optional boolean parameter "orthodox" to "Calendar()" for calendars starting with Sunday instead of Monday. + Changed the behaviour of the "Decode_Date_*()" set of functions: if the current year is available on the system, then a "moving window" strategy is applied to year numbers < 100; otherwise it defaults to the previous behaviour (see version 4.3 below). + Changed the "Week_of_Year()" function: In scalar context, it now returns just the week number. BEWARE, this is a DANGEROUS feature - see the manual page for why this is so! Module "Date::Calc::Object": + Added the module Date::Calc::Object, an object-oriented add-on to Date::Calc with overloaded operators. Modules "Date::Calendar[::(Year|Profiles)]": + Added the modules Date::Calendar, Date::Calendar::Year and Date::Calendar::Profiles, for calculations which need to take holidays into account (and for generating calendars).
Diffstat (limited to 'devel/p5-Date-Calc')
-rw-r--r--devel/p5-Date-Calc/Makefile11
-rw-r--r--devel/p5-Date-Calc/distinfo7
-rw-r--r--devel/p5-Date-Calc/patches/patch-aa13
3 files changed, 25 insertions, 6 deletions
diff --git a/devel/p5-Date-Calc/Makefile b/devel/p5-Date-Calc/Makefile
index 16bb202bb77..489e8f0fdd3 100644
--- a/devel/p5-Date-Calc/Makefile
+++ b/devel/p5-Date-Calc/Makefile
@@ -1,19 +1,24 @@
-# $NetBSD: Makefile,v 1.6 2001/11/26 06:49:48 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2001/11/26 17:38:11 wiz Exp $
#
-DISTNAME= Date-Calc-4.3
+DISTNAME= Date-Calc-5.0
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5dca
-CATEGORIES= textproc perl5
+CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Date/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.engelschall.com/u/sb/download/
COMMENT= perl5 module for Gregorian calendar date calculations
+DEPENDS+= p5-Bit-Vector-[0-9]*:../../devel/p5-Bit-Vector
+
USE_BUILDLINK_ONLY= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Date/Calc/.packlist
+post-patch:
+ @rm -rf ${WRKSRC}/lib/Carp
+
do-configure:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
diff --git a/devel/p5-Date-Calc/distinfo b/devel/p5-Date-Calc/distinfo
index e6354b5a3bd..f3f87e67ad2 100644
--- a/devel/p5-Date-Calc/distinfo
+++ b/devel/p5-Date-Calc/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 00:44:35 wiz Exp $
+$NetBSD: distinfo,v 1.3 2001/11/26 17:38:12 wiz Exp $
-SHA1 (Date-Calc-4.3.tar.gz) = d0dbb02dc93708e2f6ac627a361e87deacdd6bd0
-Size (Date-Calc-4.3.tar.gz) = 89308 bytes
+SHA1 (Date-Calc-5.0.tar.gz) = 8e5e07ba1acff83c6dd8ac08d53474e6c4639fa7
+Size (Date-Calc-5.0.tar.gz) = 194941 bytes
+SHA1 (patch-aa) = bb684dec0c51bf9414e91580496f903c7d206540
diff --git a/devel/p5-Date-Calc/patches/patch-aa b/devel/p5-Date-Calc/patches/patch-aa
new file mode 100644
index 00000000000..68b87978f72
--- /dev/null
+++ b/devel/p5-Date-Calc/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2001/11/26 17:38:13 wiz Exp $
+
+--- MANIFEST.orig Sat Nov 24 04:10:47 2001
++++ MANIFEST
+@@ -30,8 +30,6 @@
+ examples/time.pl
+ examples/vacation.pl
+ examples/weiberfastnacht.pl
+-lib/Carp/Clan.pm
+-lib/Carp/Clan.pod
+ lib/Date/Calc/Object.pm
+ lib/Date/Calc/Object.pod
+ lib/Date/Calendar/Profiles.pm