diff options
author | vanilla <vanilla@FreeBSD.org> | 2017-09-23 14:25:09 +0000 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2017-09-23 14:25:09 +0000 |
commit | df1c7341cf4ec318f689d01a9b11a44324d861c7 (patch) | |
tree | 739e1e548265a18a27fd8e718ef06b9cc8e403d0 | |
parent | 6f75280f1d0db8d5a95a6e59e9a2a30768c3fb1c (diff) | |
download | FreeBSD-ports-df1c7341cf4ec318f689d01a9b11a44324d861c7.zip FreeBSD-ports-df1c7341cf4ec318f689d01a9b11a44324d861c7.tar.gz |
Make toolkit input plugins as separate ports.
-rw-r--r-- | chinese/gcin/Makefile | 16 | ||||
-rw-r--r-- | chinese/gcin/files/patch-qt4-im__Makefile | 17 | ||||
-rw-r--r-- | chinese/gcin/pkg-plist | 1 |
3 files changed, 4 insertions, 30 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile index 5f56734..62cab41 100644 --- a/chinese/gcin/Makefile +++ b/chinese/gcin/Makefile @@ -3,6 +3,7 @@ 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 @@ -13,21 +14,16 @@ 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 @@ -35,13 +31,9 @@ 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,; \ diff --git a/chinese/gcin/files/patch-qt4-im__Makefile b/chinese/gcin/files/patch-qt4-im__Makefile deleted file mode 100644 index 21fee0a..0000000 --- a/chinese/gcin/files/patch-qt4-im__Makefile +++ /dev/null @@ -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 diff --git a/chinese/gcin/pkg-plist b/chinese/gcin/pkg-plist index 4cd9512..b2c9d21 100644 --- a/chinese/gcin/pkg-plist +++ b/chinese/gcin/pkg-plist @@ -21,7 +21,6 @@ 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 |