[50834] users/kimuraw/ruby_select

febeling at macports.org febeling at macports.org
Sun May 10 13:53:46 PDT 2009


Revision: 50834
          http://trac.macports.org/changeset/50834
Author:   febeling at macports.org
Date:     2009-05-10 13:53:46 -0700 (Sun, 10 May 2009)
Log Message:
-----------
ruby_select: move select files from *_select to providing port, 
add ruby-apple as select group.

Modified Paths:
--------------
    users/kimuraw/ruby_select/ChangeLog
    users/kimuraw/ruby_select/lang/ruby18/Portfile
    users/kimuraw/ruby_select/lang/ruby186/Portfile
    users/kimuraw/ruby_select/lang/ruby19/Portfile
    users/kimuraw/ruby_select/sysutils/ruby_select/Portfile

Added Paths:
-----------
    users/kimuraw/ruby_select/lang/ruby18/files/ruby18
    users/kimuraw/ruby_select/lang/ruby186/files/ruby186
    users/kimuraw/ruby_select/lang/ruby19/files/ruby19
    users/kimuraw/ruby_select/sysutils/ruby_select/files/none
    users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby-apple

Removed Paths:
-------------
    users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby18
    users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby186
    users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby19

Modified: users/kimuraw/ruby_select/ChangeLog
===================================================================
--- users/kimuraw/ruby_select/ChangeLog	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/ChangeLog	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,3 +1,15 @@
+2009-05-10  Florian Ebeling  <febeling at macports.org>
+
+	* lang/ruby18, lang/ruby186, lang/ruby19, sysutils/ruby_select:
+	- use port group 'select' to install select file.
+	- move select files from ruby_select port to providing port.
+	- introduce ruby-apple select group.
+
+2009-05-10  Florian Ebeling  <febeling at macports.org>
+
+	* sysutils/ruby_select:
+	- add select file for ruby19 port files.
+
 2009-04-20  kimura wataru <kimuraw>
 
 	* lang/ruby186/files/patch-libruby_nosuffix.diff,

Modified: users/kimuraw/ruby_select/lang/ruby18/Portfile
===================================================================
--- users/kimuraw/ruby_select/lang/ruby18/Portfile	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/lang/ruby18/Portfile	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup select 1.0
 
 name			ruby18
 version			1.8.7-p160
@@ -33,25 +34,29 @@
 				port:readline \
 				port:openssl \
 				port:zlib \
-				port:ncurses
+				port:ncurses \
+                port:ruby_select
 
-# vendordir: enable vendor-specific.rb
-# #3604: gcc4 fails to detect linking at configure
-# #19050: use $(CC) not cc, this change has been merged at ruby-1.8 trunk
-patchfiles		patch-vendordir.diff \
-				patch-bug3604.diff \
-				patch-bug19050.diff
+# # vendordir: enable vendor-specific.rb
+# # #3604: gcc4 fails to detect linking at configure
+# # #19050: use $(CC) not cc, this change has been merged at ruby-1.8 trunk
+# patchfiles		patch-vendordir.diff \
+# 				patch-bug3604.diff \
+# 				patch-bug19050.diff
 
-# ignore getcontext() and setcontext()
-# on 10.5, these functions have some problems (SEGV on ppc, slower than 1.8.6)
-# http://chopine.be/lrz/ruby-osx-patches/ignore-gsetcontext.diff
-patchfiles-append patch-node.h.diff
+# # ignore getcontext() and setcontext()
+# # on 10.5, these functions have some problems (SEGV on ppc, slower than 1.8.6)
+# # http://chopine.be/lrz/ruby-osx-patches/ignore-gsetcontext.diff
+# patchfiles-append patch-node.h.diff
 
-# change rdoc "system" path to "system1.8.7"
-patchfiles-append patch-rdoc_sysdir.diff
-# linking libruby.dylib not libruby${suffix}.dylib when VENDOR_SPECIFIC = true
-patchfiles-append patch-libruby_nosuffix.diff
+# # change rdoc "system" path to "system1.8.7"
+# patchfiles-append patch-rdoc_sysdir.diff
+# # linking libruby.dylib not libruby${suffix}.dylib when VENDOR_SPECIFIC = true
+# patchfiles-append patch-libruby_nosuffix.diff
 
