summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-02-14 12:04:22 +0000
committerobache <obache@pkgsrc.org>2012-02-14 12:04:22 +0000
commit72d26c44430927f87525826530778555910ecd56 (patch)
tree6936c45dc7bbe51b2f1af032f58c3b3b65fbc046
parentd9837fb22b89b494a720e82fdce17a0274c73cac (diff)
downloadpkgsrc-72d26c44430927f87525826530778555910ecd56.tar.gz
Update uni2ascii to 4.18.
per maintainer's update request by PR 45971. 2011-05-14 4.18 Fixed bug in uni2ascii in which in certain cases the subsitution count was too high, fixing Debian bug #626268. Patched to handle situation in NetBSD which lacks getline. Clarified semantics of pure option as converting characters in ascii range other than space and newline. Fixed bug in which this was not implemented correctly for UTF8 types. 2011-02-16 4.17 Added to uni2ascii the following conversions to nearest ascii equivalent: U+2022 bullet to 'o' U+00B7 middle dot to period U+0085 next line to newline U+2028 line separator to newline 2010-12-12 4.16 Ascii2uni Q format now works again. Added U+2033 to characters converted to nearest ascii equivalent by uni2ascii B option. 2010-08-29 4.15 Renamed endian.h u2a_endian.h to avoid conflict with external endian.h. Removed getline() from ascii2uni.c since it is standard as of POSIX2008.
-rw-r--r--textproc/uni2ascii/Makefile5
-rw-r--r--textproc/uni2ascii/distinfo9
-rw-r--r--textproc/uni2ascii/patches/patch-ascii2uni_c25
3 files changed, 6 insertions, 33 deletions
diff --git a/textproc/uni2ascii/Makefile b/textproc/uni2ascii/Makefile
index 4f601a39d3e..513ef124eda 100644
--- a/textproc/uni2ascii/Makefile
+++ b/textproc/uni2ascii/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2011/04/22 13:44:52 obache Exp $
+# $NetBSD: Makefile,v 1.3 2012/02/14 12:04:22 obache Exp $
#
-DISTNAME= uni2ascii-4.14
-PKGREVISION= 1
+DISTNAME= uni2ascii-4.18
CATEGORIES= textproc
MASTER_SITES= http://billposer.org/Software/Downloads/
EXTRACT_SUFX= .tar.bz2
diff --git a/textproc/uni2ascii/distinfo b/textproc/uni2ascii/distinfo
index 4495b52dd51..b9d1a5cd66c 100644
--- a/textproc/uni2ascii/distinfo
+++ b/textproc/uni2ascii/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.2 2011/10/01 12:08:55 dholland Exp $
+$NetBSD: distinfo,v 1.3 2012/02/14 12:04:22 obache Exp $
-SHA1 (uni2ascii-4.14.tar.bz2) = efe31a88499544f60a19994556e6bdea0e0f95be
-RMD160 (uni2ascii-4.14.tar.bz2) = fdd9cdd79c05d82ddfece91c384852aea5f79f0b
-Size (uni2ascii-4.14.tar.bz2) = 120087 bytes
-SHA1 (patch-ascii2uni_c) = fea75b8677d335709039b55fe1d79049f181b88e
+SHA1 (uni2ascii-4.18.tar.bz2) = 9c718b35d1acd30ed4ef6d74318e846d10403b86
+RMD160 (uni2ascii-4.18.tar.bz2) = 4cc1ab903b182bbb7f40c58c8eb5d77cb12b5c33
+Size (uni2ascii-4.18.tar.bz2) = 127125 bytes
diff --git a/textproc/uni2ascii/patches/patch-ascii2uni_c b/textproc/uni2ascii/patches/patch-ascii2uni_c
deleted file mode 100644
index af67d41a18e..00000000000
--- a/textproc/uni2ascii/patches/patch-ascii2uni_c
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-ascii2uni_c,v 1.1 2011/10/01 12:08:55 dholland Exp $
-
-avoid conflict with new posix getline (usage may be compatible, might
-be worth checking sometime)
-
---- ascii2uni.c~ 2009-08-05 03:08:52.000000000 +0000
-+++ ascii2uni.c
-@@ -463,7 +463,7 @@ int main (int ac, char *av[])
- fprintf(stderr,"Failed to allocate buffer for input line.\n");
- exit(2);
- }
-- while ((read = getline(&lbuf, &len, infp)) != -1) {
-+ while ((read = get_line(&lbuf, &len, infp)) != -1) {
- AddNewlineP = 1;
- LineNo++;
- last = read - 1;
-@@ -848,7 +848,7 @@ getstr (lineptr, n, stream, terminator,
- }
-
- int
--getline (lineptr, n, stream)
-+get_line (lineptr, n, stream)
- char **lineptr;
- size_t *n;
- FILE *stream;