diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2012-03-16 15:52:38 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2012-03-16 15:52:38 +0000 |
| commit | 63b12085111a19728a45577f92d8734b926b770d (patch) | |
| tree | d467a442e84bddd6f7d9a267060b1a2b42c366f5 /irc/xchat-ruby/files/rubypath.rb | |
| parent | - Drop unknown post-deinstall target (diff) | |
- fix build with ruby19
Feature safe: yes
Diffstat (limited to 'irc/xchat-ruby/files/rubypath.rb')
| -rw-r--r-- | irc/xchat-ruby/files/rubypath.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/irc/xchat-ruby/files/rubypath.rb b/irc/xchat-ruby/files/rubypath.rb new file mode 100644 index 000000000000..783d1d4a382a --- /dev/null +++ b/irc/xchat-ruby/files/rubypath.rb @@ -0,0 +1,12 @@ +#!/usr/local/bin/ruby +require "rbconfig" +if RbConfig::CONFIG[ 'rubyhdrdir' ].nil? + puts RbConfig::CONFIG['archdir'] +else + print RbConfig::CONFIG['rubyhdrdir'] + print " -I" + print RbConfig::CONFIG['rubyhdrdir'] + print "/" + puts RbConfig::CONFIG['sitearch'] +end +# eof |
