From 4f88e888c0c58f13245f2f2290e188988a8e6201 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Fri, 11 Nov 2011 02:46:16 +0000 Subject: SunPinyin is a statistical language model based Chinese input method, which was firstly developed by Sun Beijing Globalization team, and opensource'd to community with opensolaris project, with LGPLv2 and CDDL dual-licenses. WWW: http://code.google.com/p/sunpinyin/ Feature safe: yes --- chinese/sunpinyin/files/patch-SConstruct | 28 ++++++++++++++++++++++++++++ chinese/sunpinyin/files/patch-raw_Makefile | 21 +++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 chinese/sunpinyin/files/patch-SConstruct create mode 100644 chinese/sunpinyin/files/patch-raw_Makefile (limited to 'chinese/sunpinyin/files') diff --git a/chinese/sunpinyin/files/patch-SConstruct b/chinese/sunpinyin/files/patch-SConstruct new file mode 100644 index 000000000000..bd6062cf73c1 --- /dev/null +++ b/chinese/sunpinyin/files/patch-SConstruct @@ -0,0 +1,28 @@ +--- SConstruct.orig 2011-02-17 21:39:52.000000000 -0600 ++++ SConstruct 2011-11-10 03:04:39.833952104 -0600 +@@ -150,9 +150,13 @@ def CreateEnvironment(): + tar = 'gtar' + make = 'gmake' + +- return Environment(ENV=os.environ, CFLAGS=cflags, CXXFLAGS=cflags, +- TAR=tar, MAKE=make, WGET=wget, +- CPPPATH=['.'] + allinc()) ++ env = Environment(**ARGUMENTS) ++ env['ENV'] = os.environ ++ env['TAR'] = tar ++ env['MAKE'] = make ++ env['CPPPATH'] = ['.'] + allinc() ++ ++ return env + + def PassVariables(envvar, env): + for (x, y) in envvar: +@@ -382,7 +386,7 @@ def DoInstall(): + (install_path, libname, libname_link)) + ] + +- lib_pkgconfig_target = env.Install(libdir+'/pkgconfig', ++ lib_pkgconfig_target = env.Install(env['PREFIX']+'/libdata/pkgconfig', + ['sunpinyin-2.0.pc']) + libdata_target = env.Install(libdatadir, + ['data/lm_sc.t3g', diff --git a/chinese/sunpinyin/files/patch-raw_Makefile b/chinese/sunpinyin/files/patch-raw_Makefile new file mode 100644 index 000000000000..0d626f8653c8 --- /dev/null +++ b/chinese/sunpinyin/files/patch-raw_Makefile @@ -0,0 +1,21 @@ +--- raw/Makefile~ 2011-02-17 21:39:52.000000000 -0600 ++++ raw/Makefile 2011-11-10 01:52:50.258400612 -0600 +@@ -11,18 +11,12 @@ stamp-lm: lm_sc.t3g.arpa.tar.bz2 + $(TAR) -jxf $^ + touch $@ + +-lm_sc.t3g.arpa.tar.bz2: +- $(WGET) $(LM_URL)/$@ +- + dict.utf8: stamp-dict + + stamp-dict: dict.utf8.tar.bz2 + $(TAR) -jxf $^ + touch $@ + +-dict.utf8.tar.bz2: +- $(WGET) $(LM_URL)/$@ +- + clean: + @rm -f stamp-dict stamp-lm lm_sc.t3g.arpa dict.utf8 + @echo cleaned -- cgit v1.2.3