forked from pool/fcitx
96 lines
5.4 KiB
Diff
96 lines
5.4 KiB
Diff
|
diff -urN fcitx-4.2.orig/data/CMakeLists.txt fcitx-4.2/data/CMakeLists.txt
|
||
|
--- fcitx-4.2.orig/data/CMakeLists.txt 2012-01-30 11:18:47.710767374 +0800
|
||
|
+++ fcitx-4.2/data/CMakeLists.txt 2012-01-30 11:45:34.373681320 +0800
|
||
|
@@ -33,8 +33,7 @@
|
||
|
set(PY_ORGDATA pyPhrase.org)
|
||
|
set(PY_DATA ${CMAKE_CURRENT_BINARY_DIR}/pybase.mb ${CMAKE_CURRENT_BINARY_DIR}/pyphrase.mb)
|
||
|
set(PY_TAR ${CMAKE_CURRENT_SOURCE_DIR}/pinyin.tar.gz)
|
||
|
-set(PY_URL http://fcitx.googlecode.com/files/pinyin.tar.gz)
|
||
|
-
|
||
|
+#set(PY_URL ../pinyin.tar.gz)
|
||
|
|
||
|
intltool_merge_translation(${CMAKE_CURRENT_SOURCE_DIR}/fcitx-configtool.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/fcitx-configtool.desktop )
|
||
|
intltool_merge_translation(${CMAKE_CURRENT_SOURCE_DIR}/fcitx.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/fcitx.desktop )
|
||
|
@@ -42,7 +41,7 @@
|
||
|
add_custom_target(pinyin_data ALL DEPENDS ${PY_DATA})
|
||
|
|
||
|
add_custom_command(OUTPUT ${PY_ORGDATA}
|
||
|
- COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/download.sh "${WGET}" "${PY_URL}" "${PY_TAR}"
|
||
|
+# COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/download.sh "${WGET}" "${PY_URL}" "${PY_TAR}"
|
||
|
COMMAND ${TAR} xzmvf ${PY_TAR})
|
||
|
add_custom_command(OUTPUT ${PY_DATA}
|
||
|
DEPENDS ${PY_ORGDATA}
|
||
|
diff -urN fcitx-4.2.orig/data/table/CMakeLists.txt fcitx-4.2/data/table/CMakeLists.txt
|
||
|
--- fcitx-4.2.orig/data/table/CMakeLists.txt 2012-01-30 11:18:47.715767311 +0800
|
||
|
+++ fcitx-4.2/data/table/CMakeLists.txt 2012-01-30 11:45:02.252082896 +0800
|
||
|
@@ -11,7 +11,7 @@
|
||
|
set(TABLEORG_DATA db.txt erbi.txt qxm.txt wanfeng.txt wbpy.txt wbx.txt zrm.txt cj.txt)
|
||
|
set(TABLE_NAME db erbi qxm wanfeng wbpy wbx zrm cj)
|
||
|
set(TABLE_CONF db.conf erbi.conf qxm.conf wanfeng.conf wbpy.conf wbx.conf zrm.conf cangjie.conf)
|
||
|
-set(TABLE_URL http://fcitx.googlecode.com/files/table.tar.gz)
|
||
|
+#set(TABLE_URL http://fcitx.googlecode.com/files/table.tar.gz)
|
||
|
set(TABLE_TAR ${CMAKE_CURRENT_SOURCE_DIR}/table.tar.gz)
|
||
|
|
||
|
set(INSTALL_TABLE_CONF "")
|
||
|
@@ -24,7 +24,7 @@
|
||
|
add_custom_target(table_data ALL DEPENDS ${TABLE_DATA})
|
||
|
|
||
|
add_custom_command(OUTPUT ${TABLEORG_DATA}
|
||
|
- COMMAND ${PROJECT_SOURCE_DIR}/data/download.sh "${WGET}" "${TABLE_URL}" "${TABLE_TAR}"
|
||
|
+# COMMAND ${PROJECT_SOURCE_DIR}/data/download.sh "${WGET}" "${TABLE_URL}" "${TABLE_TAR}"
|
||
|
COMMAND ${TAR} xzmvf ${TABLE_TAR})
|
||
|
|
||
|
foreach(tblname ${TABLE_NAME})
|
||
|
diff -urN fcitx-4.2.orig/fix_fcitx_googlecode_resolv_error.patch fcitx-4.2/fix_fcitx_googlecode_resolv_error.patch
|
||
|
--- fcitx-4.2.orig/fix_fcitx_googlecode_resolv_error.patch 1970-01-01 08:00:00.000000000 +0800
|
||
|
+++ fcitx-4.2/fix_fcitx_googlecode_resolv_error.patch 2012-01-30 11:44:51.855212877 +0800
|
||
|
@@ -0,0 +1,48 @@
|
||
|
+diff -urN fcitx-4.2.orig/data/CMakeLists.txt fcitx-4.2/data/CMakeLists.txt
|
||
|
+--- fcitx-4.2.orig/data/CMakeLists.txt 2012-01-30 10:48:00.955854988 +0800
|
||
|
++++ fcitx-4.2/data/CMakeLists.txt 2012-01-30 10:49:51.497473024 +0800
|
||
|
+@@ -33,8 +33,7 @@
|
||
|
+ set(PY_ORGDATA pyPhrase.org)
|
||
|
+ set(PY_DATA ${CMAKE_CURRENT_BINARY_DIR}/pybase.mb ${CMAKE_CURRENT_BINARY_DIR}/pyphrase.mb)
|
||
|
+ set(PY_TAR ${CMAKE_CURRENT_SOURCE_DIR}/pinyin.tar.gz)
|
||
|
+-set(PY_URL http://fcitx.googlecode.com/files/pinyin.tar.gz)
|
||
|
+-
|
||
|
++#set(PY_URL ../pinyin.tar.gz)
|
||
|
+
|
||
|
+ intltool_merge_translation(${CMAKE_CURRENT_SOURCE_DIR}/fcitx-configtool.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/fcitx-configtool.desktop )
|
||
|
+ intltool_merge_translation(${CMAKE_CURRENT_SOURCE_DIR}/fcitx.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/fcitx.desktop )
|
||
|
+@@ -42,11 +41,11 @@
|
||
|
+ add_custom_target(pinyin_data ALL DEPENDS ${PY_DATA})
|
||
|
+
|
||
|
+ add_custom_command(OUTPUT ${PY_ORGDATA}
|
||
|
+- COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/download.sh "${WGET}" "${PY_URL}" "${PY_TAR}"
|
||
|
++# COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/download.sh "${WGET}" "${PY_URL}" "${PY_TAR}"
|
||
|
+ COMMAND ${TAR} xzmvf ${PY_TAR})
|
||
|
+ add_custom_command(OUTPUT ${PY_DATA}
|
||
|
+ DEPENDS ${PY_ORGDATA}
|
||
|
+- COMMAND createPYMB ${CMAKE_CURRENT_SOURCE_DIR}/gbkpy.org ${CMAKE_CURRENT_BINARY_DIR}/${PY_ORGDATA})
|
||
|
++ COMMAND createPYMB ${CMAKE_CURRENT_SOURCE_DIR}/gbkpy.org ${CMAKE_CURRENT_BINARY_DIR}/${PY_ORGDATA}
|
||
|
+
|
||
|
+ add_custom_target(desktopfile ALL DEPENDS ${FCITX_DSEKTOP_FILES})
|
||
|
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/fcitx.desktop DESTINATION share/applications/)
|
||
|
+diff -urN fcitx-4.2.orig/data/table/CMakeLists.txt fcitx-4.2/data/table/CMakeLists.txt
|
||
|
+--- fcitx-4.2.orig/data/table/CMakeLists.txt 2012-01-30 10:48:00.962854900 +0800
|
||
|
++++ fcitx-4.2/data/table/CMakeLists.txt 2012-01-30 10:48:27.358524907 +0800
|
||
|
+@@ -11,7 +11,7 @@
|
||
|
+ set(TABLEORG_DATA db.txt erbi.txt qxm.txt wanfeng.txt wbpy.txt wbx.txt zrm.txt cj.txt)
|
||
|
+ set(TABLE_NAME db erbi qxm wanfeng wbpy wbx zrm cj)
|
||
|
+ set(TABLE_CONF db.conf erbi.conf qxm.conf wanfeng.conf wbpy.conf wbx.conf zrm.conf cangjie.conf)
|
||
|
+-set(TABLE_URL http://fcitx.googlecode.com/files/table.tar.gz)
|
||
|
++#set(TABLE_URL http://fcitx.googlecode.com/files/table.tar.gz)
|
||
|
+ set(TABLE_TAR ${CMAKE_CURRENT_SOURCE_DIR}/table.tar.gz)
|
||
|
+
|
||
|
+ set(INSTALL_TABLE_CONF "")
|
||
|
+@@ -24,7 +24,7 @@
|
||
|
+ add_custom_target(table_data ALL DEPENDS ${TABLE_DATA})
|
||
|
+
|
||
|
+ add_custom_command(OUTPUT ${TABLEORG_DATA}
|
||
|
+- COMMAND ${PROJECT_SOURCE_DIR}/data/download.sh "${WGET}" "${TABLE_URL}" "${TABLE_TAR}"
|
||
|
++# COMMAND ${PROJECT_SOURCE_DIR}/data/download.sh "${WGET}" "${TABLE_URL}" "${TABLE_TAR}"
|
||
|
+ COMMAND ${TAR} xzmvf ${TABLE_TAR})
|
||
|
+
|
||
|
+ foreach(tblname ${TABLE_NAME})
|