Index: head/chinese/gcin/Makefile =================================================================== --- head/chinese/gcin/Makefile (revision 450444) +++ head/chinese/gcin/Makefile (revision 450445) @@ -1,87 +1,79 @@ # Created by: Shen Chuan-Hsing # $FreeBSD$ PORTNAME= gcin PORTVERSION= 2.8.5 +PORTREVISION= 1 CATEGORIES= chinese textproc gnome MASTER_SITES= http://hyperrate.com/gcin-source/ EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz MAINTAINER= vanilla@FreeBSD.org COMMENT= Traditional Chinese input utility in X LICENSE= LGPL21 HAS_CONFIGURE= YES -CONFIGURE_ARGS+= --use_gtk3=N --use_qt3=N +CONFIGURE_ARGS+= --use_gtk3=N --use_qt3=N --use_qt4=N --use_qt5=N USE_GNOME= gtk20 USES= gmake pkgconfig tar:xz USE_XORG= x11 xtst xext INSTALLS_ICONS= YES -USE_LDCONFIG= YES +USE_LDCONFIG= ${PREFIX}/lib/gcin -OPTIONS_DEFINE= ANTHY QT_IM_MODULE DOCS +OPTIONS_DEFINE= ANTHY DOCS OPTIONS_SUB= yes ANTHY_DESC= Japanese anthy IM module -QT_IM_MODULE_DESC= QT IM module -QT_IM_MODULE_USE= QT4=inputmethods,qmake_build,moc_build,corelib,gui -QT_IM_MODULE_LIB_DEPENDS= libmng.so:graphics/libmng -QT_IM_MODULE_CONFIGURE_OFF= --use_qt4=N - ANTHY_BUILD_DEPENDS= ${LOCALBASE}/include/anthy/anthy.h:japanese/anthy ANTHY_LIB_DEPENDS= libanthy.so:japanese/anthy ANTHY_CONFIGURE_OFF= --use_anthy=N post-patch: @${REINPLACE_CMD} -e 's,&,,; 1 s,##!/bin/bash,#!/bin/sh,; \ - s,QT_IM_DIR=/usr,QT_IM_DIR=$$prefix,g; \ - s,QT4_IM_DIR=/usr,QT4_IM_DIR=$$prefix,g; \ s,-ldl,,; \ s,mandir=$$datadir,mandir=$$prefix,; \ s,/usr/share,$$prefix/share,; \ - s,/usr/bin/moc,${MOC},; \ - s,%%MOC%%,${MOC},; \ 1, 300 s,gcc,$$CC,; s,gcin-$$GCIN_VERSION,gcin,; \ /GCIN_DEBUG/ d' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,; \ s,%%PREFIX%%,${PREFIX},;' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e '94 s/gcin/gcin-setup/' ${WRKSRC}/gcin-common.cpp @${REINPLACE_CMD} -e 's,/usr/local,/usr,g' \ ${WRKSRC}/gtk-im/Makefile ${WRKSRC}/menu/Makefile @${REINPLACE_CMD} -e 's,modify-XIM ,,; 8,10 d' \ ${WRKSRC}/scripts/Makefile @${REINPLACE_CMD} -e 's,bash,sh,; s/&//; s,/opt/gnome,${LOCALBASE},;' \ ${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup \ ${WRKSRC}/scripts/gtab.append_prepare \ ${WRKSRC}/scripts/tsin-gtab-import \ ${WRKSRC}/scripts/tsin-gtab-edit @${REINPLACE_CMD} -e 's,bash,sh,; s/&//; 12,13 s/=/ /; \ s/export/setenv/; s/$$UTF8ED/xdg-open/' \ ${WRKSRC}/scripts/html-browser @${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,;' \ ${WRKSRC}/gtk-im/gtkimcontextgcin.c @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' \ ${WRKSRC}/IMdkit/lib/Makefile ${WRKSRC}/Makefile \ ${WRKSRC}/qt-im/Makefile ${WRKSRC}/scripts/modify-XIM \ ${WRKSRC}/scripts/utf8-edit @${REINPLACE_CMD} -e '/make/ d' ${WRKSRC}/IMdkit/lib/Makefile @${REINPLACE_CMD} -e 's,/usr/X11R6/lib,${LOCALBASE}/lib,' ${WRKSRC}/im-client/Makefile post-patch-DOCS-off: @${REINPLACE_CMD} '/install.*DOC_DIR/d' ${WRKSRC}/Makefile post-build: .if !defined(DEBUG_FLAGS) @${FIND} ${WRKSRC} -name "*.so*" | ${XARGS} ${STRIP_CMD} .endif post-install: .if !defined(DEBUG_FLAGS) .for f in gcin* gtab-merge juyin-learn phoa2* sim2trad trad2sim ts-edit tsa2d32 tsd2a32 tsin2gtab-phrase tslearn @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} .endfor .endif .include Index: head/chinese/gcin/files/patch-qt4-im__Makefile =================================================================== --- head/chinese/gcin/files/patch-qt4-im__Makefile (revision 450444) +++ head/chinese/gcin/files/patch-qt4-im__Makefile (nonexistent) @@ -1,17 +0,0 @@ ---- qt4-im/Makefile.orig 2012-03-05 12:26:54 UTC -+++ qt4-im/Makefile -@@ -3,7 +3,7 @@ QT=qt4 - QTIM=$(QT)/plugins/inputmethods - IMMODULES=$(libdir)/$(DEB_BUILD_MULTIARCH)/$(QTIM) - --INCS=-I../im-client -I/usr/include/X11 `pkg-config QtCore QtGui --cflags` -+INCS=-I../im-client -I$(prefix)/include -I$(prefix)/include/X11 `pkg-config QtCore QtGui --cflags` - CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC -DQT4 -DQT_SHARED \ - -DQT_IMMODULE -DPIC - OBJS= moc_gcin-qt.o gcin-qt.o im-gcin-qt.o gcin-imcontext-qt.o -@@ -35,4 +35,4 @@ clean: - .depend: - $(CXX) $(CXXFLAGS) -MM *.cpp > $@ - --include .depend -+#include .depend Property changes on: head/chinese/gcin/files/patch-qt4-im__Makefile ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/chinese/gcin/pkg-plist =================================================================== --- head/chinese/gcin/pkg-plist (revision 450444) +++ head/chinese/gcin/pkg-plist (revision 450445) @@ -1,174 +1,173 @@ bin/gcin bin/gcin-exit bin/gcin-gb-toggle bin/gcin-kbm-toggle bin/gcin-message bin/gcin-tools bin/gcin2tab bin/gtab-db-gen bin/gtab-merge bin/juyin-learn bin/phoa2d bin/phod2a bin/sim2trad bin/trad2sim bin/ts-contribute bin/ts-contribute-en bin/ts-edit bin/ts-edit-en bin/tsa2d32 bin/tsd2a32 bin/tsin2gtab-phrase bin/tslearn bin/txt2gtab-phrase -%%QT_IM_MODULE%%lib/qt4/plugins/inputmethods/im-gcin.so %%ANTHY%%lib/gcin/anthy-module.so lib/gcin/gcin1.so lib/gcin/gcin2.so lib/gcin/intcode-module.so lib/gcin/libgcin-im-client.so lib/gcin/libgcin-im-client.so.1 lib/gcin/libgcin-im-client.so.1.2.5 lib/gtk-2.0/immodules/im-gcin.so man/man1/gcin-exit.1.gz man/man1/gcin-gb-toggle.1.gz man/man1/gcin-kbm-toggle.1.gz man/man1/gcin-message.1.gz man/man1/gcin-tools.1.gz man/man1/gcin.1.gz man/man1/gcin2tab.1.gz man/man1/gtab-merge.1.gz man/man1/juyin-learn.1.gz man/man1/phoa2d.1.gz man/man1/sim2trad.1.gz man/man1/ts-contribute.1.gz man/man1/ts-edit.1.gz man/man1/tsa2d32.1.gz man/man1/tslearn.1.gz share/applications/gcin-tools.desktop %%PORTDOCS%%%%DOCSDIR%%/Changelog.html %%PORTDOCS%%%%DOCSDIR%%/README.html %%DATADIR%%/script/gcin-user-setup %%DATADIR%%/script/gtab.append_prepare %%DATADIR%%/script/html-browser %%DATADIR%%/script/tsin-gtab-edit %%DATADIR%%/script/tsin-gtab-import %%DATADIR%%/script/utf8-edit %%DATADIR%%/table/NewCJ3.gtab %%DATADIR%%/table/ar30-big.gtab %%DATADIR%%/table/ar30.gtab %%DATADIR%%/table/ar33.gtab %%DATADIR%%/table/array-symbols.gtab %%DATADIR%%/table/array10a.gtab %%DATADIR%%/table/cj-punc.gtab %%DATADIR%%/table/cj.gtab %%DATADIR%%/table/cj5.gtab %%DATADIR%%/table/cj543.gtab %%DATADIR%%/table/colemak.kbm %%DATADIR%%/table/dayi3.gtab %%DATADIR%%/table/dvorak.kbm %%DATADIR%%/table/en-american %%DATADIR%%/table/en-american.idx %%DATADIR%%/table/et.kbm %%DATADIR%%/table/et26.kbm %%DATADIR%%/table/german.gtab %%DATADIR%%/table/greek.gtab %%DATADIR%%/table/gtab.list %%DATADIR%%/table/hangul-phrase.txt %%DATADIR%%/table/hangul.gtab %%DATADIR%%/table/hsu.kbm %%DATADIR%%/table/ibm.kbm %%DATADIR%%/table/jyutping.gtab %%DATADIR%%/table/latin-letters.gtab %%DATADIR%%/table/mitac.kbm %%DATADIR%%/table/pho-char.gtab %%DATADIR%%/table/pho-huge.tab2 %%DATADIR%%/table/pho.tab2 %%DATADIR%%/table/phrase-ctrl.table %%DATADIR%%/table/phrase.table %%DATADIR%%/table/pin-juyin.xlt %%DATADIR%%/table/pinyin-no-tone.kbm %%DATADIR%%/table/pinyin.gtab %%DATADIR%%/table/pinyin.kbm %%DATADIR%%/table/russian.gtab %%DATADIR%%/table/s-pho-huge.tab2 %%DATADIR%%/table/s-pho.tab2 %%DATADIR%%/table/s-tsin32 %%DATADIR%%/table/s-tsin32.idx %%DATADIR%%/table/s2t.dat %%DATADIR%%/table/simplex-punc.gtab %%DATADIR%%/table/simplex.gtab %%DATADIR%%/table/symbol-table %%DATADIR%%/table/symbols.gtab %%DATADIR%%/table/t2s.dat %%DATADIR%%/table/tsin-1.src %%DATADIR%%/table/tsin32 %%DATADIR%%/table/tsin32.idx %%DATADIR%%/table/vims.gtab %%DATADIR%%/table/zo.kbm share/icons/gcin/4corner.png share/icons/gcin/NewCJ3.png share/icons/gcin/amis-gcin.png share/icons/gcin/ar30-big.png share/icons/gcin/ar30.png share/icons/gcin/ar33.png share/icons/gcin/array-symbols.png share/icons/gcin/chewing.png share/icons/gcin/cj-punc.png share/icons/gcin/cj.png share/icons/gcin/cj5.png share/icons/gcin/cj543.png share/icons/gcin/dayi3.png share/icons/gcin/en-gcin-A.png share/icons/gcin/en-gcin.png share/icons/gcin/en-gtab-A.png share/icons/gcin/en-gtab.png share/icons/gcin/en-kana-nippon.png share/icons/gcin/en-tsin-A.png share/icons/gcin/en-tsin.png share/icons/gcin/erbi.png share/icons/gcin/ez.png share/icons/gcin/fcitx-qxm.png share/icons/gcin/fcitx-wanfeng.png share/icons/gcin/full-simp.png share/icons/gcin/full-trad.png share/icons/gcin/gcb.png share/icons/gcin/gcin_tray.png share/icons/gcin/gdayi3.png share/icons/gcin/german.png share/icons/gcin/greek.png share/icons/gcin/hakka.png share/icons/gcin/half-simp.png share/icons/gcin/half-trad.png share/icons/gcin/halfwidth-kana.png share/icons/gcin/hangul.png share/icons/gcin/intcode.png share/icons/gcin/jtcj_gb.png share/icons/gcin/juyin.png share/icons/gcin/jyutping.png share/icons/gcin/kana-nippon.png share/icons/gcin/latin-letters.png share/icons/gcin/newcj.png share/icons/gcin/noseeing.png share/icons/gcin/paiwan-gcin.png share/icons/gcin/pho-char.png share/icons/gcin/pinyin.png share/icons/gcin/russian.png share/icons/gcin/sakura.png share/icons/gcin/scj.png share/icons/gcin/shuangpin.png share/icons/gcin/simplex-punc.png share/icons/gcin/simplex.png share/icons/gcin/symbol_table.png share/icons/gcin/symbols.png share/icons/gcin/taiwan.png share/icons/gcin/telecode.png share/icons/gcin/tsin.png share/icons/gcin/tsou-gcin.png share/icons/gcin/vietnam.png share/icons/gcin/vocabulary.png share/icons/gcin/wm2.png share/icons/gcin/wubi.png share/icons/hicolor/64x64/apps/gcin.png @postexec %%LOCALBASE%%/bin/gtk-query-immodules-2.0 --update-cache @postunexec %%LOCALBASE%%/bin/gtk-query-immodules-2.0 --update-cache