aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2017-09-23 14:29:14 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2017-09-23 14:29:14 +0000
commit4391947cbb3903b5c7ad731320046a53a021cea9 (patch)
tree3def9350d30e41e4f549522a02ec86a3ebb2fd6f /chinese
parent015c7ef6417a6617e86982e25996627035e80397 (diff)
downloadports-4391947cbb3903b5c7ad731320046a53a021cea9.tar.gz
ports-4391947cbb3903b5c7ad731320046a53a021cea9.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/gcin-qt4/Makefile30
-rw-r--r--chinese/gcin-qt4/distinfo3
-rw-r--r--chinese/gcin-qt4/files/patch-Makefile47
-rw-r--r--chinese/gcin-qt4/pkg-descr4
-rw-r--r--chinese/gcin-qt4/pkg-message10
6 files changed, 95 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 7d221874891f..98042835b9dd 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -46,6 +46,7 @@
SUBDIR += gb2ps
SUBDIR += gcin
SUBDIR += gcin-gtk3
+ SUBDIR += gcin-qt4
SUBDIR += gimp-help-zh_CN
SUBDIR += gydict
SUBDIR += hc
diff --git a/chinese/gcin-qt4/Makefile b/chinese/gcin-qt4/Makefile
new file mode 100644
index 000000000000..46d364e431c3
--- /dev/null
+++ b/chinese/gcin-qt4/Makefile
@@ -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 <bsd.port.mk>
diff --git a/chinese/gcin-qt4/distinfo b/chinese/gcin-qt4/distinfo
new file mode 100644
index 000000000000..69f02736f38c
--- /dev/null
+++ b/chinese/gcin-qt4/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1488877345
+SHA256 (gcin-2.8.5.tar.xz) = 7a191f71136496e407b2554dd5b8775ebfde4389a37c8a4f3e153485760de93b
+SIZE (gcin-2.8.5.tar.xz) = 4005548
diff --git a/chinese/gcin-qt4/files/patch-Makefile b/chinese/gcin-qt4/files/patch-Makefile
new file mode 100644
index 000000000000..91fbf06754e2
--- /dev/null
+++ b/chinese/gcin-qt4/files/patch-Makefile
@@ -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
diff --git a/chinese/gcin-qt4/pkg-descr b/chinese/gcin-qt4/pkg-descr
new file mode 100644
index 000000000000..a4f4aaff2860
--- /dev/null
+++ b/chinese/gcin-qt4/pkg-descr
@@ -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/
diff --git a/chinese/gcin-qt4/pkg-message b/chinese/gcin-qt4/pkg-message
new file mode 100644
index 000000000000..d1a19ea81c9d
--- /dev/null
+++ b/chinese/gcin-qt4/pkg-message
@@ -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 &
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=