pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/par



Module Name:    pkgsrc
Committed By:   kim
Date:           Mon Jul 13 06:01:33 UTC 2020

Modified Files:
        pkgsrc/textproc/par: Makefile distinfo

Log Message:
Upgrade par to 1.53.0

Par 1.53.0 released 2020-Mar-14
    Fixed the following bugs:
        An unintended bad interaction between <quote> and <repeat>.
            The specification was inconsistent.  Although it said that
            the lines inserted by the <quote> feature were vacant,
            the <repeat> feature could interpret the quote character
            of inserted lines as a repeat character, in which case
            the lines were not vacant (according to the definition),
            and more quote/repeat characters would be inserted to
            extend the line to the full width, which no one would ever
            want.  The definition of "bodiless line" is revised so that
            lines inserted by the <quote> feature are excluded from
            consideration by the <repeat> feature.
        A printf format string mismatch (ptrdiff_t vs. %d), reported by
            Quentin Barnes (qbarnes at gmail.com).
        protoMakefile's clean target removed par rather than par$E,
            reported by George V. Reilly (george at reilly.org).
    Added the following features:
        Locale support for single-byte character sets.
            The previous verson, 1.52, attempted to do this in one line
            of code (setlocale()), but it's not that simple.  Versions
            before 1.52 gave no thought to character sets other than
            US-ASCII and did not handle them entirely correctly.
            Calling setlocale() in version 1.52 corrected some flaws but
            not all, and created one new flaw.  This version and the
            previous two all have the same character handling in the
            "C" locale and when processing US-ASCII text; differences
            arise only when processing non-US-ASCII text in another
            locale.  In versions before 1.52 the implementation assumed
            that "uppercase letter" means only the 26 characters A-Z
            and that "lowercase letter" means only the 26 characters
            a-z, and the specification assumed that every letter is
            either upper case or lower case.  These assumptions hold
            for US-ASCII, but not for most other character sets;
            therefore versions before 1.52 did not really support
            non-US-ASCII text.  Version 1.52, by calling setlocale(),
            relaxed the three assumptions in the implementation but
            not the assumption in the specification, and inadvertantly
            caused the implementation to deviate from the specification
            by converting all space characters to spaces rather than
            converting only the specified white characters, which is not
            necessarily what you want (for example, you probably don't
            want no-break space converted to space, but some locales
            on some platforms have been known to classify no-break
            space as white-space, like FreeBSD did in 2004).  This
            version fixes the specification by introducing the concept
            of "neither-case letter" and redefining "alphanumeric
            character" to include it, and fixes the implementation to
            convert only the white characters to spaces.  It also makes
            the white characters configurable so that the version 1.52
            space-conversion behavior can be restored if desired (W=_S).
            Note that Par still assumes constant display width per byte,
            which is not true for UTF-8 nor ISO-2022-*, but is true for
            most single-byte charsets and for EUC-* text without the
            single-shift-in/out codes.
        The W option, for configuring the set of white characters.
        The Z option, for configuring the set of terminal characters.
        The _@ escape sequence (neither-case letter) in charset syntax.
        The _S escape sequence (any space) in charset syntax.
    Added _@ and apostrophe to the set of body characters in PARINIT.
    Add #includes for whatever interfaces are used rather than depending
        on included files to #include other files.
    In protoMakefile introduced CPPFLAGS and CFLAGS (default empty) into
        the default definition of CC.
    Added a test-par script and a test target in protoMakefile.
    Fixed a misspelling (preceed => precede) in par.doc and par.1.
    Changed the top-of-file comment convention so that every release
        won't need to touch every file (this is the last time).
    Updated the author contact information.
    Clarified the license and added the MIT License as an alternative.
    Adopted a modern version number format, with minor and patch numbers
        as dot-separated integers rather than adjacent single digits.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/textproc/par/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/par/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/par/Makefile
diff -u pkgsrc/textproc/par/Makefile:1.17 pkgsrc/textproc/par/Makefile:1.18
--- pkgsrc/textproc/par/Makefile:1.17   Thu Oct 25 06:56:44 2012
+++ pkgsrc/textproc/par/Makefile        Mon Jul 13 06:01:33 2020
@@ -1,19 +1,24 @@
-# $NetBSD: Makefile,v 1.17 2012/10/25 06:56:44 asau Exp $
+# $NetBSD: Makefile,v 1.18 2020/07/13 06:01:33 kim Exp $
 
-DISTNAME=      Par152
-PKGNAME=       par-1.52
+DISTNAME=      Par-1.53.0
+PKGNAME=       ${DISTNAME:tl}
 CATEGORIES=    textproc
 MASTER_SITES=  http://www.nicemice.net/par/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.nicemice.net/par/
 COMMENT=       Paragraph reformatter, vaguely similar to fmt, but better
+LICENSE=       mit
 
 BUILD_TARGET=
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 do-configure:
-       (cd ${WRKSRC}; ${CP} protoMakefile Makefile)
+       ( cd ${WRKSRC}; \
+         ${SED} -E ' \
+           /^(CPPFLAGS|CFLAGS) =/ s/^/# /; \
+           /^LINK1 =/ s/$$/ $${LDFLAGS}/; \
+           ' < protoMakefile > Makefile )
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/par ${DESTDIR}${PREFIX}/bin

Index: pkgsrc/textproc/par/distinfo
diff -u pkgsrc/textproc/par/distinfo:1.5 pkgsrc/textproc/par/distinfo:1.6
--- pkgsrc/textproc/par/distinfo:1.5    Wed Nov  4 02:00:00 2015
+++ pkgsrc/textproc/par/distinfo        Mon Jul 13 06:01:33 2020
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2015/11/04 02:00:00 agc Exp $
+$NetBSD: distinfo,v 1.6 2020/07/13 06:01:33 kim Exp $
 
-SHA1 (Par152.tar.gz) = 4b83d2ec593bb45ee46d4b7c2bfc590e1f4a41a8
-RMD160 (Par152.tar.gz) = 253070f319a7f3b3a6f0dad5797882efdbf597bc
-SHA512 (Par152.tar.gz) = f5a46da4b693e6a3d15ccd57e24ee9b0332ebfbcfc88da9ef0731e18932ba6f0adde7691a233264d6361e8903ff7e2263f71885a415c896dc4c45a0d05b1978e
-Size (Par152.tar.gz) = 47999 bytes
+SHA1 (Par-1.53.0.tar.gz) = 43ce8470bbb4878359b70be4a26327aee9745f70
+RMD160 (Par-1.53.0.tar.gz) = d3e46af0f340dcfedebc73f4afda1b6eab0ad945
+SHA512 (Par-1.53.0.tar.gz) = 3f8ac57fe19ebcf427b11f4d79f2c5cc9286c1439c38a53d45bd29b9219369db2798efbd0e203ac359d59ebbdd3ead1c50ae75352a1ffc568d4d3b9ad50642b1
+Size (Par-1.53.0.tar.gz) = 52209 bytes



Home | Main Index | Thread Index | Old Index