From 74de9bfdc7094574c31aeaad180366a73619f737 Mon Sep 17 00:00:00 2001 From: Daichi GOTO Date: Fri, 4 Mar 2005 13:04:06 +0000 Subject: IIIMF-related ports: I have forgotten to add two patches Submitted by: Masanori OZAWA --- .../patch-leif_unit_phonetic_mapfile_Makefile.am | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am (limited to 'textproc/iiimf-le-unit') diff --git a/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am b/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am new file mode 100644 index 000000000000..59e9f0c8843d --- /dev/null +++ b/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am @@ -0,0 +1,34 @@ +--- leif/unit/phonetic_im/mapfile/Makefile.am.orig Sat Apr 3 11:50:21 2004 ++++ leif/unit/phonetic_im/mapfile/Makefile.am Wed Mar 2 20:35:05 2005 +@@ -1,5 +1,6 @@ + SUBDIRS = mapfile2c + LEX = /usr/bin/lex ++SED = /usr/bin/sed + + MAPFILES = bengali.mapfile gurmukhi.mapfile hindi.mapfile kannada.mapfile malayalam.mapfile tamil.mapfile telugu.mapfile gujarati.mapfile + +@@ -12,7 +13,7 @@ + .l.c: + $(LEX) $(LFLAGS) $*.l + mv lex.yy.c $*.tc +- sed \ ++ $(SED) \ + -e "/^# line/d" \ + -e "s/parse_small_token/parse_$*/g" \ + -e "s/^void yyunput/static void yyunput/g" \ +@@ -57,10 +58,11 @@ + -e "s/^# define unput(c).*/# define unput(c) (\*--global_ptr=c)/g" \ + -e "s/^#define unput(c).*/#define unput(c) (\*--global_ptr=c)/g" \ + -e "/^#line/d" \ +- -e "/^static char \*global_ptr\;/i\ +-#define YY_NO_INPUT" -e "/^static char \*global_ptr\;/i\ +-#define YY_NO_UNPUT" -e "/^static char \*global_ptr\;/i\ +-#define input() (\*global_ptr++)" $*.tc > $*.c ++ -e "/^static char \*global_ptr\;/{" \ ++ -e "p" -e "s/.*/#define YY_NO_INPUT/" \ ++ -e "p" -e "s/.*/#define YY_NO_UNPUT/" \ ++ -e "p" -e "s/.*/#define input\(\) \(*global_ptr++\)/" \ ++ -e "}" $*.tc > $*.c + rm -f $*.tc + + noinst_LTLIBRARIES = libphonetic_temp.la -- cgit v1.2.3