Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2017 14:29:58 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r450448 - in head/chinese: . gcin-qt5 gcin-qt5/files
Message-ID:  <201709231429.v8NETwfp080988@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sat Sep 23 14:29:58 2017
New Revision: 450448
URL: https://svnweb.freebsd.org/changeset/ports/450448

Log:
  Add gcin's qt5 input module.

Added:
  head/chinese/gcin-qt5/
  head/chinese/gcin-qt5/Makefile   (contents, props changed)
  head/chinese/gcin-qt5/distinfo   (contents, props changed)
  head/chinese/gcin-qt5/files/
  head/chinese/gcin-qt5/files/patch-Makefile   (contents, props changed)
  head/chinese/gcin-qt5/files/patch-gcin-qt5.h   (contents, props changed)
  head/chinese/gcin-qt5/pkg-descr   (contents, props changed)
  head/chinese/gcin-qt5/pkg-message   (contents, props changed)
Modified:
  head/chinese/Makefile

Modified: head/chinese/Makefile
==============================================================================
--- head/chinese/Makefile	Sat Sep 23 14:29:14 2017	(r450447)
+++ head/chinese/Makefile	Sat Sep 23 14:29:58 2017	(r450448)
@@ -47,6 +47,7 @@
     SUBDIR += gcin
     SUBDIR += gcin-gtk3
     SUBDIR += gcin-qt4
+    SUBDIR += gcin-qt5
     SUBDIR += gimp-help-zh_CN
     SUBDIR += gydict
     SUBDIR += hc

Added: head/chinese/gcin-qt5/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/gcin-qt5/Makefile	Sat Sep 23 14:29:58 2017	(r450448)
@@ -0,0 +1,31 @@
+# Created by: vanilla@
+# $FreeBSD$
+
+PORTNAME=	gcin
+PORTVERSION=	2.8.5
+CATEGORIES=	chinese textproc gnome
+MASTER_SITES=	http://hyperrate.com/gcin-source/
+PKGNAMESUFFIX=	-qt5
+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}/qt5-im
+USES=		gmake pkgconfig tar:xz
+USE_QT5=	qdbus qmake_build buildtools_build core gui
+USE_CXXSTD=	c++11
+MAKE_ENV=	INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+		MKDIR="${MKDIR}"
+
+PLIST_FILES=	%%QT_PLUGINDIR%%/platforminputcontexts/libgcinplatforminputcontextplugin.so
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g; \
+		s,%%MOC%%,${MOC},;' ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>

Added: head/chinese/gcin-qt5/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/gcin-qt5/distinfo	Sat Sep 23 14:29:58 2017	(r450448)
@@ -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-qt5/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/gcin-qt5/files/patch-Makefile	Sat Sep 23 14:29:58 2017	(r450448)
@@ -0,0 +1,51 @@
+--- Makefile.orig	2015-10-17 02:08:40 UTC
++++ Makefile
+@@ -1,18 +1,20 @@
+-include ../config.mak
++#include ../config.mak
++prefix=/usr/local
++libdir=$(prefix)/lib
+ QT=qt5
++QT5_MOC=/usr/local/lib/qt5/bin/moc
+ QTIM=$(QT)/plugins/platforminputcontexts
+-IMMODULES=$(libdir)/$(DEB_BUILD_MULTIARCH)/$(QTIM)
++IMMODULES=$(libdir)/$(QTIM)
+ 
+-INCS=-I../im-client -I/usr/include/X11 `pkg-config Qt5Core Qt5Gui Qt5PlatformSupport QtDBus --cflags`
++INCS=-I../im-client -I$(prefix)/include -I$(prefix)/include/qt5 `pkg-config Qt5Core Qt5Gui Qt5DBus --cflags`
+ MODVERSION=`pkg-config --modversion Qt5Gui`
+ QTINC=`pkg-config --variable=includedir Qt5Gui`
+ INCS+=-I$(QTINC)/QtGui/$(MODVERSION)/QtGui
+-#INCS+=-I/usr/include/i386-linux-gnu/qt5/QtGui/$(MODVERSION)/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtGui/$(MODVERSION)/QtGui
+ 
+-CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC  -DQT5 -DQT_SHARED -DQT_IMMODULE -DPIC -DDEBUG="0$(GCIN_DEBUG)"
++CXXFLAGS+=$(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC  -DQT5 -DQT_SHARED -DQT_IMMODULE -DPIC -DDEBUG="0$(GCIN_DEBUG)"
+ OBJS= moc_gcin-qt5.o gcin-qt5.o gcin-imcontext-qt5.o moc_qgcinplatforminputcontext.o
+ .SUFFIXES:	.c .cpp .a .so .E .h
+-LDFLAGS=-L../im-client -lgcin-im-client `pkg-config Qt5Core Qt5Gui Qt5PlatformSupport --libs`
++LDFLAGS=-L$(prefix)/lib -L$(prefix)/lib/gcin -lgcin-im-client `pkg-config Qt5Core Qt5Gui --libs`
+ 
+ GCIN_QT5 = libgcinplatforminputcontextplugin.so
+ 
+@@ -32,17 +34,13 @@ $(GCIN_QT5): $(OBJS)
+ 	$(CXX) $(gcc_ld_run_path) -fno-exceptions -shared -o $@ $(OBJS) $(LDFLAGS)
+ 	rm -f core.*
+ install:
+-	if [ $(prefix) = /usr/local ]; then \
+-		install -d $(DESTDIR)/$(QT5_IM_DIR); \
+-		install -m 755 $(GCIN_QT5) $(DESTDIR)/$(QT5_IM_DIR); \
+-	else \
+-		install -d $(IMMODULES); \
+-                install -m 755 $(GCIN_QT5) $(IMMODULES); \
+-	fi
++	$(MKDIR) $(DESTDIR)/$(IMMODULES)
++	$(INSTALL_PROGRAM) -m 755 $(GCIN_QT5) $(DESTDIR)/$(IMMODULES)
++
+ clean:
+ 	rm -f $(OBJS) $(GCIN_QT5) *~ core.* *moc*.cpp *.E .depend
+ 
+ .depend:
+ 	$(CXX) $(CXXFLAGS) -MM *.cpp > $@
+ 
+-include .depend
++#include .depend

Added: head/chinese/gcin-qt5/files/patch-gcin-qt5.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/gcin-qt5/files/patch-gcin-qt5.h	Sat Sep 23 14:29:58 2017	(r450448)
@@ -0,0 +1,11 @@
+--- gcin-qt5.h.orig	2017-09-21 12:57:19 UTC
++++ gcin-qt5.h
+@@ -9,7 +9,7 @@ class QGcinPlatformInputContextPlugin : public QPlatfo
+ {
+     Q_OBJECT
+ public:
+-    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformInputContextFactoryInterface" FILE "gcin.json")
++    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1" FILE "gcin.json")
+     QStringList keys() const;
+     QGcinPlatformInputContext *create(const QString& system, const QStringList& paramList);
+ };

Added: head/chinese/gcin-qt5/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/gcin-qt5/pkg-descr	Sat Sep 23 14:29:58 2017	(r450448)
@@ -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-qt5/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/gcin-qt5/pkg-message	Sat Sep 23 14:29:58 2017	(r450448)
@@ -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 &
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709231429.v8NETwfp080988>