summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-08-21 14:20:15 +0200
committerAlexis Ballier <aballier@gentoo.org>2015-08-21 14:20:15 +0200
commit5f324a6511dc18f2846c7f0a5a948aa015900b3b (patch)
tree48bdf9841d6ec25b00872bf37d64c85baaaf75fa /media-libs/mlt
parentmedia-video/mkvtoolnix: bump to 8.3.0 (diff)
downloadgentoo-5f324a6511dc18f2846c7f0a5a948aa015900b3b.tar.gz
gentoo-5f324a6511dc18f2846c7f0a5a948aa015900b3b.tar.bz2
gentoo-5f324a6511dc18f2846c7f0a5a948aa015900b3b.zip
media-libs/mlt: fix ruby patch.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-libs/mlt')
-rw-r--r--[-rwxr-xr-x]media-libs/mlt/files/mlt-0.9.8-ruby-link.patch29
1 files changed, 14 insertions, 15 deletions
diff --git a/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch b/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch
index 3dd319a54a2f..9b2327d1dc87 100755..100644
--- a/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch
+++ b/media-libs/mlt/files/mlt-0.9.8-ruby-link.patch
@@ -1,20 +1,19 @@
-The build system tries to link to installed system libraries first, which
+The build system tries to link to installed system libraries first, which
fails because the ABI has changed...
---- swig/ruby/build
-+++ swig/ruby/build
-@@ -0,0 +1,14 @@
-+#!/usr/bin/env ruby
-+require 'mkmf'
-+if ARGV.shift == 'clean'
-+ system( "rm -f *.cxx *.so *.o mlt.i ../.ruby Makefile" )
-+ exit 0
-+end
-+system( "ln -sf ../mlt.i" )
+Index: mlt-0.9.8/src/swig/ruby/build
+===================================================================
+--- mlt-0.9.8.orig/src/swig/ruby/build
++++ mlt-0.9.8/src/swig/ruby/build
+@@ -5,8 +5,10 @@ if ARGV.shift == 'clean'
+ exit 0
+ end
+ system( "ln -sf ../mlt.i" )
+system( "ln -sf ../../framework/libmlt.so" )
+system( "ln -sf ../../mlt++/libmlt++.so" )
-+system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
-+$CFLAGS += " -I../.. " + (ENV.has_key?('CXXFLAGS')? ENV['CXXFLAGS'] : '')
+ system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
+ $CFLAGS += " -I../.. " + (ENV.has_key?('CXXFLAGS')? ENV['CXXFLAGS'] : '')
+-$LDFLAGS += " -L../../mlt++ -lmlt++"
+$LIBS += " -lmlt++ -lmlt -lstdc++"
-+create_makefile('mlt')
-+system( "make" )
+ create_makefile('mlt')
+ system( "make" )