aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-gems
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-12-26 00:43:25 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-12-26 00:43:25 +0000
commitf9904e19a6e6f0a8d61b80dd8b4cf61e6e20818d (patch)
treef5af9e93e46d2c772acb8d779a33844aba441e2a /devel/ruby-gems
parenteb5b0b80a94702c8011ff0a09e63dc97a549b7e0 (diff)
downloadports-f9904e19a6e6f0a8d61b80dd8b4cf61e6e20818d.tar.gz
ports-f9904e19a6e6f0a8d61b80dd8b4cf61e6e20818d.zip
Notes
Diffstat (limited to 'devel/ruby-gems')
-rw-r--r--devel/ruby-gems/Makefile6
-rw-r--r--devel/ruby-gems/files/patch-setup.rb30
-rw-r--r--devel/ruby-gems/pkg-plist5
3 files changed, 36 insertions, 5 deletions
diff --git a/devel/ruby-gems/Makefile b/devel/ruby-gems/Makefile
index a235456e9ab6..5282ca066ba5 100644
--- a/devel/ruby-gems/Makefile
+++ b/devel/ruby-gems/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gems
PORTVERSION= 1.0.1
+PORTREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ruby${PORTNAME}
@@ -29,9 +30,4 @@ PLIST_SUB+= DISTNAME="${DISTNAME}"
do-install:
cd ${WRKSRC}; ${RUBY} ${RUBY_SETUP}
-post-install:
- @${MKDIR} -p ${PREFIX}/lib/ruby/gems/${RUBY_VER}/cache \
- ${PREFIX}/lib/ruby/gems/${RUBY_VER}/gems \
- ${PREFIX}/lib/ruby/gems/${RUBY_VER}/specifications
-
.include <bsd.port.mk>
diff --git a/devel/ruby-gems/files/patch-setup.rb b/devel/ruby-gems/files/patch-setup.rb
new file mode 100644
index 000000000000..f39b2739032d
--- /dev/null
+++ b/devel/ruby-gems/files/patch-setup.rb
@@ -0,0 +1,30 @@
+--- setup.rb.orig 2007-12-21 09:15:55.000000000 +0800
++++ setup.rb 2007-12-25 22:39:23.000000000 +0800
+@@ -222,6 +222,22 @@
+ puts "Set the GEM_HOME environment variable if you want RDoc generated"
+ end
+
++# Install sources
++
++def install_sources
++ $: << "lib"
++ require 'rubygems'
++ require 'rubygems/builder'
++ require 'rubygems/installer'
++ require 'rubygems/config_file'
++ Dir.chdir("pkgs/sources") do
++ load "sources.gemspec"
++ spec = Gem.sources_spec
++ gem_file = Gem::Builder.new(spec).build
++ Gem::Installer.new(gem_file).install
++ end
++end
++
+ # Remove stubs
+
+ def stub?(path)
+@@ -268,3 +284,4 @@
+ puts "No library stubs found."
+ end
+
++install_sources
diff --git a/devel/ruby-gems/pkg-plist b/devel/ruby-gems/pkg-plist
index 72ebccc4ef86..6aea1bd91b17 100644
--- a/devel/ruby-gems/pkg-plist
+++ b/devel/ruby-gems/pkg-plist
@@ -1,5 +1,8 @@
bin/gem18
bin/update_rubygems18
+lib/ruby/gems/%%RUBY_VER%%/cache/sources-0.0.2.gem
+lib/ruby/gems/%%RUBY_VER%%/gems/sources-0.0.2/lib/sources.rb
+lib/ruby/gems/%%RUBY_VER%%/specifications/sources-0.0.2.gemspec
%%RUBY_SITELIBDIR%%/rbconfig/datadir.rb
%%RUBY_SITELIBDIR%%/rubygems.rb
%%RUBY_SITELIBDIR%%/rubygems/builder.rb
@@ -1390,6 +1393,8 @@ lib/ruby/gems/%%RUBY_VER%%/doc/%%DISTNAME%%/ri/created.rid
@dirrm %%RUBY_SITELIBDIR%%/rbconfig
@dirrmtry lib/ruby/gems/%%RUBY_VER%%/source_cache
@dirrmtry lib/ruby/gems/%%RUBY_VER%%/specifications
+@dirrm lib/ruby/gems/%%RUBY_VER%%/gems/sources-0.0.2/lib
+@dirrm lib/ruby/gems/%%RUBY_VER%%/gems/sources-0.0.2
@dirrmtry lib/ruby/gems/%%RUBY_VER%%/gems
@dirrmtry lib/ruby/gems/%%RUBY_VER%%/cache
@dirrm lib/ruby/gems/%%RUBY_VER%%/doc/%%DISTNAME%%/ri/OpenSSL/X509/Certificate