+select.group     ruby
+select.file      ${filespath}/${name}
+
 use_autoconf	yes
 autoconf.cmd	autoreconf
 autoconf.args	-fvi

Added: users/kimuraw/ruby_select/lang/ruby18/files/ruby18
===================================================================
--- users/kimuraw/ruby_select/lang/ruby18/files/ruby18	                        (rev 0)
+++ users/kimuraw/ruby_select/lang/ruby18/files/ruby18	2009-05-10 20:53:46 UTC (rev 50834)
@@ -0,0 +1,8 @@
+bin/ruby18
+bin/erb18
+bin/irb18
+bin/rdoc18
+bin/ri18
+bin/testrb18
+lib/libruby18-static.a
+lib/libruby18.dylib

Modified: users/kimuraw/ruby_select/lang/ruby186/Portfile
===================================================================
--- users/kimuraw/ruby_select/lang/ruby186/Portfile	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/lang/ruby186/Portfile	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup select 1.0
 
 name			ruby186
 version			1.8.6-p287
@@ -32,7 +33,8 @@
 				port:readline \
 				port:openssl \
 				port:zlib \
-				port:ncurses
+				port:ncurses \
+	            port:ruby_select
 
 patchfiles		patch-Makefile.in \
 				patch-configure.in \
@@ -48,6 +50,9 @@
 # linking libruby.dylib not libruby${suffix}.dylib when VENDOR_SPECIFIC = true
 patchfiles-append patch-libruby_nosuffix.diff
 
+select.group     ruby
+select.file      ${filespath}/${name}
+
 use_autoconf	yes
 
 set suffix 186

Added: users/kimuraw/ruby_select/lang/ruby186/files/ruby186
===================================================================
--- users/kimuraw/ruby_select/lang/ruby186/files/ruby186	                        (rev 0)
+++ users/kimuraw/ruby_select/lang/ruby186/files/ruby186	2009-05-10 20:53:46 UTC (rev 50834)
@@ -0,0 +1,8 @@
+bin/ruby186
+bin/erb186
+bin/irb186
+bin/rdoc186
+bin/ri186
+bin/testrb186
+lib/libruby186-static.a
+lib/libruby186.dylib

Modified: users/kimuraw/ruby_select/lang/ruby19/Portfile
===================================================================
--- users/kimuraw/ruby_select/lang/ruby19/Portfile	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/lang/ruby19/Portfile	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,6 +1,7 @@
 # $Id$
 
-PortSystem         1.0
+PortSystem     1.0
+PortGroup      select 1.0
 
 name		   ruby19
 version		   1.9.1-p0
@@ -24,15 +25,20 @@
 distname           ruby-${version}
 
 checksums          md5 0278610ec3f895ece688de703d99143e
+
+select.group     ruby
+select.file      ${filespath}/${name}
+
 use_parallel_build yes
 
 depends_lib	   port:libiconv \
 	port:readline \
 	port:openssl \
 	port:zlib \
-	port:ncurses
+	port:ncurses \
+	port:ruby_select
 
-configure.args     --enable-shared \
+configure.args --enable-shared \
 	--mandir="${prefix}/share/man" \
 	--enable-pthread \
 	--without-tk \

Added: users/kimuraw/ruby_select/lang/ruby19/files/ruby19
===================================================================
--- users/kimuraw/ruby_select/lang/ruby19/files/ruby19	                        (rev 0)
+++ users/kimuraw/ruby_select/lang/ruby19/files/ruby19	2009-05-10 20:53:46 UTC (rev 50834)
@@ -0,0 +1,8 @@
+bin/ruby1.9
+bin/erb1.9
+bin/irb1.9
+bin/rdoc1.9
+bin/ri1.9
+bin/testrb1.9
+lib/libruby1.9-static.a
+lib/libruby1.9.dylib

Modified: users/kimuraw/ruby_select/sysutils/ruby_select/Portfile
===================================================================
--- users/kimuraw/ruby_select/sysutils/ruby_select/Portfile	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/sysutils/ruby_select/Portfile	2009-05-10 20:53:46 UTC (rev 50834)
@@ -13,7 +13,7 @@
 				ruby_select symlinks the standard ruby executables \
 				in the MacPorts prefix to the selected version. \
 				you can select your "ruby" with \
