diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-08-22 09:22:24 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-08-22 09:22:24 +0000 |
commit | 6491bdf883f06656ea31d7d01d9fc8eef8285c87 (patch) | |
tree | 85433e6753f968b8cb00cfd5c37b8f309108c041 /devel/ruby-filelock | |
parent | 5ef7fef76ea9eab2672f065cd92a8820221ba9e0 (diff) |
Add ruby-filelock, a Ruby module which provides file locking mechanism.
Notes
Notes:
svn path=/head/; revision=31853
Diffstat (limited to 'devel/ruby-filelock')
-rw-r--r-- | devel/ruby-filelock/Makefile | 47 | ||||
-rw-r--r-- | devel/ruby-filelock/distinfo | 1 | ||||
-rw-r--r-- | devel/ruby-filelock/pkg-comment | 1 | ||||
-rw-r--r-- | devel/ruby-filelock/pkg-descr | 12 | ||||
-rw-r--r-- | devel/ruby-filelock/pkg-plist | 10 |
5 files changed, 71 insertions, 0 deletions
diff --git a/devel/ruby-filelock/Makefile b/devel/ruby-filelock/Makefile new file mode 100644 index 000000000000..ffd5c7b5e3f0 --- /dev/null +++ b/devel/ruby-filelock/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: Ruby-filelock +# Date created: 22 Aug 2000 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= filelock +PORTVERSION= 0.2 +CATEGORIES= devel ruby +MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ +PKGNAMEPREFIX= ruby- +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby +RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby + +INSTALL_TARGET= site-install + +PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" + +RUBY?= ${LOCALBASE}/bin/ruby +RUBY_VER?= 1.4 +RUBY_ARCH?= ${ARCH}-freebsd${OSREL} + +DOCS= README +EXAMPLES= test.rb tst1.rb tst2.rb tst3.rb tst4.rb + +do-configure: + @cd ${WRKSRC}; \ + ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS} + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/examples/ruby/filelock +.for f in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${PREFIX}/share/examples/ruby/filelock/ +.endfor + ${MKDIR} ${PREFIX}/share/doc/ruby/filelock +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/filelock/ +.endfor +.endif + +.include <bsd.port.mk> diff --git a/devel/ruby-filelock/distinfo b/devel/ruby-filelock/distinfo new file mode 100644 index 000000000000..9359685b96ec --- /dev/null +++ b/devel/ruby-filelock/distinfo @@ -0,0 +1 @@ +MD5 (ruby/filelock-0.2.tar.gz) = dd2a155539e746be42a851addd96e989 diff --git a/devel/ruby-filelock/pkg-comment b/devel/ruby-filelock/pkg-comment new file mode 100644 index 000000000000..a9ce044efc63 --- /dev/null +++ b/devel/ruby-filelock/pkg-comment @@ -0,0 +1 @@ +A Ruby module which provides file locking mechanism diff --git a/devel/ruby-filelock/pkg-descr b/devel/ruby-filelock/pkg-descr new file mode 100644 index 000000000000..47d3df5877b5 --- /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
\ No newline at end of file diff --git a/devel/ruby-filelock/pkg-plist b/devel/ruby-filelock/pkg-plist new file mode 100644 index 000000000000..f49eb045ce60 --- /dev/null +++ b/devel/ruby-filelock/pkg-plist @@ -0,0 +1,10 @@ +lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/_filelock.so +lib/ruby/site_ruby/%%RUBY_VER%%/filelock.rb +share/examples/ruby/filelock/test.rb +share/examples/ruby/filelock/tst1.rb +share/examples/ruby/filelock/tst2.rb +share/examples/ruby/filelock/tst3.rb +share/examples/ruby/filelock/tst4.rb +@dirrm share/examples/ruby/filelock +share/doc/ruby/filelock/README +@dirrm share/doc/ruby/filelock |