diff options
author | rm <rm@FreeBSD.org> | 2016-10-13 03:07:59 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2016-10-13 03:07:59 +0800 |
commit | 0472b9e1149bb44be4b62deaf36e38658457dea8 (patch) | |
tree | ead9ed237c3106226dc1b86ad849a61dd7850394 /japanese/mozc-server | |
parent | 78ce8accdfc074f35b3b89dcc2be0cd428224af6 (diff) | |
download | freebsd-ports-gnome-0472b9e1149bb44be4b62deaf36e38658457dea8.tar.gz freebsd-ports-gnome-0472b9e1149bb44be4b62deaf36e38658457dea8.tar.zst freebsd-ports-gnome-0472b9e1149bb44be4b62deaf36e38658457dea8.zip |
japanese/mozc-server: with build with python3
- limit python version to python 2.7
- remove duplicated python direct build dependency
- set correct python version in build scripts
- fix packaging by not installing to /root:
====>> Checking for filesystem violations... done
====>> Error: Filesystem touched during build:
extra: root/.mozc
PR: 207937
Submitted by: Hiroo Ono <hiroo.ono+freebsd@gmail.com> (based on)
Approved by: maintainer timeout (14 days)
Diffstat (limited to 'japanese/mozc-server')
-rw-r--r-- | japanese/mozc-server/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile index 555934b02d80..3a9aed3d21cf 100644 --- a/japanese/mozc-server/Makefile +++ b/japanese/mozc-server/Makefile @@ -3,6 +3,7 @@ PORTNAME= mozc PORTVERSION= 2.17.2322.102 +PORTREVISION= 1 CATEGORIES= japanese MASTER_SITES= https://codeload.github.com/google/${PORTNAME}/tar.gz/9b4c9e0?dummy=/:main \ https://codeload.github.com/hiroyuki-komatsu/japanese-usage-dictionary/tar.gz/e5b3425?dummy=/:udic @@ -18,7 +19,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ninja:devel/ninja \ - python:lang/python \ gyp:devel/py-gyp EXTRACT_DEPENDS=${PYTHON_CMD}:${PYTHON_PORTSDIR} LIB_DEPENDS= libprotobuf.so:devel/protobuf \ @@ -26,8 +26,9 @@ LIB_DEPENDS= libprotobuf.so:devel/protobuf \ RUN_DEPENDS= xdg-open:devel/xdg-utils USES= compiler:c++11-lang pkgconfig iconv:wchar_t gmake \ - tar:bzip2 python:build + tar:bzip2 python:2.7,build shebangfix WRKSRC= ${WRKDIR}/${PORTNAME}-9b4c9e0 +SHEBANG_FILES= src/build_mozc.py BUILD_WRKSRC= ${WRKSRC}/src BUILD_MOZC_LIST?= mozc_server @@ -98,6 +99,8 @@ BUILD_GYP_CMD= ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/gyp post-patch: ${REINPLACE_CMD} 's,-liconv,${ICONV_LIB},g' \ ${BUILD_WRKSRC}/gui/qt_libraries.gypi + ${FIND} ${BUILD_WRKSRC} \( -name '*.gyp' -o -name '*.gypi' \) -exec \ + ${REINPLACE_CMD} "s,'python','${PYTHON_CMD}',g" {} \; .if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc" ${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \ ${BUILD_WRKSRC}/unix/fcitx/gen_fcitx_mozc_i18n.sh @@ -416,6 +419,8 @@ do-install-mozc_el: .endif do-build: ${BUILD_MOZC_LIST:S/^/do-build-/} +post-build: + ${RMDIR} /root/.mozc do-install: ${BUILD_MOZC_LIST:S/^/do-install-/} .include <bsd.port.post.mk> |