710dac3c5e
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.
14 lines
388 B
Makefile
14 lines
388 B
Makefile
# $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"
|