summaryrefslogtreecommitdiff
path: root/devel/ruby-polyglot
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2009-11-23 14:26:09 +0000
committerfhajny <fhajny@pkgsrc.org>2009-11-23 14:26:09 +0000
commit478416f0a40eec0c48b7585a704d6c12ca76ce13 (patch)
treee82afd84e216ffc650d10f284a779c847cc9aa06 /devel/ruby-polyglot
parent49db3b1c4f4225f5e754acab44fcd8b895624b15 (diff)
downloadpkgsrc-478416f0a40eec0c48b7585a704d6c12ca76ce13.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/ruby-polyglot')
-rw-r--r--devel/ruby-polyglot/DESCR5
-rw-r--r--devel/ruby-polyglot/Makefile19
-rw-r--r--devel/ruby-polyglot/PLIST12
-rw-r--r--devel/ruby-polyglot/distinfo5
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