aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-04-12 11:09:06 +0800
committervanilla <vanilla@FreeBSD.org>2014-04-12 11:09:06 +0800
commit725ff2de1b417a313800bea7738a5a5a0606e3ee (patch)
tree6c16bc18d600197b82510b85638a4c8e83a6fa06
parent9f171eb16426de184866e1fc04dff9cbfbaee11d (diff)
downloadfreebsd-ports-gnome-725ff2de1b417a313800bea7738a5a5a0606e3ee.tar.gz
freebsd-ports-gnome-725ff2de1b417a313800bea7738a5a5a0606e3ee.tar.zst
freebsd-ports-gnome-725ff2de1b417a313800bea7738a5a5a0606e3ee.zip
Upgrade to 2.8.2.
-rw-r--r--chinese/gcin/Makefile13
-rw-r--r--chinese/gcin/distinfo4
-rw-r--r--chinese/gcin/files/patch-Makefile63
-rw-r--r--chinese/gcin/files/patch-modules__Makefile33
-rw-r--r--chinese/gcin/files/patch-qt4-im__Makefile14
-rw-r--r--chinese/gcin/pkg-plist3
6 files changed, 76 insertions, 54 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
index d32d67eb590e..65e72780bb3b 100644
--- a/chinese/gcin/Makefile
+++ b/chinese/gcin/Makefile
@@ -2,11 +2,10 @@
# $FreeBSD$
PORTNAME= gcin
-PORTVERSION= 2.8.0
-PORTREVISION= 1
+PORTVERSION= 2.8.2
+PORTREVISION= 0
CATEGORIES= chinese textproc gnome
-MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main
-DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
+MASTER_SITES= http://hyperrate.com/gcin-source/
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz
MAINTAINER= vanilla@FreeBSD.org
@@ -14,11 +13,10 @@ COMMENT= Traditional Chinese input utility in X
LICENSE= LGPL21
-USE_XZ= YES
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --use_gtk3=N --use_qt3=N
USE_GNOME= gtk20
-USES= gmake pkgconfig
+USES= gmake pkgconfig tar:xz
USE_XORG= x11 xtst xext
INSTALLS_ICONS= YES
USE_LDCONFIG= YES
@@ -56,7 +54,8 @@ post-patch:
s,/usr/bin/moc,${LOCALBASE}/bin/moc-qt4,; \
1, 300 s,gcc,$$CC,; s,gcin-$$GCIN_VERSION,gcin,; \
/GCIN_DEBUG/ d' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,;' \
+ @${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' \
diff --git a/chinese/gcin/distinfo b/chinese/gcin/distinfo
index 6ae9fec242fa..ec4a68a59ed9 100644
--- a/chinese/gcin/distinfo
+++ b/chinese/gcin/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gcin-2.8.0.tar.xz) = a43402ce1cd3f6ce3515d79f56a2fe7fdc2a76db32cccba7eaa6cce5063f5236
-SIZE (gcin-2.8.0.tar.xz) = 3742800
+SHA256 (gcin-2.8.2.tar.xz) = 873e2e87b6bc82324198d3047314ad3387dd34111a04cc295fed43f0100a453e
+SIZE (gcin-2.8.2.tar.xz) = 3892232
diff --git a/chinese/gcin/files/patch-Makefile b/chinese/gcin/files/patch-Makefile
index 26dee0ed7206..f97b3bc273c4 100644
--- a/chinese/gcin/files/patch-Makefile
+++ b/chinese/gcin/files/patch-Makefile
@@ -1,6 +1,30 @@
---- ./Makefile.orig 2012-12-08 08:32:13.000000000 +0800
-+++ ./Makefile 2014-03-28 20:46:01.000000000 +0800
-@@ -94,7 +94,7 @@
+--- Makefile.orig 2014-01-26 14:41:39.000000000 +0800
++++ Makefile 2014-04-12 10:55:35.584554559 +0800
+@@ -4,8 +4,11 @@ include config.mak
+ include suffixes-rule
+
+ gcin_tsin_o = tsin.o tsin-util.o win0.o win1.o tsin-parse.o
++SOURCES_gcin_tsin = tsin.cpp tsin-util.cpp win0.cpp win1.cpp tsin-parse.cpp
+ gcin_pho_o = win-pho.o pho.o pho-util.o pho-sym.o table-update.o pho-dbg.o
++SOURCES_gcin_pho = win-pho.cpp pho.cpp pho-util.cpp pho-sym.cpp table-update.cpp pho-dbg.cpp
+ gcin_gtab_o = gtab.o win-gtab.o gtab-util.o gtab-list.o gtab-buf.o
++SOURCES_gcin_gtab = gtab.cpp win-gtab.cpp gtab-util.cpp gtab-list.cpp gtab-buf.cpp
+
+ GCIN_SO= gcin1.so gcin2.so
+
+@@ -15,6 +18,11 @@ OBJS=gcin.o eve.o util.o gcin-conf.o gci
+ win-save-phrase.o unix-exec.o pho-kbm-name.o statistic.o tsin-scan.o gcin-module.o lang.o \
+ gcin-module-cb.o gtab-init.o fullchar.o gtab-tsin-fname.o win-screen-status.o
+
++SOURCES=gcin.cpp eve.cpp util.cpp gcin-conf.cpp gcin-settings.cpp locale.cpp gcin-icon.cpp about.cpp html-browser.cpp \
++ gcin-exec-script.cpp pho-play.cpp cache.cpp gtk_bug_fix.c phrase-save-menu.cpp \
++ $(SOURCES_gcin_pho) $(SOURCES_gcin_gtab) gcin-common.cpp phrase.cpp t2s-lookup.cpp gtab-use-count.cpp \
++ win-save-phrase.cpp unix-exec.cpp pho-kbm-name.cpp statistic.cpp tsin-scan.cpp gcin-module.cpp lang.cpp \
++ gcin-module-cb.o gtab-init.o fullchar.o gtab-tsin-fname.o win-screen-status.cpp
+
+ OBJS_TSLEARN=tslearn.o util.o gcin-conf.o pho-util.o tsin-util.o gcin-send.o pho-sym.o \
+ table-update.o locale.o gcin-settings.o gcin-common.o gcin-icon.o pho-dbg.o \
+@@ -101,7 +109,7 @@ PROGS_CV=kbmcv pin-juyin
all: $(PROGS) trad2sim $(GCIN_SO) $(DATA) $(PROGS_CV) gcin.spec gcin-fedora.spec
$(MAKE) -C data
$(MAKE) -C gtk-im
@@ -9,18 +33,18 @@
if [ $(USE_I18N) = 'Y' ]; then $(MAKE) -C po; fi
if [ $(GTK3_IM) = 'Y' ]; then $(MAKE) -C gtk3-im; fi
if [ $(QT_IM) = 'Y' ]; then $(MAKE) -C qt-im; fi
-@@ -103,18 +103,18 @@
+@@ -110,18 +118,18 @@ all: $(PROGS) trad2sim $(GCIN_SO) $(DATA
#gcc_ld_run_path=-Wl,-rpath,$(gcin_ld_run_path)
gcin: $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV)
- $(CCLD) $(EXTRA_LDFLAGS) $(gcc_ld_run_path) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L/usr/X11R6/$(LIB)
-+ $(CCLD) $(EXTRA_LDFLAGS) $(gcc_ld_run_path) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L/usr/local/$(LIB)
++ $(CCLD) $(EXTRA_LDFLAGS) $(gcc_ld_run_path) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L%%PREFIX%%/$(LIB)
rm -f core.* vgcore.*
ln -sf $@ $@.test
gcin-nocur: $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV)
- $(CCLD) -Wl,-rpath,$(gcinlibdir) $(EXTRA_LDFLAGS) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L/usr/X11R6/$(LIB)
-+ $(CCLD) -Wl,-rpath,$(gcinlibdir) $(EXTRA_LDFLAGS) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L/usr/local/$(LIB)
++ $(CCLD) -Wl,-rpath,$(gcinlibdir) $(EXTRA_LDFLAGS) -o $@ $(OBJS) $(IMdkitLIB) $(OBJ_IMSRV) -lXtst $(LDFLAGS) -L%%PREFIX%%/$(LIB)
rm -f core.*
-tslearn: $(OBJS_TSLEARN)
@@ -32,7 +56,16 @@
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_TS_EDIT) -L./im-client -lgcin-im-client $(LDFLAGS)
ts-contribute: ts-edit
-@@ -158,16 +158,16 @@
+@@ -143,7 +151,7 @@ gcin-tools: $(OBJS_gcin_tools) im-cl
+ phoa2d: $(OBJS_phoa2d) im-client/libgcin-im-client.so
+ $(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_phoa2d) -L./im-client -lgcin-im-client $(LDFLAGS)
+
+-phod2a: $(OBJS_phod2a)
++phod2a: $(OBJS_phod2a) im-client/libgcin-im-client.so
+ $(CCLD) -lX11 -o $@ $(OBJS_phod2a) $(LDFLAGS)
+
+ tsa2d32: $(OBJS_tsa2d32) im-client/libgcin-im-client.so
+@@ -165,16 +173,16 @@ gtab-merge: $(OBJS_gtab_merge)
kbmcv: $(OBJS_kbmcv)
$(CCLD) -o $@ $(OBJS_kbmcv) $(LDFLAGS)
@@ -53,7 +86,7 @@
$(CCLD) $(gcc_ld_run_path) -o $@ $(OBJS_gcin_message) -L./im-client -lgcin-im-client $(LDFLAGS)
pin-juyin: $(OBJS_pin_juyin)
-@@ -215,12 +215,12 @@
+@@ -223,12 +231,12 @@ install:
$(MAKE) -C data install
$(MAKE) -C im-client install
$(MAKE) -C gtk-im install
@@ -63,17 +96,23 @@
if [ $(QT_IM) = 'Y' ]; then $(MAKE) -C qt-im install; fi
if [ $(QT4_IM) = 'Y' ]; then $(MAKE) -C qt4-im install; fi
- if [ $(prefix) = /usr/local ]; then \
-- install -m 644 gcin.png /usr/share/icons; \
+- install -m 644 gcin.png /usr/share/icons/hicolor/64x64/apps; \
+ if [ $(prefix) = /nonstaged ]; then \
-+ install -m 644 gcin.png $(prefix)/share/icons; \
++ install -m 644 gcin.png $(prefix)/share/icons/hicolor/64x64/apps; \
install -d $(DOC_DIR); \
install -m 644 README.html Changelog.html $(DOC_DIR); \
install $(PROGS) $(bindir); \
-@@ -234,6 +234,7 @@
- rm -f $(bindir)/ts-contribute; ln -sf ts-edit $(bindir)/ts-contribute; \
+@@ -246,6 +254,7 @@ install:
+ rm -f $(bindir)/ts-edit-en; ln -sf ts-edit $(bindir)/ts-edit-en; \
fi
$(MAKE) -C scripts install
+ $(MAKE) -C man install
$(MAKE) -C menu install
if [ $(USE_I18N) = 'Y' ]; then $(MAKE) -C po install; fi
+@@ -279,4 +288,4 @@ gcin-fedora.spec: gcin-fedora.spec.in VE
+ rm -f $@
+ sed -e "s/__gcin_version__/$(GCIN_VERSION)/" < $< > $@
+
+-include .depend
++#include .depend
diff --git a/chinese/gcin/files/patch-modules__Makefile b/chinese/gcin/files/patch-modules__Makefile
index a74a825b1138..103a7f8c2fd8 100644
--- a/chinese/gcin/files/patch-modules__Makefile
+++ b/chinese/gcin/files/patch-modules__Makefile
@@ -1,29 +1,8 @@
---- ./modules/Makefile.orig 2012-04-10 13:50:44.000000000 +0800
-+++ ./modules/Makefile 2014-03-28 20:45:33.000000000 +0800
-@@ -3,15 +3,18 @@
-
- CFLAGS+=-I.. -I../IMdkit/include
- GCIN_MODULE=intcode-module.so
-+SOURCES=intcode.cpp win-int.cpp
-
- ifeq ($(USE_ANTHY),Y)
- GCIN_MODULE+=anthy-module.so
-+SOURCES+=anthy.cpp
- endif
-
- ifeq ($(USE_CHEWING),Y)
- GCIN_MODULE+=chewing-module.so
- CHEWING_DATADIR=$(shell pkg-config --variable=datadir chewing)
- CFLAGS += -DCHEWING_DATADIR=\"$(CHEWING_DATADIR)\"
-+SOURCES+=chewing-conf.cpp chewing.cpp gcin-setup-chewing.cpp
- endif
-
- all: $(GCIN_MODULE)
-@@ -35,6 +38,6 @@
- clean:
- rm -f *.pico *.so *.o .depend
+--- modules/Makefile.orig 2013-10-05 11:31:52.000000000 +0800
++++ modules/Makefile 2014-04-12 10:57:02.970548467 +0800
+@@ -38,4 +38,4 @@ clean:
.depend:
-- $(CCX) $(CFLAGS) -MM *.cpp > $@
-+ $(CCX) $(CFLAGS) -MM $(SOURCES) > $@
+ $(CCX) $(CFLAGS) -MM *.cpp > $@
- include .depend
+-include .depend
++#include .depend
diff --git a/chinese/gcin/files/patch-qt4-im__Makefile b/chinese/gcin/files/patch-qt4-im__Makefile
index 364ed1104383..3a3d6ed21240 100644
--- a/chinese/gcin/files/patch-qt4-im__Makefile
+++ b/chinese/gcin/files/patch-qt4-im__Makefile
@@ -1,11 +1,17 @@
---- ./qt4-im/Makefile.orig 2012-03-05 20:26:54.000000000 +0800
-+++ ./qt4-im/Makefile 2014-03-28 20:45:33.000000000 +0800
-@@ -3,7 +3,7 @@
+--- qt4-im/Makefile.orig 2012-03-05 20:26:54.000000000 +0800
++++ qt4-im/Makefile 2014-04-12 11:02:12.447548888 +0800
+@@ -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/X11 -I$(prefix)/include `pkg-config QtCore QtGui --cflags`
++INCS=-I../im-client -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 8c71598f8d5c..3da41ad7c2d9 100644
--- a/chinese/gcin/pkg-plist
+++ b/chinese/gcin/pkg-plist
@@ -95,7 +95,6 @@ man/man1/tslearn.1.gz
%%DATADIR%%/table/tsin32
%%DATADIR%%/table/tsin32.idx
%%DATADIR%%/table/vims.gtab
-%%DATADIR%%/table/vocabulary.gtab
%%DATADIR%%/table/zo.kbm
%%PORTDOCS%%%%DOCSDIR%%/Changelog.html
%%PORTDOCS%%%%DOCSDIR%%/README.html
@@ -158,7 +157,7 @@ share/icons/gcin/vietnam.png
share/icons/gcin/vocabulary.png
share/icons/gcin/wm2.png
share/icons/gcin/wubi.png
-share/icons/gcin.png
+share/icons/hicolor/64x64/apps/gcin.png
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm share/icons/gcin
@dirrmtry share/icons