aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-05-15 23:54:36 +0800
committerthierry <thierry@FreeBSD.org>2005-05-15 23:54:36 +0800
commit5a334c25c59ec29e42d598c78c5e107424ce006c (patch)
treead3cf83bdedf779ad68d5d6cc02a058922814419 /sysutils
parent9ebc752be0c884286e6bfc024ba97cf487d31891 (diff)
downloadfreebsd-ports-gnome-5a334c25c59ec29e42d598c78c5e107424ce006c.tar.gz
freebsd-ports-gnome-5a334c25c59ec29e42d598c78c5e107424ce006c.tar.zst
freebsd-ports-gnome-5a334c25c59ec29e42d598c78c5e107424ce006c.zip
Add unidesc 2.12, Unicode Description Utilities.
Unidesc consists of four 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 order they occur, or needs statistics on which characters occur.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/unidesc/Makefile45
-rw-r--r--sysutils/unidesc/distinfo2
-rw-r--r--sysutils/unidesc/files/patch-Makefile23
-rw-r--r--sysutils/unidesc/pkg-descr23
-rw-r--r--sysutils/unidesc/pkg-plist16
-rw-r--r--sysutils/uniutils/Makefile45
-rw-r--r--sysutils/uniutils/distinfo2
-rw-r--r--sysutils/uniutils/files/patch-Makefile23
-rw-r--r--sysutils/uniutils/pkg-descr23
-rw-r--r--sysutils/uniutils/pkg-plist16
11 files changed, 219 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index e99eee39b978..f7b9ee7f3228 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -478,6 +478,7 @@
SUBDIR += ucspi-unix
SUBDIR += udesc_dump
SUBDIR += udfclient
+ SUBDIR += unidesc
SUBDIR += unquote
SUBDIR += upsd
SUBDIR += upsmon
diff --git a/sysutils/unidesc/Makefile b/sysutils/unidesc/Makefile
new file mode 100644
index 000000000000..db207ef00e28
--- /dev/null
+++ b/sysutils/unidesc/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: unidesc
+# Date created: Sun 15 May 2005
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= unidesc
+PORTVERSION= 2.12
+CATEGORIES= sysutils textproc
+MASTER_SITES= http://www.cis.upenn.edu/~wjposer/.downloads/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Unicode Description Utilities
+
+USE_GETTEXT= yes
+USE_REINPLACE= yes
+
+TESTFILES= TestData/Test1.ann TestData/Test1.u TestData/Test2.ann \
+ TestData/Test2.u TestData/Test3.ann TestData/Test3.u \
+ TestData/Test4.ann TestData/Test4.u
+DEMOS= demo.jpg demo.u demo32.u
+PORTDOCS= README
+
+MAN1= unidesc.1 uniname.1 ExplicateUTF8.1 unihist.1
+
+WRKSRC= ${WRKDIR}/${PORTNAME:U}
+
+pre-configure:
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|;s|%%LOCALBASE%%|${LOCALBASE}|' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ ${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${DEMOS:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/unidesc/distinfo b/sysutils/unidesc/distinfo
new file mode 100644
index 000000000000..59820d86bf41
--- /dev/null
+++ b/sysutils/unidesc/distinfo
@@ -0,0 +1,2 @@
+MD5 (unidesc-2.12/unidesc.tgz) = 7ec1c6584842403992837e238ee1462d
+SIZE (unidesc-2.12/unidesc.tgz) = 204808
diff --git a/sysutils/unidesc/files/patch-Makefile b/sysutils/unidesc/files/patch-Makefile
new file mode 100644
index 000000000000..d6b0d6826ba5
--- /dev/null
+++ b/sysutils/unidesc/files/patch-Makefile
@@ -0,0 +1,23 @@
+--- Makefile.orig Sun Jan 9 20:55:19 2005
++++ Makefile Sun May 15 16:11:22 2005
+@@ -5,8 +5,9 @@
+ BINOBJS= unidesc.o uniname.o unames.o ExplicateUTF8.o unihist.o
+ MANS= unidesc.1 uniname.1 ExplicateUTF8.1 unihist.1
+
+-CFLAGS= -pedantic -O
+-CC=gcc
++CFLAGS+= -pedantic -I%%LOCALBASE%%/include
++LDFLAGS+= -L%%LOCALBASE%%/lib -lintl
++# CC=gcc
+
+ all: ${BINS}
+
+@@ -42,7 +43,7 @@
+ ${CC} -c ${CFLAGS} unihist.c
+
+ unihist: unihist.o Get_UTF32_From_UTF8.o putu8.o
+- ${CC} -o unihist unihist.o Get_UTF32_From_UTF8.o putu8.o
++ ${CC} -o unihist unihist.o Get_UTF32_From_UTF8.o putu8.o ${LDFLAGS}
+
+
+ ExplicateUTF8.o: ExplicateUTF8.c
diff --git a/sysutils/unidesc/pkg-descr b/sysutils/unidesc/pkg-descr
new file mode 100644
index 000000000000..1144e261299f
--- /dev/null
+++ b/sysutils/unidesc/pkg-descr
@@ -0,0 +1,23 @@
+Unidesc consists of four 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
+order they occur, or needs statistics on which characters occur.
+
+uniname defaults to printing the character offset of each character, its byte
+offset, its hex code value, its encoding, the glyph itself, and its name.
+
+unidesc reports the character ranges to which different portions of the text
+belong. It can also be used to identify Unicode encodings (e.g. UTF-16be)
+flagged by magic numbers.
+
+unihist generates a histogram of the characters in its input, which must be
+encoded in UTF-8 Unicode. By default, for each character it prints the
+frequency of the character as a percentage of the total, the absolute number of
+tokens in the input, the UTF-32 code in hexadecimal, and, if the character is
+displayable, the glyph itself as UTF-8 Unicode.
+
+ExplicateUTF8 is intended for debugging or for learning about Unicode. It
+determines and explains the validity of a sequence of bytes as a UTF8 encoding.
+
+WWW: http://www.cis.upenn.edu/~wjposer/unidesc.html
diff --git a/sysutils/unidesc/pkg-plist b/sysutils/unidesc/pkg-plist
new file mode 100644
index 000000000000..b51d319af36e
--- /dev/null
+++ b/sysutils/unidesc/pkg-plist
@@ -0,0 +1,16 @@
+bin/ExplicateUTF8
+bin/unidesc
+bin/unihist
+bin/uniname
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test1.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test1.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test2.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test2.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test3.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test3.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test4.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test4.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/demo.jpg
+%%PORTDOCS%%%%EXAMPLESDIR%%/demo.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/demo32.u
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
diff --git a/sysutils/uniutils/Makefile b/sysutils/uniutils/Makefile
new file mode 100644
index 000000000000..db207ef00e28
--- /dev/null
+++ b/sysutils/uniutils/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: unidesc
+# Date created: Sun 15 May 2005
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= unidesc
+PORTVERSION= 2.12
+CATEGORIES= sysutils textproc
+MASTER_SITES= http://www.cis.upenn.edu/~wjposer/.downloads/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Unicode Description Utilities
+
+USE_GETTEXT= yes
+USE_REINPLACE= yes
+
+TESTFILES= TestData/Test1.ann TestData/Test1.u TestData/Test2.ann \
+ TestData/Test2.u TestData/Test3.ann TestData/Test3.u \
+ TestData/Test4.ann TestData/Test4.u
+DEMOS= demo.jpg demo.u demo32.u
+PORTDOCS= README
+
+MAN1= unidesc.1 uniname.1 ExplicateUTF8.1 unihist.1
+
+WRKSRC= ${WRKDIR}/${PORTNAME:U}
+
+pre-configure:
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|;s|%%LOCALBASE%%|${LOCALBASE}|' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ ${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${DEMOS:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/uniutils/distinfo b/sysutils/uniutils/distinfo
new file mode 100644
index 000000000000..59820d86bf41
--- /dev/null
+++ b/sysutils/uniutils/distinfo
@@ -0,0 +1,2 @@
+MD5 (unidesc-2.12/unidesc.tgz) = 7ec1c6584842403992837e238ee1462d
+SIZE (unidesc-2.12/unidesc.tgz) = 204808
diff --git a/sysutils/uniutils/files/patch-Makefile b/sysutils/uniutils/files/patch-Makefile
new file mode 100644
index 000000000000..d6b0d6826ba5
--- /dev/null
+++ b/sysutils/uniutils/files/patch-Makefile
@@ -0,0 +1,23 @@
+--- Makefile.orig Sun Jan 9 20:55:19 2005
++++ Makefile Sun May 15 16:11:22 2005
+@@ -5,8 +5,9 @@
+ BINOBJS= unidesc.o uniname.o unames.o ExplicateUTF8.o unihist.o
+ MANS= unidesc.1 uniname.1 ExplicateUTF8.1 unihist.1
+
+-CFLAGS= -pedantic -O
+-CC=gcc
++CFLAGS+= -pedantic -I%%LOCALBASE%%/include
++LDFLAGS+= -L%%LOCALBASE%%/lib -lintl
++# CC=gcc
+
+ all: ${BINS}
+
+@@ -42,7 +43,7 @@
+ ${CC} -c ${CFLAGS} unihist.c
+
+ unihist: unihist.o Get_UTF32_From_UTF8.o putu8.o
+- ${CC} -o unihist unihist.o Get_UTF32_From_UTF8.o putu8.o
++ ${CC} -o unihist unihist.o Get_UTF32_From_UTF8.o putu8.o ${LDFLAGS}
+
+
+ ExplicateUTF8.o: ExplicateUTF8.c
diff --git a/sysutils/uniutils/pkg-descr b/sysutils/uniutils/pkg-descr
new file mode 100644
index 000000000000..1144e261299f
--- /dev/null
+++ b/sysutils/uniutils/pkg-descr
@@ -0,0 +1,23 @@
+Unidesc consists of four 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
+order they occur, or needs statistics on which characters occur.
+
+uniname defaults to printing the character offset of each character, its byte
+offset, its hex code value, its encoding, the glyph itself, and its name.
+
+unidesc reports the character ranges to which different portions of the text
+belong. It can also be used to identify Unicode encodings (e.g. UTF-16be)
+flagged by magic numbers.
+
+unihist generates a histogram of the characters in its input, which must be
+encoded in UTF-8 Unicode. By default, for each character it prints the
+frequency of the character as a percentage of the total, the absolute number of
+tokens in the input, the UTF-32 code in hexadecimal, and, if the character is
+displayable, the glyph itself as UTF-8 Unicode.
+
+ExplicateUTF8 is intended for debugging or for learning about Unicode. It
+determines and explains the validity of a sequence of bytes as a UTF8 encoding.
+
+WWW: http://www.cis.upenn.edu/~wjposer/unidesc.html
diff --git a/sysutils/uniutils/pkg-plist b/sysutils/uniutils/pkg-plist
new file mode 100644
index 000000000000..b51d319af36e
--- /dev/null
+++ b/sysutils/uniutils/pkg-plist
@@ -0,0 +1,16 @@
+bin/ExplicateUTF8
+bin/unidesc
+bin/unihist
+bin/uniname
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test1.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test1.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test2.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test2.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test3.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test3.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test4.ann
+%%PORTDOCS%%%%EXAMPLESDIR%%/Test4.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/demo.jpg
+%%PORTDOCS%%%%EXAMPLESDIR%%/demo.u
+%%PORTDOCS%%%%EXAMPLESDIR%%/demo32.u
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%