diff options
author | clsung <clsung@FreeBSD.org> | 2007-12-26 08:43:25 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2007-12-26 08:43:25 +0800 |
commit | d743fca22ad63ea1a97fb122894f59a19658e2cb (patch) | |
tree | 284968bd53bdeceb8df67b1cb0eeda32e1d4f1fe | |
parent | 00ab0d2625d86e0fbcae7e4f20c3e6b2abbde5ce (diff) | |
download | freebsd-ports-gnome-d743fca22ad63ea1a97fb122894f59a19658e2cb.tar.gz freebsd-ports-gnome-d743fca22ad63ea1a97fb122894f59a19658e2cb.tar.zst freebsd-ports-gnome-d743fca22ad63ea1a97fb122894f59a19658e2cb.zip |
- fix rubygem-* pkg-plist warning
- bump PORTREVISION
PointyHat to: clsung (myself)
PR: ports/119011
-rw-r--r-- | devel/ruby-gems/Makefile | 6 | ||||
-rw-r--r-- | devel/ruby-gems/files/patch-setup.rb | 30 | ||||
-rw-r--r-- | devel/ruby-gems/pkg-plist | 5 |
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 |