diff options
Diffstat (limited to 'archivers/ruby-xz/patches')
-rw-r--r-- | archivers/ruby-xz/patches/patch-lib_xz.rb | 15 | ||||
-rw-r--r-- | archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb | 15 |
2 files changed, 15 insertions, 15 deletions
diff --git a/archivers/ruby-xz/patches/patch-lib_xz.rb b/archivers/ruby-xz/patches/patch-lib_xz.rb deleted file mode 100644 index f46f7adb5b6..00000000000 --- a/archivers/ruby-xz/patches/patch-lib_xz.rb +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-lib_xz.rb,v 1.1.1.1 2011/10/03 19:51:05 minskim Exp $ - -Use an absolute path for a library to load. - ---- lib/xz.rb.orig 2011-10-02 00:41:00.000000000 +0000 -+++ lib/xz.rb -@@ -77,7 +77,7 @@ module XZ - :lzma_buf_error, - :lzma_prog_error - -- ffi_lib "liblzma" -+ ffi_lib "@LOCALBASE@/lib/liblzma.@SHLIB_EXT@" - - attach_function :lzma_easy_encoder, [:pointer, :uint32, :int], :int - attach_function :lzma_code, [:pointer, :int], :int diff --git a/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb b/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb new file mode 100644 index 00000000000..d43833e2f0a --- /dev/null +++ b/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_xz_lib__lzma.rb,v 1.1 2012/03/20 07:26:05 taca Exp $ + +Use an absolute path for a library to load. + +--- lib/xz/lib_lzma.rb.orig 2012-03-19 09:42:58.000000000 +0000 ++++ lib/xz/lib_lzma.rb +@@ -71,7 +71,7 @@ module XZ + :lzma_buf_error, + :lzma_prog_error + +- ffi_lib ['lzma.so.2', 'lzma.so', 'lzma'] ++ ffi_lib ['lzma.@SHLIB_EXT@.2', 'lzma.@SHLIB_EXT@', 'lzma'].map! { |f| File.join('@LOCALBASE@/lib', f) } + + attach_function :lzma_easy_encoder, [:pointer, :uint32, :int], :int + attach_function :lzma_code, [:pointer, :int], :int |