]> Pileus Git - ~andy/sunrise/blob - dev-libs/librets/files/librets-1.5.3-extconf.rb.patch
app-misc/pycarddav: Bump to 0.4
[~andy/sunrise] / dev-libs / librets / files / librets-1.5.3-extconf.rb.patch
1 Index: project/swig/ruby/extconf.rb
2 ===================================================================
3 --- project/swig/ruby/extconf.rb        (revision 1547)
4 +++ project/swig/ruby/extconf.rb        (revision 1549)
5 @@ -60,6 +60,11 @@
6  create_makefile('librets_native')
7  
8  orig_makefile = IO::read("Makefile")
9 +if RUBY_PLATFORM =~ /linux/
10 +  # Make sure the proper version boost libraries are detected first by changing ruby's create_makefile library declaration order
11 +  orig_makefile.gsub!(/LIBS = \$\(LIBRUBYARG_SHARED\)(.+)/, "LIBS = \\1 \$\(LIBRUBYARG_SHARED\)");
12 +  orig_makefile.gsub!(/(-o \$@ \$\(OBJS\))( \$\(LIBPATH\) \$\(DLDFLAGS\) \$\(LOCAL_LIBS\))( \$\(LIBS\))/, "\\1\\3\\2")
13 +end
14  File.open("Makefile", "w") do |mfile|
15    mfile << makefile_prefix
16    mfile << orig_makefile