diff options
author | taca <taca@pkgsrc.org> | 2015-03-01 12:58:16 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-03-01 12:58:16 +0000 |
commit | 3e1f8c09485e26b63cf38a606c9a905a040e6f5d (patch) | |
tree | 0a9c542c5e415e5e891812479f6fe493a7f94a09 | |
parent | eada9a9c8b0daedcd9e2123c579dfbc6a0ae301a (diff) | |
download | pkgsrc-3e1f8c09485e26b63cf38a606c9a905a040e6f5d.tar.gz |
Update ruby-xz to 0.2.1.
0.2.1 (2014-02-08)
* Build the gem properly on Ruby 2.0+ (PR #8 by Nana Sakisaka (saki7))
* Release the GIL when interfacing with liblzma (PR #7 by Lars Christensen
* (larsch))
0.2.0 (2013-06-23)
* Fix #6 (errors on JRuby) by Ben Nagy
* Remove 1.8 compatibility
-rw-r--r-- | archivers/ruby-xz/Makefile | 19 | ||||
-rw-r--r-- | archivers/ruby-xz/PLIST | 4 | ||||
-rw-r--r-- | archivers/ruby-xz/distinfo | 10 | ||||
-rw-r--r-- | archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb | 16 |
4 files changed, 19 insertions, 30 deletions
diff --git a/archivers/ruby-xz/Makefile b/archivers/ruby-xz/Makefile index c21b65b3675..9ec2a33295d 100644 --- a/archivers/ruby-xz/Makefile +++ b/archivers/ruby-xz/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.9 2013/11/13 18:10:20 minskim Exp $ +# $NetBSD: Makefile,v 1.10 2015/03/01 12:58:16 taca Exp $ -DISTNAME= ruby-xz-0.1.1 +DISTNAME= ruby-xz-0.2.1 PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//} -PKGREVISION= 1 CATEGORIES= archivers MAINTAINER= minskim@NetBSD.org @@ -14,9 +13,7 @@ DEPENDS+= xz-[0-9]*:../../archivers/xz DEPENDS+= ${RUBY_PKGPREFIX}-ffi-[0-9]*:../../devel/ruby-ffi DEPENDS+= ${RUBY_PKGPREFIX}-io-like-[0-9]*:../../devel/ruby-io-like -RUBYGEMS_REQD= 1.8.10 - -PRIVILEGED_STAGES+= clean +RUBY_VERSION_SUPPORTED= 193 200 21 EVAL_PREFIX+= XZ_PREFIX=xz @@ -24,15 +21,7 @@ SUBST_CLASSES+= path SUBST_STAGE.path= pre-configure SUBST_FILES.path= lib/xz/lib_lzma.rb SUBST_SED.path= -e "s,@LOCALBASE@,${XZ_PREFIX},g" -SUBST_SED.path+= -e "s,@SHLIB_EXT@,${SHLIB_EXT},g" - -.include "../../mk/bsd.prefs.mk" - -.if ${_OPSYS_SHLIB_TYPE} == "dylib" -SHLIB_EXT= dylib -.else -SHLIB_EXT= so -.endif +SUBST_SED.path+= -e "s,@SHLIB_EXT@,${RUBY_SLEXT},g" .include "../../lang/ruby/gem.mk" .include "../../mk/bsd.pkg.mk" diff --git a/archivers/ruby-xz/PLIST b/archivers/ruby-xz/PLIST index 1fbe83e5266..af191c7cacc 100644 --- a/archivers/ruby-xz/PLIST +++ b/archivers/ruby-xz/PLIST @@ -1,8 +1,8 @@ -@comment $NetBSD: PLIST,v 1.2 2012/03/20 07:26:05 taca Exp $ +@comment $NetBSD: PLIST,v 1.3 2015/03/01 12:58:16 taca Exp $ ${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/COPYING ${GEM_LIBDIR}/HISTORY.rdoc ${GEM_LIBDIR}/README.rdoc -${GEM_LIBDIR}/VERSION ${GEM_LIBDIR}/lib/xz.rb ${GEM_LIBDIR}/lib/xz/lib_lzma.rb ${GEM_LIBDIR}/lib/xz/stream.rb diff --git a/archivers/ruby-xz/distinfo b/archivers/ruby-xz/distinfo index 187a9159b48..d121b99ea38 100644 --- a/archivers/ruby-xz/distinfo +++ b/archivers/ruby-xz/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2013/11/13 18:10:20 minskim Exp $ +$NetBSD: distinfo,v 1.5 2015/03/01 12:58:16 taca 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) = e26ec075ad4b05da397bce4ae80b939567c93b3e +SHA1 (ruby-xz-0.2.1.gem) = c9fa108b21a5f5fb23ff5185d827e1ef5bdd6b78 +RMD160 (ruby-xz-0.2.1.gem) = 94b9d4f0636585ec90c7ff4a092ed2306addb651 +Size (ruby-xz-0.2.1.gem) = 16896 bytes +SHA1 (patch-lib_xz_lib__lzma.rb) = f0ab463ffab401a935551b560af28e26bff8d4eb 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 e32281db2c0..fe3440a44c6 100644 --- a/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb +++ b/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb @@ -1,15 +1,15 @@ -$NetBSD: patch-lib_xz_lib__lzma.rb,v 1.2 2013/11/13 18:10:20 minskim Exp $ +$NetBSD: patch-lib_xz_lib__lzma.rb,v 1.3 2015/03/01 12:58:17 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.orig 2014-08-15 07:57:40.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 ['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 + +- ffi_lib ['lzma.so.5', 'lzma.so', 'lzma'] ++ ffi_lib ['liblzma.@SHLIB_EXT@.5', 'liblzma.@SHLIB_EXT@', 'liblzma'].map! { |f| File.join('@LOCALBASE@/lib', f) } + + attach_function :lzma_easy_encoder, [:pointer, :uint32, :int], :int, :blocking => true + attach_function :lzma_code, [:pointer, :int], :int, :blocking => true |