diff options
author | ben <ben@pkgsrc.org> | 2004-03-11 22:10:48 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2004-03-11 22:10:48 +0000 |
commit | e96cdae3af468dff7130730a1513cad653e571ca (patch) | |
tree | 9347991a2055f7e13b0a18bc4098b014e5b8d11d /www/lynx/patches | |
parent | 0ba0fc191f753fcffe85440dbdace33eaba3b7d9 (diff) | |
download | pkgsrc-e96cdae3af468dff7130730a1513cad653e571ca.tar.gz |
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.
Diffstat (limited to 'www/lynx/patches')
-rw-r--r-- | www/lynx/patches/patch-af | 16 |
1 files changed, 16 insertions, 0 deletions
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 $< + |