pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/converters/libiconv Fix version detection when the ver...
details: https://anonhg.NetBSD.org/pkgsrc/rev/364a3a671472
branches: trunk
changeset: 535098:364a3a671472
user: minskim <minskim%pkgsrc.org@localhost>
date: Wed Nov 07 17:24:28 2007 +0000
description:
Fix version detection when the version number contains capital letters.
diffstat:
converters/libiconv/builtin.mk | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (24 lines):
diff -r 8a016aa521db -r 364a3a671472 converters/libiconv/builtin.mk
--- a/converters/libiconv/builtin.mk Wed Nov 07 17:17:55 2007 +0000
+++ b/converters/libiconv/builtin.mk Wed Nov 07 17:24:28 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.16 2006/04/06 06:21:40 reed Exp $
+# $NetBSD: builtin.mk,v 1.17 2007/11/07 17:24:28 minskim Exp $
BUILTIN_PKG:= iconv
@@ -32,10 +32,10 @@
BUILTIN_VERSION.iconv!= \
${AWK} 'BEGIN { hex="0123456789abcdef" } \
/\#define[ ]*_LIBICONV_VERSION[ ]/ { \
- M = 16 * (index(hex, substr($$3, 3, 1)) - 1); \
- M += index(hex, substr($$3, 4, 1)) - 1; \
- m = 16 * (index(hex, substr($$3, 5, 1)) - 1); \
- m += index(hex, substr($$3, 6, 1)) - 1; \
+ M = 16 * (index(hex, tolower(substr($$3, 3, 1))) - 1); \
+ M += index(hex, tolower(substr($$3, 4, 1))) - 1; \
+ m = 16 * (index(hex, tolower(substr($$3, 5, 1))) - 1); \
+ m += index(hex, tolower(substr($$3, 6, 1))) - 1; \
printf "%d.%d\n", M, m; \
exit 0; \
} \
Home |
Main Index |
Thread Index |
Old Index