import File::Tempdir

This module provide an object interface to tempdir() from File::Temp.
This allows to destroy the temporary directory as soon you don't need it
anymore using the magic DESTROY() function automatically call be perl
when the object is no longer reference.

If a value is passed to at object creation, it become only a container
allowing to keep same code in your function.

This is for an update to another port coming soon.
ok simon@ who had a similar version in his tree.
This commit is contained in:
merdely 2008-06-13 14:34:26 +00:00
parent 6a6ec5ef05
commit 6116d68ae2
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/06/13 14:34:26 merdely Exp $
COMMENT= object oriented interface to File::Temp::tempdir()
MODULES= cpan
DISTNAME= File-Tempdir-0.02
CATEGORIES= devel
# perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (File-Tempdir-0.02.tar.gz) = UfYJNDkIgDu8eHdM64HEMQ==
RMD160 (File-Tempdir-0.02.tar.gz) = rqzKbq/PZnlCxlyUG5ZAOjhQF/Q=
SHA1 (File-Tempdir-0.02.tar.gz) = r84gTDku+pixVmpwJqg17VeGqY4=
SHA256 (File-Tempdir-0.02.tar.gz) = 0znQVzWcj3JJzhlY6pYYtQ2faz/2IoGZwxn16xfhO+g=
SIZE (File-Tempdir-0.02.tar.gz) = 1768

View File

@ -0,0 +1,7 @@
This module provide an object interface to tempdir() from File::Temp.
This allows to destroy the temporary directory as soon you don't need it
anymore using the magic DESTROY() function automatically call be perl
when the object is no longer reference.
If a value is passed to at object creation, it become only a container
allowing to keep same code in your function.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/06/13 14:34:26 merdely Exp $
${P5SITE}/File/
${P5SITE}/File/Tempdir.pm
@man man/man3p/File::Tempdir.3p