diff options
Diffstat (limited to 'chinese/librime')
-rw-r--r-- | chinese/librime/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chinese/librime/Makefile b/chinese/librime/Makefile index 0bd7a0a0d7b8..637d444ccf3a 100644 --- a/chinese/librime/Makefile +++ b/chinese/librime/Makefile @@ -3,7 +3,7 @@ PORTNAME= librime PORTVERSION= 0.9.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= chinese textproc MASTER_SITES= GOOGLE_CODE DISTFILES= ${DISTNAME}${EXTRACT_SUFX} brise-${DATA_VER}.tar.gz @@ -17,7 +17,7 @@ LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \ libglog.so:${PORTSDIR}/devel/glog \ libkyotocabinet.so:${PORTSDIR}/databases/kyotocabinet \ libopencc.so:${PORTSDIR}/chinese/opencc \ - libyaml-cpp.so:${PORTSDIR}/devel/yaml-cpp + libyaml-cpp03.so:${PORTSDIR}/devel/yaml-cpp03 USES= cmake pkgconfig gettext perl5 USE_PERL5= build patch @@ -30,6 +30,8 @@ PLIST_SUB= VER=${PORTVERSION} post-patch: .SILENT ${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \ -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \; + ${REINPLACE_CMD} -e 's|yaml-cpp|&03|g' ${WRKSRC}/cmake/FindYamlCpp.cmake \ + ${WRKSRC}/src/config.cc ${WRKSRC}/src/dict/dict_settings.cc post-build: @echo "building rime data." |