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.
This commit is contained in:
parent
49db3b1c4f
commit
478416f0a4
4 changed files with 41 additions and 0 deletions
5
devel/ruby-polyglot/DESCR
Normal file
5
devel/ruby-polyglot/DESCR
Normal file
|
@ -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.
|
19
devel/ruby-polyglot/Makefile
Normal file
19
devel/ruby-polyglot/Makefile
Normal file
|
@ -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"
|
12
devel/ruby-polyglot/PLIST
Normal file
12
devel/ruby-polyglot/PLIST
Normal file
|
@ -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
|
5
devel/ruby-polyglot/distinfo
Normal file
5
devel/ruby-polyglot/distinfo
Normal file
|
@ -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
|
Loading…
Reference in a new issue