From 71f544d6e70002cf5ddbadbb7a596bec38a69c9b Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 4 Feb 2006 00:23:08 +0000 Subject: [PATCH] Load libhtml-calendarmonth-perl-1.16 into libhtml-calendarmonth-perl/trunk. --- debian/changelog | 18 ++++++ debian/compat | 1 + debian/control | 15 +++++ debian/copyright | 10 ++++ debian/rules | 65 +++++++++++++++++++++ debian/watch | 3 + lib/HTML/CalendarMonth/DateTool/DateCalc.pm | 3 +- t/test.dat | 2 +- 8 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4c1dd95 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,18 @@ +libhtml-calendarmonth-perl (1.16-1) unstable; urgency=low + + * New upstream release + + -- Don Armstrong Wed, 4 Jan 2006 16:23:00 -0800 + +libhtml-calendarmonth-perl (1.15-1) unstable; urgency=low + + * New upstream release (Closes: #329554) + * patch lib/HTML/CalendarMonth.pm to fix the useless use of + in void context warning + + -- Don Armstrong Sun, 25 Sep 2005 03:35:12 -0700 + +libhtml-calendarmonth-perl (1.09-1) unstable; urgency=low + + * First Packaging (Closes: #150121). + + -- Don Armstrong Mon, 10 Jun 2002 21:53:52 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b0eb355 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: libhtml-calendarmonth-perl +Section: text +Priority: optional +Standards-Version: 3.5.6.1 +Maintainer: Don Armstrong +Build-Depends-Indep: libhtml-element-extended-perl (>=1.11-0), debhelper (>= 3.0.18), libdatetime-locale-perl, libclass-accessor-perl, libdate-calc-perl, libdate-manip-perl, libdatetime-perl + +Package: libhtml-calendarmonth-perl +Section: text +Priority: optional +Architecture: all +Depends: ${perl:Depends}, libhtml-element-extended-perl (>=1.11-0), libdatetime-locale-perl, libdate-calc-perl|libdate-manip-perl|libdatetime-perl, libclass-accessor-perl +Description: generate and manipulate calandar months in HTML. + This module enables you to generate and manipulate calendar + months in HTML. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3aa995d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Author: Mathew P. Sisk +Webpage: http://www.mojotoad.com/sisk/projects/HTML-CalendarMonth/ +Download: http://www.cpan.org/authors/id/M/MS/MSISK/HTML-CalendarMonth-1.15.tar.gz +Debianized: Don Armstrong Sun, 23 Jun 2002 01:47:35 -0700 + +Copyright: Copyright (c) 1999-2002 Matthew P. Sisk. All rights +reserved. All wrongs revenged. This program is free software; you can +redistribute it and/or modify it under the same terms as Perl itself. + +License: GPL, Artistic, available at /usr/share/common-licenses/{GPL,Artistic} \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..13b11fe --- /dev/null +++ b/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DESTDIR=$(CURDIR)/debian/$(shell dh_listpackages|head -n 1) + +build: build-stamp +build-stamp: + dh_testdir + + perl Makefile.PL INSTALLDIRS=vendor + $(MAKE) + + touch $@ + +test: test-stamp +test-stamp: + dh_testdir + $(MAKE) test + touch $@ + + +clean: + dh_testdir + dh_testroot + rm -f build-stamp test-stamp + + if [ -e Makefile ]; then $(MAKE) distclean; fi + + dh_clean + +install: build test + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install PREFIX=$(DESTDIR)/usr + rmdir -p $(DESTDIR)/usr/lib/perl5 || true + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2cdbe9b --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +# format version number, currently 2; this line is compulsory! +version=2 +http://www.perl.com/CPAN/authors/id/M/MS/MSISK/HTML-CalendarMonth-([\d\.]+).tar.gz diff --git a/lib/HTML/CalendarMonth/DateTool/DateCalc.pm b/lib/HTML/CalendarMonth/DateTool/DateCalc.pm index 97db691..5a84087 100644 --- a/lib/HTML/CalendarMonth/DateTool/DateCalc.pm +++ b/lib/HTML/CalendarMonth/DateTool/DateCalc.pm @@ -58,7 +58,8 @@ sub week_of_year { $day || croak "Day required.\n"; $month ||= $self->month; $year ||= $self->year; - my($week, $year) = Week_of_Year($year, $month, $day); + my $week; + ($week, $year) = Week_of_Year($year, $month, $day); ($year, $week); } diff --git a/t/test.dat b/t/test.dat index 34eafca..979afc2 100644 --- a/t/test.dat +++ b/t/test.dat @@ -1,4 +1,4 @@ -2000/10 2000/12 2002/03 +2000/10 2000/12 2002/03 2002/04 2003/02 2003/05 2004/02 2004/03 2004/09 2004/12 2005/01 2005/02 2005/03 2005/09 2005/11 2000/10 2
October2000
MonTueWedThuFriSatSun
            1
2345678
9101112131415
16171819202122
23242526272829
3031         
2000/12 2 -- 2.39.2