Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2007 22:51:41 +0800 (CST)
From:      Cheng-Lung Sung <clsung@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jw@innerewut.de
Subject:   ports/119011: [PATCH] devel/ruby18-gems: fix pkg-plist error in rubygem-* ports
Message-ID:  <20071225145141.57A9012242@going04.iis.sinica.edu.tw>
Resent-Message-ID: <200712251500.lBPF02Ee034038@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         119011
>Category:       ports
>Synopsis:       [PATCH] devel/ruby18-gems: fix pkg-plist error in rubygem-* ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 25 15:00:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 7.0-BETA1 amd64
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD going04.iis.sinica.edu.tw 7.0-BETA1 FreeBSD 7.0-BETA1 #8: Wed Oct 24 09:10:47 CST 2007
>Description:
- my previous PR (ports/119004) does not really solve the pkg-plist issue
- pointyhat to myself

Added file(s):
- files/patch-setup.rb

Port maintainer (jw@innerewut.de) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- ruby18-gems-1.0.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/ruby-gems/Makefile,v
retrieving revision 1.17
diff -u -u -r1.17 Makefile
--- Makefile	25 Dec 2007 12:49:54 -0000	1.17
+++ Makefile	25 Dec 2007 14:45:21 -0000
@@ -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 @@
 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>
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/devel/ruby-gems/pkg-plist,v
retrieving revision 1.12
diff -u -u -r1.12 pkg-plist
--- pkg-plist	25 Dec 2007 12:49:54 -0000	1.12
+++ pkg-plist	25 Dec 2007 14:45:21 -0000
@@ -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 @@
 @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
Index: files/patch-setup.rb
===================================================================
RCS file: files/patch-setup.rb
diff -N files/patch-setup.rb
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-setup.rb	25 Dec 2007 14:45:21 -0000
@@ -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
--- ruby18-gems-1.0.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071225145141.57A9012242>