From owner-svn-ports-all@freebsd.org Sat Sep 23 14:29:15 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8263E06888; Sat, 23 Sep 2017 14:29:15 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93E8775221; Sat, 23 Sep 2017 14:29:15 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8NETEp6080738; Sat, 23 Sep 2017 14:29:14 GMT (envelope-from vanilla@FreeBSD.org) Received: (from vanilla@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8NETEfu080732; Sat, 23 Sep 2017 14:29:14 GMT (envelope-from vanilla@FreeBSD.org) Message-Id: <201709231429.v8NETEfu080732@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vanilla set sender to vanilla@FreeBSD.org using -f From: "Vanilla I. Shu" Date: Sat, 23 Sep 2017 14:29:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r450447 - in head/chinese: . gcin-qt4 gcin-qt4/files X-SVN-Group: ports-head X-SVN-Commit-Author: vanilla X-SVN-Commit-Paths: in head/chinese: . gcin-qt4 gcin-qt4/files X-SVN-Commit-Revision: 450447 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Sep 2017 14:29:15 -0000 Author: vanilla Date: Sat Sep 23 14:29:14 2017 New Revision: 450447 URL: https://svnweb.freebsd.org/changeset/ports/450447 Log: Add gcin's qt4 input module. Added: head/chinese/gcin-qt4/ head/chinese/gcin-qt4/Makefile (contents, props changed) head/chinese/gcin-qt4/distinfo (contents, props changed) head/chinese/gcin-qt4/files/ head/chinese/gcin-qt4/files/patch-Makefile (contents, props changed) head/chinese/gcin-qt4/pkg-descr (contents, props changed) head/chinese/gcin-qt4/pkg-message (contents, props changed) Modified: head/chinese/Makefile Modified: head/chinese/Makefile ============================================================================== --- head/chinese/Makefile Sat Sep 23 14:26:43 2017 (r450446) +++ head/chinese/Makefile Sat Sep 23 14:29:14 2017 (r450447) @@ -46,6 +46,7 @@ SUBDIR += gb2ps SUBDIR += gcin SUBDIR += gcin-gtk3 + SUBDIR += gcin-qt4 SUBDIR += gimp-help-zh_CN SUBDIR += gydict SUBDIR += hc Added: head/chinese/gcin-qt4/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/chinese/gcin-qt4/Makefile Sat Sep 23 14:29:14 2017 (r450447) @@ -0,0 +1,30 @@ +# Created by: vanilla@ +# $FreeBSD$ + +PORTNAME= gcin +PORTVERSION= 2.8.5 +CATEGORIES= chinese textproc gnome +MASTER_SITES= http://hyperrate.com/gcin-source/ +PKGNAMESUFFIX= -qt4 +EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz + +MAINTAINER= vanilla@FreeBSD.org +COMMENT= Traditional Chinese input utility in X + +LICENSE= LGPL21 + +LIB_DEPENDS= libgcin-im-client.so:chinese/gcin + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/qt4-im +USES= gmake pkgconfig tar:xz +USE_QT4= inputmethods qmake_build moc_build corelib gui +MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + MKDIR="${MKDIR}" + +PLIST_FILES= %%QT_PLUGINDIR%%/inputmethods/im-gcin.so + +post-patch: + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g; \ + s,%%MOC%%,${MOC},;' ${WRKSRC}/Makefile + +.include Added: head/chinese/gcin-qt4/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/chinese/gcin-qt4/distinfo Sat Sep 23 14:29:14 2017 (r450447) @@ -0,0 +1,3 @@ +TIMESTAMP = 1488877345 +SHA256 (gcin-2.8.5.tar.xz) = 7a191f71136496e407b2554dd5b8775ebfde4389a37c8a4f3e153485760de93b +SIZE (gcin-2.8.5.tar.xz) = 4005548 Added: head/chinese/gcin-qt4/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/chinese/gcin-qt4/files/patch-Makefile Sat Sep 23 14:29:14 2017 (r450447) @@ -0,0 +1,47 @@ +--- Makefile.orig 2012-03-05 12:26:54 UTC ++++ Makefile +@@ -1,14 +1,17 @@ +-include ../config.mak ++#include ../config.mak ++prefix=%%PREFIX%% ++libdir=$(prefix)/lib + QT=qt4 ++QT4_MOC=%%MOC%% + QTIM=$(QT)/plugins/inputmethods +-IMMODULES=$(libdir)/$(DEB_BUILD_MULTIARCH)/$(QTIM) ++IMMODULES=$(libdir)/$(QTIM) + +-INCS=-I../im-client -I/usr/include/X11 `pkg-config QtCore QtGui --cflags` +-CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC -DQT4 -DQT_SHARED \ ++INCS=-I../im-client -I$(prefix)/include `pkg-config QtCore QtGui --cflags` ++CXXFLAGS+= $(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 + .SUFFIXES: .c .cpp .a .so .E .h +-LDFLAGS=-L../im-client -lgcin-im-client `pkg-config QtCore QtGui --libs` ++LDFLAGS=-L$(prefix)/lib -L$(prefix)/lib/gcin -lgcin-im-client `pkg-config QtCore QtGui --libs` + all: im-gcin.so + + .cpp.E: +@@ -22,17 +25,13 @@ im-gcin.so: $(OBJS) + $(CXX) $(gcc_ld_run_path) -fno-exceptions -shared -o $@ $(OBJS) $(LDFLAGS) + rm -f core.* + install: +- if [ $(prefix) = /usr/local ]; then \ +- install -d $(DESTDIR)/$(QT4_IM_DIR); \ +- install -m 755 im-gcin.so $(DESTDIR)/$(QT4_IM_DIR); \ +- else \ +- install -d $(IMMODULES); \ +- install -m 755 im-gcin.so $(IMMODULES); \ +- fi ++ $(MKDIR) $(DESTDIR)/$(IMMODULES); ++ $(INSTALL_PROGRAM) -m 755 im-gcin.so $(DESTDIR)/$(IMMODULES); ++ + clean: + rm -f $(OBJS) im-gcin.so *~ core.* *moc*.cpp *.E .depend + + .depend: + $(CXX) $(CXXFLAGS) -MM *.cpp > $@ + +-include .depend ++#include .depend Added: head/chinese/gcin-qt4/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/chinese/gcin-qt4/pkg-descr Sat Sep 23 14:29:14 2017 (r450447) @@ -0,0 +1,4 @@ +gcin is a Gtk Chinese INput application in X, well support in Traditional +Chinese(Big5) charsets. + +WWW: http://www.csie.nctu.edu.tw/~cp76/gcin/ Added: head/chinese/gcin-qt4/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/chinese/gcin-qt4/pkg-message Sat Sep 23 14:29:14 2017 (r450447) @@ -0,0 +1,10 @@ +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +Remember to set these environment varibles (such as your ~/.xinitrc): + + export XMODIFIERS='@im=gcin' + export QT_IM_MODULE=gcin + + # Finally, to start the GCIN input method daemon, use command: + exec gcin & + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=