Update ruby-isolate to 3.2.1, which eliminates the warnings it started
emitting after the rubygems 1.8 update. Add a patch to fix use with gems with C extensions, using the --user-install option. Add a patch to not hide underlying error message when attempting to activate a gem.
This commit is contained in:
parent
726b2dbf0b
commit
12822b1f75
@ -1,9 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2011/09/16 09:24:57 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2011/11/17 15:39:15 jeremy Exp $
|
||||
|
||||
COMMENT = very simple RubyGems sandbox
|
||||
|
||||
DISTNAME = isolate-3.0.0
|
||||
REVISION = 1
|
||||
DISTNAME = isolate-3.2.1
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE= http://github.com/jbarnette/isolate
|
||||
@ -19,11 +18,11 @@ PERMIT_DISTFILES_FTP = Yes
|
||||
MODULES = lang/ruby
|
||||
CONFIGURE_STYLE = ruby gem
|
||||
|
||||
# Regress tests don't work
|
||||
REGRESS_DEPENDS = devel/ruby-minitest,${MODRUBY_FLAVOR} \
|
||||
devel/ruby-hoe,${MODRUBY_FLAVOR}
|
||||
|
||||
do-regress:
|
||||
cd ${WRKSRC}/test && ${RUBY} -rubygems -I . -I ../lib test_isolate.rb
|
||||
MODRUBY_REGRESS = testrb
|
||||
MODRUBY_REGRESS_ENV = RUBYOPT=-rubygems
|
||||
MODRUBY_REGRESS_TARGET = -I . -I ../lib test_*.rb
|
||||
MODRUBY_REGRESS_DIR = ${WRKSRC}/test
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (isolate-3.0.0.gem) = 5+DzI13kgX21Lavclkn+Dg==
|
||||
RMD160 (isolate-3.0.0.gem) = dp9lMTYt17R1X63QvUS5rHZlSPg=
|
||||
SHA1 (isolate-3.0.0.gem) = AjU8rEQvHJJpvE5ziC0nzUfzBCA=
|
||||
SHA256 (isolate-3.0.0.gem) = 7yuEbXiuxDRnkRGmAiffIz20ZDpCFPIXqHMIVJcp9Gk=
|
||||
SIZE (isolate-3.0.0.gem) = 20480
|
||||
MD5 (isolate-3.2.1.gem) = w7ZumlPYQU5jqR+wS9WcmA==
|
||||
RMD160 (isolate-3.2.1.gem) = Jd8B5nifF0NeYWebJAuE8gopiik=
|
||||
SHA1 (isolate-3.2.1.gem) = ku3Oe3FozT/v7R5KkI6TJirX7Uo=
|
||||
SHA256 (isolate-3.2.1.gem) = F3VncfM2ew5FxLV9baOpMHoLBJl2YumlbgbVCXlA9qo=
|
||||
SIZE (isolate-3.2.1.gem) = 27136
|
||||
|
26
devel/ruby-isolate/patches/patch-lib_isolate_entry_rb
Normal file
26
devel/ruby-isolate/patches/patch-lib_isolate_entry_rb
Normal file
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-lib_isolate_entry_rb,v 1.1 2011/11/17 15:39:15 jeremy Exp $
|
||||
|
||||
Add user-install option so that you don't need to have root access
|
||||
to use isolate with gems with C extensions.
|
||||
|
||||
--- lib/isolate/entry.rb.orig Mon Nov 14 19:51:12 2011
|
||||
+++ lib/isolate/entry.rb Mon Nov 14 19:52:10 2011
|
||||
@@ -67,9 +67,7 @@ module Isolate
|
||||
|
||||
def activate
|
||||
fire :activating, :activated do
|
||||
- spec = self.specification
|
||||
- raise Gem::LoadError, "Couldn't resolve: #{self}" unless spec
|
||||
- spec.activate
|
||||
+ Gem::Specification.find_by_name(name, requirement).activate
|
||||
end
|
||||
end
|
||||
|
||||
@@ -86,6 +84,7 @@ module Isolate
|
||||
Gem::DependencyInstaller.new(:development => false,
|
||||
:generate_rdoc => false,
|
||||
:generate_ri => false,
|
||||
+ :user_install => true,
|
||||
:install_dir => @sandbox.path)
|
||||
|
||||
Gem::Command.build_args = Array(options[:args]) if options[:args]
|
@ -1,7 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/09 20:04:23 jeremy Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2011/11/17 15:39:15 jeremy Exp $
|
||||
${GEM_LIB}/cache/${DISTNAME}.gem
|
||||
${GEM_LIB}/gems/${DISTNAME}/
|
||||
${GEM_LIB}/gems/${DISTNAME}/.autotest
|
||||
${GEM_LIB}/gems/${DISTNAME}/.gemtest
|
||||
${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.rdoc
|
||||
${GEM_LIB}/gems/${DISTNAME}/Manifest.txt
|
||||
${GEM_LIB}/gems/${DISTNAME}/README.rdoc
|
||||
@ -22,6 +23,13 @@ ${GEM_LIB}/gems/${DISTNAME}/test/fixtures/blort-0.0.gem
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/isolate.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/override.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/override.rb.local
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system/specifications/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system/specifications/rcov-0.9.9.gemspec
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system_redundant/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system_redundant/specifications/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system_redundant/specifications/rake-0.8.7.gemspec
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/system_redundant/specifications/rcov-0.9.9.gemspec
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/with-hoe/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/with-hoe/specifications/
|
||||
${GEM_LIB}/gems/${DISTNAME}/test/fixtures/with-hoe/specifications/hoe-2.3.3.gemspec
|
||||
|
Loading…
x
Reference in New Issue
Block a user