git: fbc7d9e005d9 - main - lang/seed7: update to 05_20220130

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Tue, 01 Mar 2022 15:11:04 UTC
The branch main has been updated by gahr:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fbc7d9e005d9211359f9f26c6acf0ffc8f1c4678

commit fbc7d9e005d9211359f9f26c6acf0ffc8f1c4678
Author:     Pietro Cerutti <gahr@FreeBSD.org>
AuthorDate: 2022-03-01 15:08:30 +0000
Commit:     Pietro Cerutti <gahr@FreeBSD.org>
CommitDate: 2022-03-01 15:10:59 +0000

    lang/seed7: update to 05_20220130
    
    20220130:
    - An arc() function (to draw an arc) with a width (thickness)
      parameter has been added to the draw.s7i library. Many thanks to
      Zachary Menzies for pointing out that it was missing.
    - The new library tiff.s7i has been added. This library supports the
      TIFF image file format.
    - The new library ccittfax.s7i has been added. This library supports
      CCITT fax decoding as it is used in TIFF files.
    - The library zip.s7i has been improved to support reading zip64
      archives.
    - A chapter about the type 'process' has been added to the manual.
      The chapter about case statements and other chapters of the manual
      have been improved as well.
    - Bit streams have been introduced and the huffman decoding has been
      improved. The run-time to extract a gzipped Seed7 archive with tar7
      has been reduced to 46% (measured with gcc and valgrind). Other
      usages of the inflate algorithm (PNG, ZIP, etc.) also benefit from
      the improvements.
    - The compiler has been improved to:
      - Optimize overflow checks away for shift operations.
      - Optimize index checks for string operations.
      - Write an error message if an unsupported option is used.
      - Inline the string tail function.
      - Use parentheses to reduce C compiler warnings.
      - Improve optimizations of the bytes2Int() function.
      - Improve checking of division by zero.
    - The statistics of the Seed7 compiler (s7c.sd7) has been improved
      to count inlined functions, optimized index checks and optimized
      overflow checks.
    - In bitdata.s7i, the types bitStream, lsbBitStream and msbBitStream
      have been introduced. These types support the functions getBit(),
      getBits(), peekBits(), skipBits() and gets().
    - In bitdata.s7i, the functions openLsbBitStream() and
      openMsbBitStream() have been introduced to create lsbBitStream
      and msbBitStream values. With these functions, bit streams can be
      created with a file or a string as data source.
    - In bitdata.s7i the functions getBitLsb(), getBitsLsb(),
      peekBitsLsb(), skipBitsLsb(), getBitMsb(), getBitsMsb(),
      peekBitsMsb() and skipBitsMsb() with string als parameters are
      deprecated now. The functions with the types lsbBitStream and
      msbBitStream should be used instead.
    - In huffman.s7i the functions getHuffmanSymbolMsb(string, ...) and
      getHuffmanSymbolLsb(string, ...) are deprecated. The functions
      getHuffmanSymbol(msbBitStream, ...) and
      getHuffmanSymbol(lsbBitStream, ...) should be used instead.
    - Tests for getBit(), getBits(), peekBits(), skipBits() and gets()
      have been added to chkbitdata.sd7. This refers to tests with
      lsbBitStream and msbBitStream.
    - The program chk_all.sd7 has been adjusted to the changes in
      chkbitdata.sd7.
    - The functions in inflate.s7i have been improved to use lsbBitStream
      as parameter instead of the previous combination of string, bytePos
      and bitPos.
    - The library inflatefile.s7i has been removed. The functions from
      inflate.s7i can be used instead.
    - The library cpio.s7i has been improved to check if a CPIO header
      is the correct size.
    - The library bytedata.s7i has been improved to raise RANGE_ERROR
      if an empty byte string is converted to integer or bigInteger.
    - The library gzip.s7i has been improved to use lsbBitStream and the
      new functions from inflate.s7i.
    - The library imagefile.s7i has been improved to support TIFF images.
    - The library jpeg.s7i has been improved to use
      getHuffmanSymbol(msbBitStream) instead of
      getHuffmanSymbolMsb(stri, bytePos, bitPos, ...).
    - The library lzw.s7i has been improved to support the functions
      lzwDecompress(lsbBitStream, ...), lzwDecompress(msbBitStream, ...),
      lzwDecompressEarlyChange(msbBitStream, codeSize),
      lzwDecompressEarlyChange(msbBitStream, codeSize, requestedLength)
      and lzwDecompressMsbEarlyChange(string, codeSize, requestedLength).
    - The files bitdata.s7i, gzip.s7i, inflate.s7i, jpeg.s7i, zstd.s7i
      and chkbitdata.sd7 have been refactored to avoid 'bitStream' as
      variable name. The name 'bitStream' is now used as interface type
      in bitdata.s7i.
    - The Seed7 compiler has been improved in comp/arr_act.s7i,
      comp/bin_act.s7i, comp/bst_act.s7i, comp/const.s7i,
      comp/flt_act.s7i, comp/int_act.s7i, comp/intrange.s7i,
      comp/literal.s7i, comp/prc_act.s7i, comp/rfl_act.s7i,
      comp/set_act.s7i, comp/stat.s7i, comp/str_act.s7i and s7c.sd7.
    - Checks for bytes(), bytes2Int(), the right shift operator and
      division by zero have been added to chkint.sd7.
    - Checks for bin64 shift operations have been added to chkbin.sd7.
    - Checks for index access to an empty array have been added to
      chkarr.sd7.
    - Checks for bytes2BigInt() have been added to chkbig.sd7.
    - In array.s7i the declaration of the times operator has been
      simplified.
    - The program pv7.sd7 has been improved to support TIFF files.
    - Casts have been added to dll_win.c and libpath.c to reduce C
      compiler warnings.
    - In error.c the error message for a failed declaration has been
      improved.
    - In str_rtl.c the performance of strHeadSlice() has been improved.
    - Unused variables have been removed in several files of the
      compiler.
    - In int_rtl.c the functions intBytesBe2Int(), intBytesBe2UInt(),
      intBytesLe2Int() and intBytesLe2UInt() have been changed to raise
      RANGE_ERROR if the string is empty.
    - In big_rtl.c and big_gmp.c the functions bigFromByteBufferBe()
      and bigFromByteBufferLe() have been changed to raise RANGE_ERROR
      if the size is zero (the buffer is empty).
    - The files drw_win.c, drw_x11.c, drw_drv.h, drwlib.c, drwlib.h and
      primitiv.c have been changed to support the action DRW_PFARC.
    - Definitions for the function XSetLineAttributes() have been added
      to fwd_x11.c and x11_x.h.
    - In the program chkccomp.c the detection of the division by zero
      behavior and the remainder by zero behavior has been improved.
    - Documentation comments have been improved in bstring.s7i,
      bytedata.s7i, bitdata.s7i, null_file.s7i, process.s7i, strifile.s7i
      and biglib.c.
