summaryrefslogtreecommitdiff
path: root/devel/p5-IO-InSitu
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2007-05-13 17:55:16 +0000
committerseb <seb@pkgsrc.org>2007-05-13 17:55:16 +0000
commit989f91aa5617f51438582e5c45682b706acbe41c (patch)
treeade3a90c6ac07c8bdb6074c516af80acc78cb6ec /devel/p5-IO-InSitu
parentc98358095cece3edaa6b6546f8f594e9f41f434e (diff)
downloadpkgsrc-989f91aa5617f51438582e5c45682b706acbe41c.tar.gz
Initial import of p5-IO-InSitu version 0.0.2 into The NetBSD
Packages Collection. The Perl 5 module IO::InSitu provides the open_rw( ) subroutine: It takes the names of two files: one to be opened for reading, the other for writing. It returns a list of two filehandles, opened to those two files. However, if the two filenames refer to the same file, open_rw( ) first makes a temporary copy of the file, which it opens for input. It then opens the original file for output. In such cases, when the input filehandle is eventually closed, IO::InSitu arranges for the temporary file to be automatically deleted.
Diffstat (limited to 'devel/p5-IO-InSitu')
-rw-r--r--devel/p5-IO-InSitu/DESCR8
-rw-r--r--devel/p5-IO-InSitu/Makefile19
-rw-r--r--devel/p5-IO-InSitu/PLIST1
-rw-r--r--devel/p5-IO-InSitu/distinfo5
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/p5-IO-InSitu/DESCR b/devel/p5-IO-InSitu/DESCR
new file mode 100644
index 00000000000..ef230e1053f
--- /dev/null
+++ b/devel/p5-IO-InSitu/DESCR
@@ -0,0 +1,8 @@
+The Perl 5 module IO::InSitu provides the open_rw( ) subroutine:
+It takes the names of two files: one to be opened for reading, the
+other for writing. It returns a list of two filehandles, opened to
+those two files. However, if the two filenames refer to the same
+file, open_rw( ) first makes a temporary copy of the file, which
+it opens for input. It then opens the original file for output. In
+such cases, when the input filehandle is eventually closed, IO::InSitu
+arranges for the temporary file to be automatically deleted.
diff --git a/devel/p5-IO-InSitu/Makefile b/devel/p5-IO-InSitu/Makefile
new file mode 100644
index 00000000000..6ca84cbf7ca
--- /dev/null
+++ b/devel/p5-IO-InSitu/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/13 17:55:16 seb Exp $
+#
+
+DISTNAME= IO-InSitu-0.0.2
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=IO/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/IO-InSitu/
+COMMENT= Perl 5 module to do in-situ processing on a file
+
+DEPENDS+= p5-version-[0-9]*:../../devel/p5-version
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/IO/InSitu/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-IO-InSitu/PLIST b/devel/p5-IO-InSitu/PLIST
new file mode 100644
index 00000000000..22ddef23461
--- /dev/null
+++ b/devel/p5-IO-InSitu/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/13 17:55:16 seb Exp $
diff --git a/devel/p5-IO-InSitu/distinfo b/devel/p5-IO-InSitu/distinfo
new file mode 100644
index 00000000000..46174b0bfcb
--- /dev/null
+++ b/devel/p5-IO-InSitu/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/13 17:55:16 seb Exp $
+
+SHA1 (IO-InSitu-0.0.2.tar.gz) = e52a52f742c81c35cadf41fe43db5fe1362f2a7d
+RMD160 (IO-InSitu-0.0.2.tar.gz) = ee4958edabe9a7be1683f49a8d78c5bd08dd3cc9
+Size (IO-InSitu-0.0.2.tar.gz) = 5824 bytes