summaryrefslogtreecommitdiff
path: root/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb
blob: d43833e2f0af8419efe9ae6d51b912981a427612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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