summaryrefslogtreecommitdiff
path: root/archivers/ruby-xz
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2018-09-23 13:44:11 +0000
committertaca <taca@pkgsrc.org>2018-09-23 13:44:11 +0000
commit3403e669e9cec7f7f10a33a99e9a2a96c6153592 (patch)
tree759ed936294fe0ed44d8c6e69fbf016731d10c3f /archivers/ruby-xz
parent1827aa9032530150bf0934136f029ebecd4e289e (diff)
downloadpkgsrc-3403e669e9cec7f7f10a33a99e9a2a96c6153592.tar.gz
archivers/ruby-xz: update to 1.0.0
== 1.0.0 (2018-05-20) * *BreakingChange* The XZ module's methods now take any parameters beyond the IO object as real Ruby keyword arguments rather than a long argument list. * *BreakingChange* XZ.decompress_stream now honours Ruby's external and internal encoding concept instead of just returning BINARY-tagged strings. * *BreakingChange* Remove deprecated API on stream reader/writer class and instead sync the API with Ruby's zlib library (Ticket #12 by me). * *BreakingChange* StreamWriter.new and StreamReader.new do not accept a block anymore. This is part of syncing with Ruby's zlib API. * *BreakingChange* StreamReader.open and StreamWriter.open always return the new instance, even if a block is given to the method (previous behaviour was to return the return value of the block). This is part of the syncing with Ruby's zlib API. * *BreakingChange* StreamReader.new and StreamWriter.new as well as the ::open variants take additional arguments as real Ruby keyword arguments now instead of a long parameter list plus options hash. This is different from Ruby's own zlib API as that one takes both a long parameter list and a hash of additional options. ruby-xz is meant to follow zlib's semantics mostly, but not as a drop-in replacement, so this divergence from zlib's API is okay (also given that it isn't possible to replicate all possible options 1:1 anyway, since liblzma simply accepts different options as libz). If you've never used these methods' optional arguments, you should be fine. * *BreakingChange* Stream#close now returns nil instead of the number of bytes written. This syncs Stream#close with Ruby's own IO#close, which also returns nil. * *BreakingChange* Remove Stream#pos=, Stream#seek, Stream#stat. These methods irritated the minitar gem, which doesn't expect them to raise NotImplementedError, but directly to be missing if the object does not support seeking. * *BreakingChange* StreamReader and StreamWriter now honour Ruby's encoding system instead of returning only BINARY-tagged strings. * *Dependency* Remove dependency on ffi. ruby-xz now uses fiddle from the stdlib instead. * *Dependency* Remove dependency on io-like. ruby-xz now implements all the IO mechanics itself. (Ticket #10 by me) * *Dependency* Bump required Ruby version to 2.3.0. * *Fix* libzlma.dylib not being found on OS X (Ticket #15 by s0nspark).
Diffstat (limited to 'archivers/ruby-xz')
-rw-r--r--archivers/ruby-xz/Makefile8
-rw-r--r--archivers/ruby-xz/PLIST5
-rw-r--r--archivers/ruby-xz/distinfo10
-rw-r--r--archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb15
4 files changed, 11 insertions, 27 deletions
diff --git a/archivers/ruby-xz/Makefile b/archivers/ruby-xz/Makefile
index e04efa6cb86..f85e51af44b 100644
--- a/archivers/ruby-xz/Makefile
+++ b/archivers/ruby-xz/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2016/01/03 05:31:55 taca Exp $
+# $NetBSD: Makefile,v 1.14 2018/09/23 13:44:11 taca Exp $
-DISTNAME= ruby-xz-0.2.3
+DISTNAME= ruby-xz-1.0.0
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
CATEGORIES= archivers
@@ -9,9 +9,7 @@ HOMEPAGE= https://github.com/Quintus/ruby-xz
COMMENT= Ruby bindings for liblzma
LICENSE= mit
-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
+DEPENDS+= ${RUBY_NAME}-fiddle>=${RUBY_VERSION}:../../devel/ruby-fiddle
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
diff --git a/archivers/ruby-xz/PLIST b/archivers/ruby-xz/PLIST
index 4b20e5911f6..49c76a1cc46 100644
--- a/archivers/ruby-xz/PLIST
+++ b/archivers/ruby-xz/PLIST
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.4 2016/01/03 05:31:55 taca Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/09/23 13:44:11 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/AUTHORS
-${GEM_LIBDIR}/COPYING
${GEM_LIBDIR}/HISTORY.rdoc
+${GEM_LIBDIR}/LICENSE
${GEM_LIBDIR}/README.md
${GEM_LIBDIR}/lib/xz.rb
+${GEM_LIBDIR}/lib/xz/fiddle_helper.rb
${GEM_LIBDIR}/lib/xz/lib_lzma.rb
${GEM_LIBDIR}/lib/xz/stream.rb
${GEM_LIBDIR}/lib/xz/stream_reader.rb
diff --git a/archivers/ruby-xz/distinfo b/archivers/ruby-xz/distinfo
index 67cbd271b96..f7c76626065 100644
--- a/archivers/ruby-xz/distinfo
+++ b/archivers/ruby-xz/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.7 2016/01/03 05:31:55 taca Exp $
+$NetBSD: distinfo,v 1.8 2018/09/23 13:44:11 taca Exp $
-SHA1 (ruby-xz-0.2.3.gem) = ca7f717d02a3a59ca9442c55f9e2ab4125ed46b8
-RMD160 (ruby-xz-0.2.3.gem) = 726aa6e89f44f171014731a4dc698bcb2d8b867f
-SHA512 (ruby-xz-0.2.3.gem) = 68ddd53d2f3f42f179f529c9aeadb8040216d7de44d63692ef0b50ba5085baad417e61e5f61a38ff8817e966af59f00177fd4016514e93409e6be4c3fa988a8d
-Size (ruby-xz-0.2.3.gem) = 20480 bytes
+SHA1 (ruby-xz-1.0.0.gem) = cb3e7b3c9984f047772707c35b4ab877e5adb87e
+RMD160 (ruby-xz-1.0.0.gem) = 5c3016a10ebd7ccee4b8f251e7f576425016bedb
+SHA512 (ruby-xz-1.0.0.gem) = daa39268f0a48a0b87ee11528e7558dfa3629ee04570ff20acc4a5b632451fa13c06e1319b6e8772893137f727aa9fa76b58a9a1a39e51a9c6e536d9c49aa228
+Size (ruby-xz-1.0.0.gem) = 24576 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
deleted file mode 100644
index fe3440a44c6..00000000000
--- a/archivers/ruby-xz/patches/patch-lib_xz_lib__lzma.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-$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 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.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