aboutsummaryrefslogtreecommitdiff
path: root/textproc/iiimf-le-unit
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2005-03-04 13:04:06 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2005-03-04 13:04:06 +0000
commit74de9bfdc7094574c31aeaad180366a73619f737 (patch)
tree210e47908054a6c5010d96af128df7bc451a9a0f /textproc/iiimf-le-unit
parent229037f505a63fa2461e6169654ab219201e7ab8 (diff)
downloadports-74de9bfdc7094574c31aeaad180366a73619f737.tar.gz
ports-74de9bfdc7094574c31aeaad180366a73619f737.zip
Notes
Diffstat (limited to 'textproc/iiimf-le-unit')
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am34
1 files changed, 34 insertions, 0 deletions
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