aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-09-12 20:58:20 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-09-12 20:58:20 +0000
commit188adc5323553a1369f598603bf8a07fce4e8f5b (patch)
tree2c164eaea9dbe326b0935fad257cf1795f3bd6a0
parent27b8dece77dfb43f56fc206e88dcf54ecb0f9a68 (diff)
downloadports-188adc5323553a1369f598603bf8a07fce4e8f5b.tar.gz
ports-188adc5323553a1369f598603bf8a07fce4e8f5b.zip
Notes
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/uni2ascii/Makefile27
-rw-r--r--textproc/uni2ascii/distinfo2
-rw-r--r--textproc/uni2ascii/files/patch-ascii2uni.c10
-rw-r--r--textproc/uni2ascii/pkg-descr8
5 files changed, 48 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 62416d6ae6c2..1c76b17630f9 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -711,6 +711,7 @@
SUBDIR += txt2man
SUBDIR += txt2tags
SUBDIR += ua-ispell
+ SUBDIR += uni2ascii
SUBDIR += unroff
SUBDIR += unrtf
SUBDIR += urlview
diff --git a/textproc/uni2ascii/Makefile b/textproc/uni2ascii/Makefile
new file mode 100644
index 000000000000..2ea30271a12a
--- /dev/null
+++ b/textproc/uni2ascii/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: uni2ascii
+# Date created: 12 Sep 2005
+# Whom: Emanuel Haupt <ehaupt@critical.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uni2ascii
+PORTVERSION= 2.1
+CATEGORIES= textproc
+MASTER_SITES= http://critical.ch/distfiles/
+
+MAINTAINER= ehaupt@critical.ch
+COMMENT= Convert between UTF-8 Unicode and 7-bit ASCII equivalents
+
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+
+PLIST_FILES= bin/uni2ascii bin/ascii2uni
+MAN1= uni2ascii.1 ascii2uni.1
+
+do-install:
+.for f in ${PORTNAME} ascii2uni
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${f}.1 ${MAN1PREFIX}/man/man1
+.endfor
+
+.include <bsd.port.mk>
diff --git a/textproc/uni2ascii/distinfo b/textproc/uni2ascii/distinfo
new file mode 100644
index 000000000000..a6882d24482f
--- /dev/null
+++ b/textproc/uni2ascii/distinfo
@@ -0,0 +1,2 @@
+MD5 (uni2ascii-2.1.tar.gz) = 82d9340942b0fcaff527005428060e02
+SIZE (uni2ascii-2.1.tar.gz) = 17487
diff --git a/textproc/uni2ascii/files/patch-ascii2uni.c b/textproc/uni2ascii/files/patch-ascii2uni.c
new file mode 100644
index 000000000000..965df2361a41
--- /dev/null
+++ b/textproc/uni2ascii/files/patch-ascii2uni.c
@@ -0,0 +1,10 @@
+--- ascii2uni.c.orig Mon Sep 12 22:53:37 2005
++++ ascii2uni.c Mon Sep 12 22:53:49 2005
+@@ -23,6 +23,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#define _(String) gettext(String)
+ #ifdef INTLIZE
+ #include <locale.h>
+ #include <libintl.h>
diff --git a/textproc/uni2ascii/pkg-descr b/textproc/uni2ascii/pkg-descr
new file mode 100644
index 000000000000..e734cc220648
--- /dev/null
+++ b/textproc/uni2ascii/pkg-descr
@@ -0,0 +1,8 @@
+uni2ascii and ascii2uni convert between UTF-8 Unicode and any of a variety of
+7-bit ASCII equivalents including: hexadecimal and decimal HTML numeric
+character references, \u-escapes, standard hexadecimal, and raw hexadecimal.
+
+WWW: http://freshmeat.net/projects/uni2ascii/
+
+- ehaupt
+ehaupt@critical.ch