aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-File-Slurp
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2003-12-22 13:32:53 +0000
committerErwin Lansing <erwin@FreeBSD.org>2003-12-22 13:32:53 +0000
commitfad47874578fd6d5727a6a80c4fa936bf021fe4f (patch)
tree0e12d9b267641cbdfc9787b7a2951bcf7028e25a /devel/p5-File-Slurp
parent894df51aa371969d61760a297425d4e86e74bead (diff)
downloadports-fad47874578fd6d5727a6a80c4fa936bf021fe4f.tar.gz
ports-fad47874578fd6d5727a6a80c4fa936bf021fe4f.zip
Notes
Diffstat (limited to 'devel/p5-File-Slurp')
-rw-r--r--devel/p5-File-Slurp/Makefile13
-rw-r--r--devel/p5-File-Slurp/distinfo2
2 files changed, 12 insertions, 3 deletions
diff --git a/devel/p5-File-Slurp/Makefile b/devel/p5-File-Slurp/Makefile
index 6a29123b5413..8d7ef5506a2c 100644
--- a/devel/p5-File-Slurp/Makefile
+++ b/devel/p5-File-Slurp/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= File-Slurp
-PORTVERSION= 2004.0904
+PORTVERSION= 9999.03
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= File
@@ -19,4 +19,13 @@ PERL_CONFIGURE= YES
MAN3= File::Slurp.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+post-configure:
+ cd ${WRKSRC}; \
+ ${PERL} -pi -e 's|(.*Fcntl.*):seek(.*)|\1\2\nuse POSIX qw(SEEK_SET SEEK_CUR SEEK_END);|; \
+ s|.*= O_BINARY.*||;' lib/File/Slurp.pm t/*.t
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-File-Slurp/distinfo b/devel/p5-File-Slurp/distinfo
index f900005979ca..dad1a98bf70c 100644
--- a/devel/p5-File-Slurp/distinfo
+++ b/devel/p5-File-Slurp/distinfo
@@ -1 +1 @@
-MD5 (File-Slurp-2004.0904.tar.gz) = 96239bbc1cfdfc4ab5f59cf4a490855a
+MD5 (File-Slurp-9999.03.tar.gz) = c09a24466012d92f88908b7356f53caa