pkgsrc/devel/p5-Date-Calc/Makefile

27 lines
650 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.23 2008/10/19 19:17:51 he Exp $
#
DISTNAME= Date-Calc-5.4
PKGNAME= p5-${DISTNAME}
PKGREVISION= 3
SVR4_PKGNAME= p5dca
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).
2001-11-26 18:38:11 +01:00
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Date/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://engelschall.com/u/sb/download/
COMMENT= Perl5 module for Gregorian calendar date calculations
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).
2001-11-26 18:38:11 +01:00
DEPENDS+= p5-Bit-Vector-[0-9]*:../../devel/p5-Bit-Vector
PKG_INSTALLATION_TYPES= overwrite pkgviews
2008-06-20 03:09:05 +02:00
PKG_DESTDIR_SUPPORT= user-destdir
PERL5_PACKLIST= auto/Date/Calc/.packlist
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).
2001-11-26 18:38:11 +01:00
post-patch:
@rm -rf ${WRKSRC}/lib/Carp
2002-10-21 01:35:09 +02:00
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"