---
 lang/seed7/Makefile               |  2 +-
 lang/seed7/distinfo               |  6 +++---
 lang/seed7/files/patch-fwd__x11.c | 23 +++++++++++++++++++++++
 lang/seed7/pkg-plist              |  3 ++-
 4 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/lang/seed7/Makefile b/lang/seed7/Makefile
index 018815d78462..1d49c0a1e524 100644
--- a/lang/seed7/Makefile
+++ b/lang/seed7/Makefile
@@ -1,7 +1,7 @@
 # Created by: gahr
 
 PORTNAME=	seed7
-DISTVERSION=	05_20211225
+DISTVERSION=	05_20220130
 PORTREVISION=	0
 CATEGORIES=	lang
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME}/
diff --git a/lang/seed7/distinfo b/lang/seed7/distinfo
index b62cfaf0e6e7..bd9b48620c95 100644
--- a/lang/seed7/distinfo
+++ b/lang/seed7/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1640606968
-SHA256 (seed7_05_20211225.tgz) = f933aed2138aa5f6aaf4cc1073d7cde0b6981f8fe607e3fb6f859bb06f7b68f2
-SIZE (seed7_05_20211225.tgz) = 3669660
+TIMESTAMP = 1646141399
+SHA256 (seed7_05_20220130.tgz) = 442dddbf979a5af8784bf8155cd70937f277f10949ce0dec9ebea4d5c1e7f10e
+SIZE (seed7_05_20220130.tgz) = 3712052
diff --git a/lang/seed7/files/patch-fwd__x11.c b/lang/seed7/files/patch-fwd__x11.c
new file mode 100644
index 000000000000..da8e744abbfb
--- /dev/null
+++ b/lang/seed7/files/patch-fwd__x11.c
@@ -0,0 +1,23 @@
+--- fwd_x11.c.orig	2022-03-01 13:41:18 UTC
++++ fwd_x11.c
+@@ -398,7 +398,7 @@ static boolType setupX11Dll (const char *dllName)
+             (ptr_XSetClipOrigin          = (tp_XSetClipOrigin)          dllFunc(x11Dll, "XSetClipOrigin"))          == NULL ||
+             (ptr_XSetForeground          = (tp_XSetForeground)          dllFunc(x11Dll, "XSetForeground"))          == NULL ||
+             (ptr_XSetFunction            = (tp_XSetFunction)            dllFunc(x11Dll, "XSetFunction"))            == NULL ||
+-            (ptr_XSetLineAttributes      = (tp_XSetLineAttributes       dllFunc(x11Dll, "XSetLineAttributes"))      == NULL ||
++            (ptr_XSetLineAttributes      = (tp_XSetLineAttributes)      dllFunc(x11Dll, "XSetLineAttributes"))      == NULL ||
+             (ptr_XSetStandardProperties  = (tp_XSetStandardProperties)  dllFunc(x11Dll, "XSetStandardProperties"))  == NULL ||
+             (ptr_XSetWMHints             = (tp_XSetWMHints)             dllFunc(x11Dll, "XSetWMHints"))             == NULL ||
+             (ptr_XSetWMProtocols         = (tp_XSetWMProtocols)         dllFunc(x11Dll, "XSetWMProtocols"))         == NULL ||
+@@ -1609,9 +1609,9 @@ int XSetLineAttributes (Display *display, GC gc, unsig
+     logFunction(printf("XSetLineAttributes(" FMT_U_MEM ", " FMT_U_MEM
+                        ", %u, %d, &d, %d)\n",
+                        (memSizeType) display, (memSizeType) gc,
+-                       line_width, line_style, cap_stype, join_style););
++                       line_width, line_style, cap_style, join_style););
+     funcResult = ptr_XSetLineAttributes(display, gc, line_width,
+-                                        line_style, cap_stype, join_style);
++                                        line_style, cap_style, join_style);
+     logFunction(printf("XSetLineAttributes --> %d\n", funcResult););
+     return funcResult;
+   } /* XSetLineAttributes */
diff --git a/lang/seed7/pkg-plist b/lang/seed7/pkg-plist
index 1f328bfbb287..6617561e2dd2 100644
--- a/lang/seed7/pkg-plist
+++ b/lang/seed7/pkg-plist
@@ -30,6 +30,7 @@ lib/seed7/lib/bytedata.s7i
 lib/seed7/lib/cards.s7i
 lib/seed7/lib/category.s7i
 lib/seed7/lib/cc_conf.s7i
+lib/seed7/lib/ccittfax.s7i
 lib/seed7/lib/cgi.s7i
 lib/seed7/lib/cgidialog.s7i
 lib/seed7/lib/char.s7i
@@ -142,7 +143,6 @@ lib/seed7/lib/idxarray.s7i
 lib/seed7/lib/image.s7i
 lib/seed7/lib/imagefile.s7i
 lib/seed7/lib/inflate.s7i
-lib/seed7/lib/inflatefile.s7i
 lib/seed7/lib/inifile.s7i
 lib/seed7/lib/integer.s7i
 lib/seed7/lib/iobuffer.s7i
@@ -218,6 +218,7 @@ lib/seed7/lib/tar.s7i
 lib/seed7/lib/tdes.s7i
 lib/seed7/lib/tee.s7i
 lib/seed7/lib/text.s7i
+lib/seed7/lib/tiff.s7i
 lib/seed7/lib/time.s7i
 lib/seed7/lib/tls.s7i
 lib/seed7/lib/unicode.s7i