freebsd-ports/chinese/libchewing/files/patch-plat_path.c
Cheng-Lung Sung 6811f298e9 Update chinese/libchewing to 0.3.4
* Master site changed to Google Code
* Patches to install data into PREFIX/share/chewing

Patch created and tested by me and Zhihao Yuan(lichray@gmail.com)

PR:		ports/176021
Submitted by:	Henry Hu <henry.hu.sh_AT_gmail.com>
2013-06-27 01:47:18 +00:00

15 lines
522 B
C

--- src/porting_layer/src/plat_path.c.orig 2013-02-10 19:57:20.000000000 -0500
+++ src/porting_layer/src/plat_path.c 2013-02-10 19:57:35.000000000 -0500
@@ -37,10 +37,10 @@
home = getenv( "HOME" );
if ( home ) {
snprintf( path, path_len, "%s/.chewing" SEARCH_PATH_SEP
- LIBDIR "/libchewing", home );
+ DATADIR "/chewing", home );
} else {
// No HOME ?
- strncpy( path, SEARCH_PATH_SEP LIBDIR "/libchewing", path_len );
+ strncpy( path, SEARCH_PATH_SEP DATADIR "/chewing", path_len );
}
}