summaryrefslogtreecommitdiff
path: root/devel/ruby-rbx-require-relative
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2011-06-19 10:32:17 +0000
committertaca <taca@pkgsrc.org>2011-06-19 10:32:17 +0000
commit38e2f961655b1e42831855b3af48748376daf5da (patch)
treec8fd890997f46a86611770c6821795c3565070f1 /devel/ruby-rbx-require-relative
parent972397e911b8d7fff8f8a6ced2522c960e585c88 (diff)
downloadpkgsrc-38e2f961655b1e42831855b3af48748376daf5da.tar.gz
Import ruby18-rbx-require-relative pacakge version 0.0.5.
It is required by new ruby-linecache package. Ruby 1.9's relative_relative for Rubinus and MRI 1.8 Here we add in Module RequireRelative method: *require_relative*, and *abs_file*. Example: require 'rubygems'; require 'require_relative' require_relative './lib/foo' absolute_path = RequireRelative.abs_file But why *abs_file*? Well, recall that ==__FILE__== does not give an absolute path. So if you have chdir'd before using ==__FILE__==, you might not be able to retrieve the full path.
Diffstat (limited to 'devel/ruby-rbx-require-relative')
-rw-r--r--devel/ruby-rbx-require-relative/DESCR13
-rw-r--r--devel/ruby-rbx-require-relative/Makefile14
-rw-r--r--devel/ruby-rbx-require-relative/PLIST13
-rw-r--r--devel/ruby-rbx-require-relative/distinfo5
4 files changed, 45 insertions, 0 deletions
diff --git a/devel/ruby-rbx-require-relative/DESCR b/devel/ruby-rbx-require-relative/DESCR
new file mode 100644
index 00000000000..f7f105ed943
--- /dev/null
+++ b/devel/ruby-rbx-require-relative/DESCR
@@ -0,0 +1,13 @@
+Ruby 1.9's relative_relative for Rubinus and MRI 1.8
+
+Here we add in Module RequireRelative method: *require_relative*,
+and *abs_file*.
+
+Example:
+require 'rubygems'; require 'require_relative'
+require_relative './lib/foo'
+absolute_path = RequireRelative.abs_file
+
+But why *abs_file*? Well, recall that ==__FILE__== does not give an absolute
+path. So if you have chdir'd before using ==__FILE__==, you might not be
+able to retrieve the full path.
diff --git a/devel/ruby-rbx-require-relative/Makefile b/devel/ruby-rbx-require-relative/Makefile
new file mode 100644
index 00000000000..78580990c8f
--- /dev/null
+++ b/devel/ruby-rbx-require-relative/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/06/19 10:32:17 taca Exp $
+
+DISTNAME= rbx-require-relative-0.0.5
+CATEGORIES= devel
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/rocky/rbx-require-relative
+COMMENT= Ruby 1.9's require_relative for Rubinius and MRI 1.8
+LICENSE= 2-clause-bsd
+
+RUBY_VERSION_SUPPORTED= 18
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-rbx-require-relative/PLIST b/devel/ruby-rbx-require-relative/PLIST
new file mode 100644
index 00000000000..85280a58662
--- /dev/null
+++ b/devel/ruby-rbx-require-relative/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/06/19 10:32:17 taca Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/ChangeLog
+${GEM_LIBDIR}/LICENSE
+${GEM_LIBDIR}/NEWS
+${GEM_LIBDIR}/README.textile
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/lib/require_relative.rb
+${GEM_LIBDIR}/lib/version.rb
+${GEM_LIBDIR}/test/bar.rb
+${GEM_LIBDIR}/test/foo.rb
+${GEM_LIBDIR}/test/test-rr.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/devel/ruby-rbx-require-relative/distinfo b/devel/ruby-rbx-require-relative/distinfo
new file mode 100644
index 00000000000..a25a1420801
--- /dev/null
+++ b/devel/ruby-rbx-require-relative/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/06/19 10:32:17 taca Exp $
+
+SHA1 (rbx-require-relative-0.0.5.gem) = 7be5a5694f1042195532798f36c1104c259e682b
+RMD160 (rbx-require-relative-0.0.5.gem) = dbd206854ed0595de79f503903d0db0723ab28b1
+Size (rbx-require-relative-0.0.5.gem) = 8704 bytes