[112446] trunk/dports/_resources/port1.0/group/ruby-1.0.tcl
kimuraw at macports.org
kimuraw at macports.org
Wed Oct 23 07:25:04 PDT 2013
Revision: 112446
https://trac.macports.org/changeset/112446
Author: kimuraw at macports.org
Date: 2013-10-23 07:25:03 -0700 (Wed, 23 Oct 2013)
Log Message:
-----------
_resources/port1.0/group/ruby-1.0.tcl: allow customized installation with rubygems
let rubygems port with ruby.setup to accept destroot.env and
other destroot.* values.
"nokogiri" such as port:rb19-nokogiri and port:rb-nokogiri requires
environment "NOKOGIRI_USE_SYSTEM_LIBRARIES" to link libxml and libxslt
provided from MacPorts. (#40836)
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/ruby-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/ruby-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/ruby-1.0.tcl 2013-10-23 13:46:28 UTC (rev 112445)
+++ trunk/dports/_resources/port1.0/group/ruby-1.0.tcl 2013-10-23 14:25:03 UTC (rev 112446)
@@ -440,8 +440,15 @@
xinstall -d -m 0755 ${destroot}${ruby.gemdir}
}
+ destroot.cmd ${ruby.gem}
+ destroot.target install
+ destroot.args --local --force --install-dir ${destroot}${ruby.gemdir}
+
destroot {
- system -W ${worksrcpath} "${ruby.gem} install --local --force --install-dir ${destroot}${ruby.gemdir} ${distpath}/${distname}.gem"
+ # note: port cannot read $distpath and $distname
+ # outside of destroot {}
+ destroot.post_args ${distpath}/${distname}.gem
+ command_exec destroot
set binDir ${destroot}${ruby.gemdir}/bin
if {[file isdirectory $binDir]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131023/16ee15ef/attachment.html>
More information about the macports-changes
mailing list