From 505aa4b6c3b3c0b353e38d098467421759e4180a Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 11 Mar 2004 22:10:48 +0000 Subject: GNU gettext-lib version < 0.11.x expects escaped characters in a way incompatible with newer versions of gettext-lib. Detect gettext-lib version and work around bug when necessary. --- www/lynx/patches/patch-af | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 www/lynx/patches/patch-af (limited to 'www/lynx/patches') diff --git a/www/lynx/patches/patch-af b/www/lynx/patches/patch-af new file mode 100644 index 00000000000..0ee1607d35c --- /dev/null +++ b/www/lynx/patches/patch-af @@ -0,0 +1,16 @@ +$NetBSD: patch-af,v 1.1 2004/03/11 22:10:48 ben Exp $ + +--- po/makefile.inn.orig 2004-01-28 11:30:38.000000000 -0800 ++++ po/makefile.inn +@@ -71,6 +71,11 @@ INSTOBJEXT = @INSTOBJEXT@ + $(MSGFMT) -o $@ $< + + .po.gmo: ++ @if [ `$(GMSGFMT) --version | head -1 | cut -d . -f 2` -lt 11 ]; then \ ++ mv $< $<.bak; \ ++ sed '/^msgstr/s/\([^\\]\)\(\\[^[:print:]]\)/\1\\\2/g' \ ++ <$<.bak >$<; \ ++ fi + file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ + && rm -f $$file && $(GMSGFMT) -o $$file $< + -- cgit v1.2.3