[50194] trunk/dports/lang/ruby19
febeling at macports.org
febeling at macports.org
Mon Apr 27 08:51:51 PDT 2009
Revision: 50194
http://trac.macports.org/changeset/50194
Author: febeling at macports.org
Date: 2009-04-27 08:51:50 -0700 (Mon, 27 Apr 2009)
Log Message:
-----------
Adopt vendor_specific install location as in ruby (1.8)
Modified Paths:
--------------
trunk/dports/lang/ruby19/Portfile
Added Paths:
-----------
trunk/dports/lang/ruby19/files/site-specific.rb
trunk/dports/lang/ruby19/files/vendor-specific.rb
Modified: trunk/dports/lang/ruby19/Portfile
===================================================================
--- trunk/dports/lang/ruby19/Portfile 2009-04-27 15:42:21 UTC (rev 50193)
+++ trunk/dports/lang/ruby19/Portfile 2009-04-27 15:51:50 UTC (rev 50194)
@@ -4,6 +4,7 @@
name ruby19
version 1.9.1-p0
+revision 1
categories lang ruby
maintainers febeling openmaintainer
@@ -42,6 +43,18 @@
# Port "ruby" does the same.
configure.env UNAME_RELEASE=${os.major}
+post-destroot {
+ foreach type {site vendor} {
+ set libdir ${destroot}${prefix}/lib/ruby1.9/${type}_ruby
+ xinstall -m 0755 -d ${libdir}
+ xinstall -m 0644 ${filespath}/${type}-specific.rb ${libdir}
+ }
+
+ foreach subdir [exec find ${libdir} -type d -empty] {
+ destroot.keepdirs-append ${subdir}
+ }
+}
+
variant nosuffix description "Don't add the 1.9 program suffix to the executables. Note: that makes the port conflict with ruby (1.8), rb-rubygems, and rb-rake ports." {
configure.args-delete --program-suffix=1.9
}
Added: trunk/dports/lang/ruby19/files/site-specific.rb
===================================================================
--- trunk/dports/lang/ruby19/files/site-specific.rb (rev 0)
+++ trunk/dports/lang/ruby19/files/site-specific.rb 2009-04-27 15:51:50 UTC (rev 50194)
@@ -0,0 +1,18 @@
+# $Id $
+# Note: This is a MacPorts-specific extension to the standard content
+# of a ruby release intended to enable switching to vendor-specific
+# install location.
+#
+# Default site_ruby install library setting for normal module
+# installation. You can force site installation with the following:
+#
+# ruby -rsite-specific extconf.rb
+# or
+# ruby -rsite-specific install.rb
+#
+# This is not required for normal user module installation as they will
+# default to site_ruby, it is only provided for consistency. Developers
+# creating packages/ports should use the vendor-specific option.
+#
+VENDOR_SPECIFIC=false
+
Added: trunk/dports/lang/ruby19/files/vendor-specific.rb
===================================================================
--- trunk/dports/lang/ruby19/files/vendor-specific.rb (rev 0)
+++ trunk/dports/lang/ruby19/files/vendor-specific.rb 2009-04-27 15:51:50 UTC (rev 50194)
@@ -0,0 +1,18 @@
+# $Id $
+# Note: This is a MacPorts-specific extension to the standard content
+# of a ruby release intended to enable switching to vendor-specific
+# install location.
+#
+# Custom vendor_ruby install library setting for MacPorts module
+# installation. You can force vendor installation with the following:
+#
+# ruby -rvendor-specific extconf.rb
+# or
+# ruby -rvendor-specific install.rb
+#
+# This causes vendor-specific installation mode. The default without
+# this is to do a site-specific installation, which is recommended for
+# general user installation of modules.
+#
+VENDOR_SPECIFIC=true
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090427/efbf5b49/attachment.html>
More information about the macports-changes
mailing list