diff options
author | taca <taca> | 2001-07-01 12:40:19 +0000 |
---|---|---|
committer | taca <taca> | 2001-07-01 12:40:19 +0000 |
commit | 0fb6b629d98305f22a04b46c0950af50a3567a8e (patch) | |
tree | 1ca2c1678760b5f703d8007c55a387ecdb29d94e /devel/ruby-filelock | |
parent | 8e7dec47d9a49486f13854d5216cf73f750abeae (diff) | |
download | pkgsrc-0fb6b629d98305f22a04b46c0950af50a3567a8e.tar.gz |
Importing ruby-filelock.
This is a Ruby module which provides file locking mechanism.
The module FileLock implements two classes: LockFile and LockedFile;
the class LockFile deals with so-called lockfiles, and the class
LockedFile offer a high-level interface to deal with both regular
files and lockfiles at the same time.
To be portable, a small C extension is used to minimize the time
between existence check of a lockfile and its creation.
Diffstat (limited to 'devel/ruby-filelock')
-rw-r--r-- | devel/ruby-filelock/Makefile | 32 | ||||
-rw-r--r-- | devel/ruby-filelock/distinfo | 4 | ||||
-rw-r--r-- | devel/ruby-filelock/pkg/DESCR | 12 | ||||
-rw-r--r-- | devel/ruby-filelock/pkg/PLIST | 11 |
4 files changed, 59 insertions, 0 deletions
diff --git a/devel/ruby-filelock/Makefile b/devel/ruby-filelock/Makefile new file mode 100644 index 00000000000..ae6fbf5ad21 --- /dev/null +++ b/devel/ruby-filelock/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/07/01 12:40:19 taca Exp $ +# FreeBSD: ports/devel/ruby-filelock/Makefile,v 1.4 2000/09/26 08:01:52 knu Exp + +DISTNAME= filelock-0.2 +PKGNAME= ${RUBY_PKGNAMEPREFIX}${DISTNAME} +CATEGORIES= devel +MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ + +MAINTAINER= taca@netbsd.org +HOMEPAGE= # not available +COMMENT= Ruby module which provides file locking mechanism + +DIST_SUBDIR= ruby +USE_RUBY_EXTCONF= yes + +INSTALL_TARGET= site-install + +DOCS= README +EXAMPLES= test.rb tst1.rb tst2.rb tst3.rb tst4.rb + +post-install: + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/filelock +.for f in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/filelock +.endfor + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/filelock +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/filelock +.endfor + +.include "../../lang/ruby-base/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-filelock/distinfo b/devel/ruby-filelock/distinfo new file mode 100644 index 00000000000..472ce268b62 --- /dev/null +++ b/devel/ruby-filelock/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/07/01 12:40:19 taca Exp $ + +SHA1 (ruby/filelock-0.2.tar.gz) = 6a652bedd7d19452507d012396ecbef7a517425d +Size (ruby/filelock-0.2.tar.gz) = 6637 bytes diff --git a/devel/ruby-filelock/pkg/DESCR b/devel/ruby-filelock/pkg/DESCR new file mode 100644 index 00000000000..b690784e8da --- /dev/null +++ b/devel/ruby-filelock/pkg/DESCR @@ -0,0 +1,12 @@ +This is a Ruby module which provides file locking mechanism. + +The module FileLock implements two classes: LockFile and LockedFile; +the class LockFile deals with so-called lockfiles, and the class +LockedFile offer a high-level interface to deal with both regular +files and lockfiles at the same time. + +To be portable, a small C extension is used to minimize the time +between existence check of a lockfile and its creation. + +Author: Clemens Hintze <c.hintze@gmx.net> +WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=filelock diff --git a/devel/ruby-filelock/pkg/PLIST b/devel/ruby-filelock/pkg/PLIST new file mode 100644 index 00000000000..40bcc570651 --- /dev/null +++ b/devel/ruby-filelock/pkg/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/01 12:40:19 taca Exp $ +${RUBY_SITEARCHLIBDIR}/_filelock.so +${RUBY_SITELIBDIR}/filelock.rb +${RUBY_EXAMPLESDIR}/filelock/test.rb +${RUBY_EXAMPLESDIR}/filelock/tst1.rb +${RUBY_EXAMPLESDIR}/filelock/tst2.rb +${RUBY_EXAMPLESDIR}/filelock/tst3.rb +${RUBY_EXAMPLESDIR}/filelock/tst4.rb +@dirrm ${RUBY_EXAMPLESDIR}/filelock +${RUBY_DOCDIR}/filelock/README +@dirrm ${RUBY_DOCDIR}/filelock |