From e269e8e2600803c3dd44319dc45254941c5f795b Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Sun, 18 Jan 2004 18:21:17 +0000 Subject: - Update to version 1.03 PR: 61515 Submitted by: maintainer --- misc/p5-File-CounterFile/Makefile | 13 +++++++++++-- misc/p5-File-CounterFile/distinfo | 2 +- misc/p5-File-CounterFile/files/patch-CounterFile.pm | 10 +++++----- 3 files changed, 17 insertions(+), 8 deletions(-) (limited to 'misc') diff --git a/misc/p5-File-CounterFile/Makefile b/misc/p5-File-CounterFile/Makefile index f4f81f7f2709..4e0d811df6d5 100644 --- a/misc/p5-File-CounterFile/Makefile +++ b/misc/p5-File-CounterFile/Makefile @@ -6,7 +6,7 @@ # PORTNAME= File-CounterFile -PORTVERSION= 1.02 +PORTVERSION= 1.03 CATEGORIES= misc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= File @@ -19,4 +19,13 @@ PERL_CONFIGURE= yes MAN3= File::CounterFile.3 -.include +.include + +.if ${PERL_LEVEL} < 500601 +post-configure: + cd ${WRKSRC}; \ + ${PERL} -pi -e 's|(.*Fcntl.*) SEEK_SET(.*)|\1\2\nuse POSIX qw(SEEK_SET);|;' \ + CounterFile.pm +.endif + +.include diff --git a/misc/p5-File-CounterFile/distinfo b/misc/p5-File-CounterFile/distinfo index 8dae831ac902..b4e3daba0d60 100644 --- a/misc/p5-File-CounterFile/distinfo +++ b/misc/p5-File-CounterFile/distinfo @@ -1 +1 @@ -MD5 (File-CounterFile-1.02.tar.gz) = 5d60cbf081a9b23b55ac5db429cc4dfc +MD5 (File-CounterFile-1.03.tar.gz) = 1b81c7ae95fa6df289d8f11b17b76064 diff --git a/misc/p5-File-CounterFile/files/patch-CounterFile.pm b/misc/p5-File-CounterFile/files/patch-CounterFile.pm index dbea78491478..f31706ef9c33 100644 --- a/misc/p5-File-CounterFile/files/patch-CounterFile.pm +++ b/misc/p5-File-CounterFile/files/patch-CounterFile.pm @@ -1,5 +1,5 @@ ---- CounterFile.pm.orig Tue Jul 30 23:45:06 2002 -+++ CounterFile.pm Sun Jul 6 08:08:46 2003 +--- CounterFile.pm.orig Sun Jan 18 13:31:18 2004 ++++ CounterFile.pm Sun Jan 18 13:31:54 2004 @@ -19,7 +19,7 @@ $DEFAULT_INITIAL = 0; # default initial counter value @@ -9,12 +9,12 @@ # Experimental overloading. use overload ('++' => \&inc, -@@ -205,7 +205,7 @@ +@@ -210,7 +210,7 @@ If the file name does not start with "/" or ".", then it is interpreted as a file relative to C<$File::CounterFile::DEFAULT_DIR>. The default value for this variable is initialized from the --environment variable C, or F is no environment -+environment variable C, or F is no environment +-environment variable C, or F if no environment ++environment variable C, or F if no environment variable is defined. You may want to assign a different value to this variable before creating counters. -- cgit v1.2.3