-					`ruby_select ruby186|ruby18|ruby19'
+					`ruby_select none|ruby-apple|ruby186|ruby18|ruby19'
 
 homepage		http://svn.macports.org/repository/macports/contrib/select/
 master_sites	${homepage}
@@ -24,36 +24,18 @@
 
 configure.args	--mandir=${prefix}/share/man --name=ruby
 
-# select any ruby by default.
-# users may change their `ruby' with ruby_select after install.
-variant ruby18 conflicts ruby186 ruby19 description {select ruby18} {}
-variant ruby186 conflicts ruby18 ruby19 description {select ruby186} {}
-variant ruby19 conflicts ruby18 ruby186 description {select ruby19} {}
-
-default_variants +ruby18
-
 post-destroot {
 	xinstall -m 755 -d ${destroot}${prefix}/etc/select/ruby
-	xinstall -m 644 -W ${filespath} base ruby18 ruby186 ruby19 \
-		${destroot}${prefix}/etc/select/ruby
-
-	# touch dummy files (bin/ruby,..) for uninstall
-	set f [open ${filespath}/base]
-	set base [read $f]
-	close $f
-	set lines [split $base \n]
-	foreach entry ${lines} {
-		system "touch ${destroot}${prefix}/${entry}"
-	}
+	xinstall -m 644 -W ${filespath} base none ruby-apple ${destroot}${prefix}/etc/select/ruby
 }
 
-post-activate {
-	set selected ruby18
-	if {[variant_isset ruby186]} {
-		set selected ruby186
-	} elseif {[variant_isset ruby19]} {
-		set selected ruby19
-	}
-	system "${prefix}/bin/ruby_select ${selected}"
-}
+# post-activate {
+# 	set selected ruby18
+# 	if {[variant_isset ruby186]} {
+# 		set selected ruby186
+# 	} elseif {[variant_isset ruby19]} {
+# 		set selected ruby19
+# 	}
+# 	system "${prefix}/bin/ruby_select ${selected}"
+# }
 

Added: users/kimuraw/ruby_select/sysutils/ruby_select/files/none
===================================================================
--- users/kimuraw/ruby_select/sysutils/ruby_select/files/none	                        (rev 0)
+++ users/kimuraw/ruby_select/sysutils/ruby_select/files/none	2009-05-10 20:53:46 UTC (rev 50834)
@@ -0,0 +1,8 @@
+-
+-
+-
+-
+-
+-
+-
+-

Added: users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby-apple
===================================================================
--- users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby-apple	                        (rev 0)
+++ users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby-apple	2009-05-10 20:53:46 UTC (rev 50834)
@@ -0,0 +1,8 @@
+/usr/bin/ruby
+/usr/bin/erb
+/usr/bin/irb
+/usr/bin/rdoc
+/usr/bin/ri
+/usr/bin/testrb
+-
+/usr/lib/libruby.dylib

Deleted: users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby18
===================================================================
--- users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby18	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby18	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,8 +0,0 @@
-bin/ruby18
-bin/erb18
-bin/irb18
-bin/rdoc18
-bin/ri18
-bin/testrb18
-lib/libruby18-static.a
-lib/libruby18.dylib

Deleted: users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby186
===================================================================
--- users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby186	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby186	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,8 +0,0 @@
-bin/ruby186
-bin/erb186
-bin/irb186
-bin/rdoc186
-bin/ri186
-bin/testrb186
-lib/libruby186-static.a
-lib/libruby186.dylib

Deleted: users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby19
===================================================================
--- users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby19	2009-05-10 20:53:11 UTC (rev 50833)
+++ users/kimuraw/ruby_select/sysutils/ruby_select/files/ruby19	2009-05-10 20:53:46 UTC (rev 50834)
@@ -1,8 +0,0 @@
-bin/ruby1.9
-bin/erb1.9
-bin/irb1.9
-bin/rdoc1.9
-bin/ri1.9
-bin/testrb1.9
-lib/libruby1.9-static.a
-lib/libruby1.9.dylib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090510/5c0e2158/attachment-0001.html>


More information about the macports-changes mailing list