Skip to content

Commit

Permalink
sysutils/uniutils: upgrade to 2.28
Browse files Browse the repository at this point in the history
This release adds Unisurrogate, a utility that computes the UTF-16 surrogate
decomposition of characters outside the BMP.
  • Loading branch information
thierry-FreeBSD committed Nov 5, 2023
1 parent f213e5c commit 3a114f0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 11 deletions.
9 changes: 4 additions & 5 deletions sysutils/uniutils/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
PORTNAME= uniutils
PORTVERSION= 2.27
PORTREVISION= 2
PORTVERSION= 2.28
CATEGORIES= sysutils textproc
MASTER_SITES= http://billposer.org/Software/Downloads/

Expand All @@ -14,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ascii2binary:converters/ascii2binary

GNU_CONFIGURE= yes
USES= gettext localbase
USES= gettext localbase tar:bz2

LIBS+= -lintl

Expand All @@ -25,8 +24,8 @@ PORTDOCS= AUTHORS NEWS README
OPTIONS_DEFINE= DOCS EXAMPLES

pre-configure:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README

do-test:
(cd ${WRKSRC} && \
Expand Down
5 changes: 3 additions & 2 deletions sysutils/uniutils/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
SHA256 (uniutils-2.27.tar.gz) = c662a9215a3a67aae60510f679135d479dbddaf90f5c85a3c5bab1c89da61596
SIZE (uniutils-2.27.tar.gz) = 274303
TIMESTAMP = 1699218799
SHA256 (uniutils-2.28.tar.bz2) = d67bbc814e7ae8ccb1afc1e9081c6cbcd52510748c20ba1322caff2f9a5d917c
SIZE (uniutils-2.28.tar.bz2) = 262845
6 changes: 3 additions & 3 deletions sysutils/uniutils/files/patch-unifuzz.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- unifuzz.c.orig 2008-04-04 06:30:58.000000000 +0200
+++ unifuzz.c 2013-09-05 09:50:49.000000000 +0200
@@ -97,7 +97,7 @@
--- unifuzz.c.orig 2020-11-20 08:28:53 UTC
+++ unifuzz.c
@@ -97,7 +97,7 @@ EmitBadUTF8 () {
}

/* Emit the middle character from each range */
Expand Down
8 changes: 8 additions & 0 deletions sysutils/uniutils/files/patch-unisurrogate.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- unisurrogate.c.orig 2020-11-20 08:28:53 UTC
+++ unisurrogate.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include "config.h"
5 changes: 4 additions & 1 deletion sysutils/uniutils/pkg-descr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Uniutils consists of five programs for finding out what is in a Unicode file.
Uniutils consists of six programs for finding out what is in a Unicode file.
They are useful when working with Unicode files when one doesn't know the
writing system, doesn't have the necessary font, needs to inspect invisible
characters, needs to find out whether characters have been combined or in what
Expand All @@ -19,3 +19,6 @@ determines and explains the validity of a sequence of bytes as a UTF8 encoding.

Unirev is a filter that reverses UTF-8 strings character-by-character (as
opposed to byte-by-byte).

Unisurrogate takes a codepoint on the command line and, if it falls outside the
BMP, reports its surrogate decomposition.
2 changes: 2 additions & 0 deletions sysutils/uniutils/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ bin/unifuzz
bin/unihist
bin/uniname
bin/unireverse
bin/unisurrogate
bin/utf8lookup
man/man1/ExplicateUTF8.1.gz
man/man1/unidesc.1.gz
man/man1/unifuzz.1.gz
man/man1/unihist.1.gz
man/man1/uniname.1.gz
man/man1/unireverse.1.gz
man/man1/unisurrogate.1.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test1.ann
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test1.u
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test2.ann
Expand Down

0 comments on commit 3a114f0

Please sign in to comment.