Commit 3a114f05 authored by Thierry Thomas's avatar Thierry Thomas
Browse files

sysutils/uniutils: upgrade to 2.28

This release adds Unisurrogate, a utility that computes the UTF-16 surrogate
decomposition of characters outside the BMP.
parent f213e5c0
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
PORTNAME=	uniutils
PORTVERSION=	2.27
PORTREVISION=	2
PORTVERSION=	2.28
CATEGORIES=	sysutils textproc
MASTER_SITES=	http://billposer.org/Software/Downloads/

@@ -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

@@ -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} &&		\
+3 −2
Original line number Diff line number Diff line
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
+3 −3
Original line number Diff line number Diff line
--- 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 */
+8 −0
Original line number Diff line number Diff line
--- 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"
+4 −1
Original line number Diff line number Diff line
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
@@ -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.
Loading