diff options
author | fhajny <fhajny> | 2009-11-23 14:26:09 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2009-11-23 14:26:09 +0000 |
commit | ca872ecb428a2afc6b301250dc9240f492b4df4f (patch) | |
tree | e82afd84e216ffc650d10f284a779c847cc9aa06 /devel | |
parent | 2a2a30db8c0a837f6aa8f37f204475b0d3c5556a (diff) | |
download | pkgsrc-ca872ecb428a2afc6b301250dc9240f492b4df4f.tar.gz |
Initial import of ruby-polyglot.
Polyglot provides a registry of file types that can be loaded by calling
its improved version of 'require'. Each file extension that can be handled
by a custom loader is registered by callingPolyglot.register("ext", <class>),
and then you can simply require "somefile", which will find and load
"somefile.ext" using your custom loader.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ruby-polyglot/DESCR | 5 | ||||
-rw-r--r-- | devel/ruby-polyglot/Makefile | 19 | ||||
-rw-r--r-- | devel/ruby-polyglot/PLIST | 12 | ||||
-rw-r--r-- | devel/ruby-polyglot/distinfo | 5 |
4 files changed, 41 insertions, 0 deletions
diff --git a/devel/ruby-polyglot/DESCR b/devel/ruby-polyglot/DESCR new file mode 100644 index 00000000000..8552736a9ff --- /dev/null +++ b/devel/ruby-polyglot/DESCR @@ -0,0 +1,5 @@ +Polyglot provides a registry of file types that can be loaded by calling +its improved version of 'require'. Each file extension that can be handled +by a custom loader is registered by callingPolyglot.register("ext", <class>), +and then you can simply require "somefile", which will find and load +"somefile.ext" using your custom loader. diff --git a/devel/ruby-polyglot/Makefile b/devel/ruby-polyglot/Makefile new file mode 100644 index 00000000000..d8ebf6e2b70 --- /dev/null +++ b/devel/ruby-polyglot/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/11/23 14:26:09 fhajny Exp $ + +DISTNAME= polyglot-0.2.9 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} +CATEGORIES= devel + +MAINTAINER= filip@joyent.com +HOMEPAGE= http://polyglot.rubyforge.org/ +COMMENT= Registry of file types to load with its improved version of 'require' +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= hoe>=2.3.2:../../devel/hoe + +GEM_BUILD= gemspec + +.include "../../misc/rubygems/rubygem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-polyglot/PLIST b/devel/ruby-polyglot/PLIST new file mode 100644 index 00000000000..eadcddf20bc --- /dev/null +++ b/devel/ruby-polyglot/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/23 14:26:09 fhajny Exp $ +${GEM_HOME}/cache/polyglot-${PKGVERSION}.gem +${GEM_LIBDIR}/History.txt +${GEM_LIBDIR}/License.txt +${GEM_LIBDIR}/Manifest.txt +${GEM_LIBDIR}/README.txt +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/lib/polyglot.rb +${GEM_LIBDIR}/lib/polyglot/version.rb +${GEM_LIBDIR}/test/test_helper.rb +${GEM_LIBDIR}/test/test_polyglot.rb +${GEM_HOME}/specifications/polyglot-${PKGVERSION}.gemspec diff --git a/devel/ruby-polyglot/distinfo b/devel/ruby-polyglot/distinfo new file mode 100644 index 00000000000..9cbded95122 --- /dev/null +++ b/devel/ruby-polyglot/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/11/23 14:26:09 fhajny Exp $ + +SHA1 (polyglot-0.2.9.gem) = 2848efd9ebb61477d55c16d9ea25298bbd3e5f8f +RMD160 (polyglot-0.2.9.gem) = df62129dac19d72162972f92a1dedba404f829d1 +Size (polyglot-0.2.9.gem) = 7168 bytes |