mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-459. Ruby installation always tries to write to /Library/Ruby/site
This patch adds a RUBY_PREFIX option similiar to JAVA_PREFIX or PY_PREFIX. Patch: Matthieu Imbert git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@943698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb90e77e45
commit
3f0b526d2d
@ -37,6 +37,11 @@ AC_ARG_VAR([JAVA_PREFIX], [Prefix for installing the Java lib jar.
|
||||
Default = "/usr/local/lib"])
|
||||
AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"])
|
||||
|
||||
AC_ARG_VAR([RUBY_PREFIX], [Prefix for installing Ruby modules.
|
||||
(Normal --prefix is ignored for Ruby because
|
||||
Ruby has different conventions.)
|
||||
Default = none, let ruby setup decide])
|
||||
|
||||
AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules.
|
||||
(Normal --prefix is ignored for PHP because
|
||||
PHP has different conventions.)
|
||||
|
@ -29,7 +29,7 @@ EXTRA_DIST = \
|
||||
spec
|
||||
|
||||
all-local:
|
||||
$(RUBY) setup.rb config
|
||||
if [ -n "$(RUBY_PREFIX)" ] ; then $(RUBY) setup.rb config --prefix=$(DESTDIR)$(RUBY_PREFIX) --rbdir='$$libdir/ruby' --sodir='$$libdir/ruby' ; elif [ -n "$(DESTDIR)" ] ; then $(RUBY) setup.rb config --prefix=$(DESTDIR) ; else $(RUBY) setup.rb config ; fi
|
||||
$(RUBY) setup.rb setup
|
||||
|
||||
install-exec-hook:
|
||||
|
Loading…
Reference in New Issue
Block a user