1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/irc/weechat/files/patch-cmake-FindRuby_cmake
Martin Wilke 7cd5911d69 - Fix building against ruby19
- Add missing documentation to pkg-plist

PR:		150745
Submitted by:	Jase Thew <freebsd@beardz.net>
2010-09-30 04:14:36 +00:00

27 lines
985 B
Plaintext

--- cmake/FindRuby.cmake.orig 2010-01-05 21:12:22.000000000 +0000
+++ cmake/FindRuby.cmake 2010-01-05 21:14:40.000000000 +0000
@@ -35,7 +35,7 @@
IF(RUBY_EXECUTABLE)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['rubyhdrdir'] || Config::CONFIG['archdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['rubyhdrdir'] || Config::CONFIG['topdir']"
OUTPUT_VARIABLE RUBY_ARCH_DIR
)
@@ -45,12 +45,12 @@
)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['libdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::TOPDIR + '/lib'"
OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH
)
EXECUTE_PROCESS(
- COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['rubylibdir']"
+ COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::TOPDIR + '/lib/ruby/' + Config::CONFIG['ruby_version']"
OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH
)