From 7832695ce49f7acc19fe154a4e2fca197bde5364 Mon Sep 17 00:00:00 2001 From: minskim Date: Wed, 13 Nov 2013 18:10:20 +0000 Subject: [PATCH] Let ruby-xz use a full filename in loading a library. --- archivers/ruby-xz/Makefile | 3 ++- archivers/ruby-xz/distinfo | 4 ++-- archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/archivers/ruby-xz/Makefile b/archivers/ruby-xz/Makefile index 565c4baee432..c21b65b3675a 100644 --- a/archivers/ruby-xz/Makefile +++ b/archivers/ruby-xz/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.8 2012/09/11 19:47:00 asau Exp $ +# $NetBSD: Makefile,v 1.9 2013/11/13 18:10:20 minskim Exp $ DISTNAME= ruby-xz-0.1.1 PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//} +PKGREVISION= 1 CATEGORIES= archivers MAINTAINER= minskim@NetBSD.org diff --git a/archivers/ruby-xz/distinfo b/archivers/ruby-xz/distinfo index 98b716ff195f..187a9159b48a 100644 --- a/archivers/ruby-xz/distinfo +++ b/archivers/ruby-xz/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.3 2012/03/20 12:29:23 taca Exp $ +$NetBSD: distinfo,v 1.4 2013/11/13 18:10:20 minskim Exp $ SHA1 (ruby-xz-0.1.1.gem) = e90f6d1d5cc0cdf5a483d0b738e9c3510bb5da77 RMD160 (ruby-xz-0.1.1.gem) = 44baebe06c0558e9f4fb3490413bf08a83e12645 Size (ruby-xz-0.1.1.gem) = 17408 bytes -SHA1 (patch-lib_xz_lib__lzma.rb) = a4622d2941503fdd7f06bc977770575628efe1c8 +SHA1 (patch-lib_xz_lib__lzma.rb) = e26ec075ad4b05da397bce4ae80b939567c93b3e diff --git a/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb b/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb index d43833e2f0af..e32281db2c09 100644 --- a/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb +++ b/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb @@ -1,4 +1,4 @@ -$NetBSD: patch-lib_xz_lib__lzma.rb,v 1.1 2012/03/20 07:26:05 taca Exp $ +$NetBSD: patch-lib_xz_lib__lzma.rb,v 1.2 2013/11/13 18:10:20 minskim Exp $ Use an absolute path for a library to load. @@ -9,7 +9,7 @@ Use an absolute path for a library to load. :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) } ++ ffi_lib ['liblzma.@SHLIB_EXT@.2', 'liblzma.@SHLIB_EXT@', 'liblzma'].map! { |f| File.join('@LOCALBASE@/lib', f) } attach_function :lzma_easy_encoder, [:pointer, :uint32, :int], :int attach_function :lzma_code, [:pointer, :int], :int