File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
# These line gets substituted with the actual Config::CONFIG items location by extconf.rb
2
2
PREFIX = notspecified
3
3
BINDIR = $(PREFIX ) /bin
4
- SITELIBDIR = $(PREFIX ) /lib/ruby/site_ruby/1.8
4
+ INSTALLDIR = $(PREFIX ) /lib/ruby/shared/rubygems/defaults
5
+ OLDINSTALLDIR = $(PREFIX ) /lib/ruby/site_ruby/1.8/rubygems/defaults
5
6
6
7
ifeq (true,$(shell test -x $(BINDIR ) /jruby && echo true) )
7
8
RAKE =$(BINDIR ) /jruby -S rake
@@ -37,9 +38,18 @@ install:
37
38
@if [ ! -w $( BINDIR) ]; then echo " '$( BINDIR) ' does not exist or cannot write to '$( BINDIR) '." ; exit 1; fi
38
39
@if [ -f $( BINDIR) /jruby -a ! -w $( BINDIR) /jruby ]; then echo " Cannot write to '$( BINDIR) /jruby'." ; exit 1; fi
39
40
cp ./jruby $(BINDIR ) /jruby
40
- @if [ x$( SITELIBDIR) = xnotspecified/lib/ruby/site_ruby/1.8 ]; then echo " Please define where to install by passing PREFIX=<jruby-home>." ; exit 1; fi
41
- @if [ ! -w $( SITELIBDIR) ]; then echo " '$( SITELIBDIR) ' does not exist or cannot write to '$( SITELIBDIR) '." ; exit 1; fi
42
- cp ./lib/rubygems/defaults/jruby_native.rb $(SITELIBDIR ) /rubygems/defaults
41
+ @if [ x$( PREFIX) = xnotspecified ]; then echo " Please define where to install by passing PREFIX=<jruby-home>." ; exit 1; fi
42
+ @if [ ! -w $( INSTALLDIR) ]; then \
43
+ if [ ! -w $( OLDINSTALLDIR) ]; then \
44
+ echo " Neither '$( INSTALLDIR) ' nor '$( OLDINSTALLDIR) ' exist and are writable" ; exit 1; \
45
+ else \
46
+ echo " cp ./lib/rubygems/defaults/jruby_native.rb $( OLDINSTALLDIR) " ; \
47
+ cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR ) ; \
48
+ fi ; \
49
+ else \
50
+ echo " cp ./lib/rubygems/defaults/jruby_native.rb $( INSTALLDIR) " ; \
51
+ cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR ) ; \
52
+ fi ;
43
53
44
54
test :
45
55
$(RAKE )
Original file line number Diff line number Diff line change 2
2
3
3
mf = File . read ( 'Makefile' )
4
4
mf = mf . gsub ( /^BINDIR\s *=.*$/ , "BINDIR = #{ Config ::CONFIG [ 'bindir' ] } " )
5
- mf = mf . gsub ( /^SITELIBDIR\s *=.*$/ , "SITELIBDIR = #{ Config ::CONFIG [ 'sitelibdir' ] } " )
5
+ mf = mf . gsub ( /^PREFIX\s *=.*$/ , "PREFIX = #{ File . dirname ( Config ::CONFIG [ 'libdir' ] ) } " )
6
+ puts mf
6
7
File . open ( 'Makefile' , 'wb' ) { |f | f << mf }
Original file line number Diff line number Diff line change 1
1
module JRubyLauncher
2
- VERSION = "1.0.9 "
2
+ VERSION = "1.0.10 "
3
3
end
You can’t perform that action at this time.
0 commit comments