diff options
author | taca <taca> | 2002-03-16 03:51:54 +0000 |
---|---|---|
committer | taca <taca> | 2002-03-16 03:51:54 +0000 |
commit | 04907a47e1f1321b9902f193b129932e578f57f6 (patch) | |
tree | 83e34b2a4fb1f4cc83d421fe47a09c8066918366 /archivers | |
parent | 7702d4aa4a33d5617d921129cb91c83377a49a8f (diff) | |
download | pkgsrc-04907a47e1f1321b9902f193b129932e578f57f6.tar.gz |
Update ruby-zlib package to 0.5.1.
2002-03-14 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.1 released.
2002-03-14 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (gzfile_read_header): flush input buffer after reading header.
Thanks to HARUYAMA Seigo <haruyama@queen-ml.org>.
2002-03-14 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.rd.src: typo fixed.
2002-03-14 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0 released.
2002-03-14 UENO Katsuhiro <katsu@blue.sky.or.jp>
* depend: added $(srcdir).
2002-03-14 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c: use EXTERN instead of extern.
2002-03-12 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (gzwriter_defout_ensure, gzwriter_call_defout, CALL_DEFOUT):
added.
* zlib.c (rb_gzwriter_print): set myself to rb_defout and call
Kernel::print instead of copying codes from io.c.
(rb_gzwriter_puts): ditto.
2002-03-12 UENO Katsuhiro <katsu@blue.sky.or.jp>
* extconf.rb: added have_ruby_func().
* extconf.rb: added checks for rb_io_print, rb_io_printf, rb_io_puts
and rb_io_addstr.
* zlib.c (rb_gzwriter_addstr): use rb_io_addstr if it is extern.
(rb_gzwriter_print): ditto.
(rb_gzwriter_printf): ditto.
(rb_gzwriter_puts): ditto.
2002-02-11 UENO Katsuhiro <katsu@blue.sky.or.jp>
* makerd.rb: tiny bugfix.
* zlib.rd.src: reviced Zlib, ZStream, Deflate and Inflate.
2002-02-06 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0-pre6 released.
2002-02-04 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (Init_zlib): remove method Zlib::Error#next_in.
* zlib.c (raise_zlib_error): Zlib::Error doesn't keep next_in any more.
The stream preserves next_in and next_out whether an error occurs.
* zlib.c (ZSTREAM_IS_FINALIZE): new macro.
2002-02-04 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_append_buffer2,zstream_append_input2): new macro.
2002-02-04 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (Init_zlib): new method Zlib::ZStream#stream_end? and
Zlib::ZStream#ended?.
* zlib.rd.src: add descriptions for above two methods.
2002-02-04 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (rb_deflate_deprecated): call super.
(rb_inflate_deprecated): ditto.
(rb_gzwriter_deprecated): ditto.
(rb_gzreader_deprecated): ditto.
* zlib.c (Init_zlib): warning message is printed when Deflate.deflate
and Inflate.inflate is used.
* zlib.c (zstream_end): keep both buffers whether the stream is
finished.
(rb_zstream_flush_next_in): works well regardless of the status of the
stream.
(rb_zstream_flush_next_out): ditto.
(rb_zstream_avail_out): ditto.
(rb_zstream_avail_in): ditto.
2002-02-04 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_run2): removed.
(do_deflate,do_inflate): derived from zstream_run2().
(rb_deflate_deflate): use do_deflate() instead of zstream_run2().
(rb_deflate_addstr): ditto.
(rb_inflate_inflate): use do_inflate() instead of zstream_run2().
(rb_inflate_addstr): ditto.
* zlib.c (zstream_run_loop,zstream_run): integrated into zstream_run().
* zlib.c (rb_deflate_s_deflate): Zlib::Deflate.deflate doesn't
accept nil.
(rb_inflate_s_inflate): Zlib::Inflate.inflate, neither.
2002-02-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (rb_deflate_flush): doesn't call zstream_run() if
flush == Z_NO_FLUSH.
(rb_gzwriter_flush): ditto.
* zlib.rd.src: appended description for Zlib::ZStream#finish.
2002-02-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_run_loop): zero-length check should be done
before calling zstream_run().
(gzfile_write): ditto.
(gzfile_read_more): ditto.
* zlib.c (rb_gzwriter_write): calls gzfile_write() even if len == 0.
* zlib.c (gzfile_read_more): ZSTREAM_IS_FINISHED() should be true
without calling zstream_run() when gzfile_read_raw() returns nil.
2002-02-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_sync,rb_infalte_sync): new method Inflate#sync.
* zlib.rd.src: added description for Inflate#sync.
* zlib.c (rb_deflate_flush): bugfix.
2002-02-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (rb_zlib_cannot_allocate,Init_zlib): Zlib::ZStream and
Zlib::GzipFile are abstract classes; they must not allocate their
instances.
2002-02-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0-pre5 released.
2002-02-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_run_loop): doesn't start compressing/decompressing
loop if flush is set to Z_NO_FLUSH and the input is an empty string.
* zlib.c (zstream_run_loop): rewrote.
* zlib.c (zstream_append_input): doesn't make buffer if len == 0.
* zlib.c (zstream_run2): when flush == Z_FINISH, next_in should be
non-NULL even if avail_in == 0. Otherwise, Z_STREAM_ERROR may be
caused.
(rb_zstream_finish): ditto.
(rb_deflate_flush): ditto.
(rb_inflate_s_inflate): ditto.
(gzfile_writer_end): ditto.
(rb_gzwriter_flush): ditto.
* zlib.c (ZSTREAM_AVAIL_OUT_MIN): renamed ZSTREAM_AVAIL_OUT_MIN to
ZSTREAM_AVAIL_OUT_STEP_MIN.
* zlib.c (ZSTREAM_AVAIL_OUT_STEP): renamed ZSTREAM_AVAIL_OUT_STEP to
ZSTREAM_AVAIL_OUT_STEP_MAX.
(ZSTREAM_AVAIL_OUT_STEP_MIN): set to 2048.
(ZSTREAM_AVAIL_OUT_STEP_MAX): set to 16384.
* zlib.c (zstream_detach_input): added.
(rb_zstream_flush_next_in,Init_zlib): new method ZStream#flush_next_in.
* rzlib.rd.src: add descriptions for new methods.
2002-01-31 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_expand_buffer_into): added.
(rb_zstream_avail_out): new method ZStream#avail_out.
(rb_zstream_set_avail_out): new method ZStream#avail_out=.
(rb_zstream_avail_in): new method ZStream#avail_in.
(Init_zlib): define above new methods.
* zlib.c (zstream_init): next_in and avail_in should be initialized.
* zlib.c (zlib_mem_alloc,zlib_mem_free,zstream_init): use Ruby's
memory allocation for zalloc and zfree.
* zlib.c (Init_zlib): added constant Zlib::FINISH and Zlib::VERSION.
(zstream_init):
* zlib.rd.src: added description for Zlib::FINISH and Zlib::VERSION.
* extconf.rb: '<<' was missed.
* zlib.c (do_checksum): called checksum function twice when
no argument is given to Zlib.crc32 or Zlib.adler32.
* zlib.c (rb_zlib_str_value): StringValue() caused segv with
Ruby-1.6 if argument is nil.
* zlib.c (zstream_run_loop): if flush == Z_FINISH, the loop
must be continued until z->func->run returns Z_STREAM_END.
2002-01-29 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (gzfile_reader_get_unused): gz->z.input may be nil.
2002-01-29 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0-pre4 released.
2002-01-29 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (Init_zlib): Zlib::Deflate.new and Zlib::Inflate.new are
integrated into Zlib::ZStream.new.
* zlib.rd.src: added description for Zlib::ZStream.new.
2002-01-28 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c: adapt to ruby-1.7.
* zlib.c: redefine macros for backward compatibility.
* zlib.c (Init_zlib): added allocate methods.
(rb_deflate_s_allocate): ditto.
(rb_inflate_s_allocate): ditto.
(rb_gzwriter_s_allocate): ditto.
(rb_gzreader_s_allocate): ditto.
* zlib.c (rb_gzwriter_s_new,rb_gzreader_s_new): removed and
integreted into rb_gzfile_s_new.
* zlib.c (rb_zlib_version): return value of Zlib.version should be
tainted.
* extconf.rb: changed check for rb_str_buf_new.
* zlib.rd.src: added description for Zlib::GzipFile.new.
2002-01-09 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0-pre3 released.
2002-01-08 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c: added some macros for ruby-1.7 from Nobuyoshi Nakada's
patch ([ruby-ext:02048]). But they are disabled by #if 0.
* zlib.c: defined macro RB_ZLIB_NORETRURN.
* zlib.c, extconf.rb: NO_BLOCK_GIVEN_P -> !HAVE_BLOCK_GIVEN_P.
RUBY_NEW_NORETURN -> HAVE_NEW_NORETURN.
* zlib.rd.src: put untranslated parts into English.
* zlib.c (gzfile_ensure_close): close gzfile directly instead of
calling close method.
2002-01-07 WATANABE Hirofumi <eban@os.rim.or.jp>
* extconf.rb: cygwin is not a Win32.
2002-01-07 UENO Katsuhiro <katsu@blue.sky.or.jp>
* extconf.rb: add dir_config("zlib").
2002-01-06 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0-pre2 released.
2002-01-06 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (gzfile_writer_end): protect gzfile_write_raw() at finalize.
* zlib.c (gzfile_ensure_close): close method must be sent to obj
itself, not gz->io.
* extconf.rb: added msg_check.
* extconf.rb: define "NO_BLOCK_GIVEN_P" instead of "rb_block_given_p"
if block_given? doesn't exist.
* zlib.c: stop using RUBY_VERSION_CODE.
2002-01-06 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* extconf.rb: added checks for Ruby-1.7.
2002-01-06 Tanaka Akira <akr@m17n.org>
* zlib.rd.src: modified.
2002-01-06 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.rd.src: modified.
2002-01-06 UENO Katsuhiro <katsu@blue.sky.or.jp>
* version 0.5.0-pre1 released.
2002-01-06 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.rd.src: rewrote the document by RD.
* makerd.rb: added script to generate language-separated RD.
* depend: added dependencies for documents.
2002-01-05 UENO Katsuhiro <katsu@blue.sky.or.jp>
* extconf.rb: check CONFIG['target_os'], not CONFIG['host_os'].
* zlib.c: added member `input' to struct zstream.
(zstream_append_input): added for expandable input buffer.
(zstream_discard_input): ditto.
(zstream_reset_input): ditto.
(zstream_passthrough_input): ditto.
(zstream_run,zstream_run_loop): divided the inflate/deflate loop from
zstream_run to zstream_run_loop and added consideration for NeedDict.
* zlib.c (raize_zlib_error): added the third parameter `next_in'.
(rb_zerror_next_in): added Zlib::ZError#next_in.
* zlib.c: removed member `unused' from struct gzfile.
(gzfile_reader_get_unused): GzipReader#unused returns nil if
the GzipReader object is closed.
* zlib.c (Init_zlib): GzipReader and GzipWriter class are deprecated;
use Zlib::GzipReader and Zlib::GzipWriter.
(Init_zlib): Zlib::GzipReader::OS_* -> Zlib::OS_*
(Init_Zlib): Zlib::GzipReader::{NoFooter,CRCError,LengthError} ->
Zlib::GzipFile::*
* zlib.c: add ZSTREAM_FLAG_FINALIZE to prevent segv in finalizer.
* zlib.c (gzfile_writer_end): warn Zlib::GzipWriter object must be
closed explicitly.
* zlib.c (rb_zstream_flush_out): rename to rb_zstream_flush_next_out.
(Init_zlib): rename ZStream#flush_out to ZStream#flush_next_out.
* zlib.c (rb_zerror_initialize): added Zlib::Error#initialize.
2002-01-02 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c: rename `flag' in struct zstream to `flags'.
* zlib.c: reformat and rearrenge the code.
* zlib.c: refactor functions and macros for zstream and gzfile.
Since these are very core funcs, the whole of zlib.c is
almostly rewrote. No changes must be found in behaviors
of any classes and modules, I hope.
* zlib.c: use OBJ_INFECT instead of if(OBJ_TAINTED)OBJ_TAINT.
* zlib.c (rb_deflate_clone): call CLONESETUP.
* zlib.c: removed sanity checks for arguments for deflateInit2
and inflateInit2.
(value_to_compression_level): removed.
(value_to_window_bits): ditto.
(value_to_memlevel): ditto.
(value_to_strategy): ditto.
(value_to_flush): ditto.
* zlib.c (rb_deflate_s_new,rb_deflate_initialize): only do allocation
in Deflate::new and initializing in Deflate#initialize.
(rb_inflate_s_new,rb_inflate_initialize): ditto.
* zlib.c (Init_zlib): Deflate and Inflate class are deprecated;
use Zlib::Deflate and Zlib::Inflate.
(rb_deflate_deprecated,rb_inflate_deprecated): added for
warning this is a deprecated class.
* zlib.c (Init_zlib): constants defined under Deflate and Inflate are
moved under Zlib.
* zlib.c (rb_gzwriter_puts): adapt to ruby-1.7.
* zlib.c (Init_zlib): rename Zlib::Gzip to Zlib::GzipFile.
2002-01-01 UENO Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c: make all functions static.
* zlib.c: update copyright line.
* THANKS: added.
2001-09-15 Ueno Katsuhiro <katsu@blue.sky.or.jp>
* zlib.c (zstream_shift_buffer): bug fixed about buffer overflow.
Thanks to Ned Konz <ned@bike-nomad.com>.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/ruby-zlib/Makefile | 5 | ||||
-rw-r--r-- | archivers/ruby-zlib/distinfo | 7 | ||||
-rw-r--r-- | archivers/ruby-zlib/patches/patch-aa | 16 |
3 files changed, 5 insertions, 23 deletions
diff --git a/archivers/ruby-zlib/Makefile b/archivers/ruby-zlib/Makefile index d6b72a95745..162d3bdeeaf 100644 --- a/archivers/ruby-zlib/Makefile +++ b/archivers/ruby-zlib/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2001/12/30 16:49:40 taca Exp $ +# $NetBSD: Makefile,v 1.3 2002/03/16 03:51:54 taca Exp $ # FreeBSD: ports/archivers/ruby-zlib/Makefile,v 1.7 2000/09/26 22:01:12 knu Exp DISTNAME= ruby-zlib-${VERSION} PKGNAME= ${RUBY_PKGNAMEPREFIX}zlib-${VERSION} -PKGREVISION= 1 CATEGORIES= archivers MASTER_SITES= http://www.blue.sky.or.jp/atelier/ruby/ @@ -11,7 +10,7 @@ MAINTAINER= taca@netbsd.org HOMEPAGE= http://www.blue.sky.or.jp/atelier/ruby/ COMMENT= Zlib library for Ruby -VERSION= 0.4.0 +VERSION= 0.5.1 DIST_SUBDIR= ruby USE_RUBY_EXTCONF= yes diff --git a/archivers/ruby-zlib/distinfo b/archivers/ruby-zlib/distinfo index 7d957bd0600..0b0b0237daa 100644 --- a/archivers/ruby-zlib/distinfo +++ b/archivers/ruby-zlib/distinfo @@ -1,5 +1,4 @@ -$NetBSD: distinfo,v 1.2 2001/12/30 16:49:40 taca Exp $ +$NetBSD: distinfo,v 1.3 2002/03/16 03:51:54 taca Exp $ -SHA1 (ruby/ruby-zlib-0.4.0.tar.gz) = 14f17f97d5a8714f1d1d9aa8c0687f2c27225356 -Size (ruby/ruby-zlib-0.4.0.tar.gz) = 21228 bytes -SHA1 (patch-aa) = 5be2e3e5894624e2c7f6a20501a0d199cee90bc1 +SHA1 (ruby/ruby-zlib-0.5.1.tar.gz) = 71271cf47b654ad9ddf66a0001e401ae796f87a2 +Size (ruby/ruby-zlib-0.5.1.tar.gz) = 57471 bytes diff --git a/archivers/ruby-zlib/patches/patch-aa b/archivers/ruby-zlib/patches/patch-aa deleted file mode 100644 index f973633d34d..00000000000 --- a/archivers/ruby-zlib/patches/patch-aa +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-aa,v 1.1 2001/12/30 16:49:41 taca Exp $ - ---- zlib.c.orig Tue Sep 26 14:47:02 2000 -+++ zlib.c -@@ -274,8 +274,9 @@ - memmove(RSTRING(z->buf)->ptr, RSTRING(z->buf)->ptr + len, - z->buf_filled); - z->stream.next_out = RSTRING(z->buf)->ptr + z->buf_filled; -- z->stream.avail_out = (z->buf_filled < ZSTREAM_AVAIL_OUT_STEP) ? -- z->buf_filled : ZSTREAM_AVAIL_OUT_STEP; -+ z->stream.avail_out = RSTRING(z->buf)->len - z->buf_filled; -+ if (z->stream.avail_out > ZSTREAM_AVAIL_OUT_STEP) -+ z->stream.avail_out = ZSTREAM_AVAIL_OUT_STEP; - - return dst; - } |