summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2006-04-07 03:22:56 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2006-04-07 03:22:56 +0000
commit23809273e6d20eed8e9e4c16bfd0f70daa42d773 (patch)
tree6b9222383ddbc1f04b57fbb43be49e216ec5e52f /chinese
parentRemove USE_REINPLACE to give portlint a better self-image. (diff)
Upgrade to 1.1.8.
PR: ports/95354 Submitted by: chinsan.tw@gmail.dot.com
Diffstat (limited to 'chinese')
-rw-r--r--chinese/gcin-devel/Makefile12
-rw-r--r--chinese/gcin-devel/distinfo6
-rw-r--r--chinese/gcin-devel/files/patch-configure87
-rw-r--r--chinese/gcin-devel/files/patch-script45
-rw-r--r--chinese/gcin-devel/pkg-message3
-rw-r--r--chinese/gcin/Makefile12
-rw-r--r--chinese/gcin/distinfo6
-rw-r--r--chinese/gcin/files/patch-configure87
-rw-r--r--chinese/gcin/files/patch-script45
-rw-r--r--chinese/gcin/pkg-message3
10 files changed, 30 insertions, 276 deletions
diff --git a/chinese/gcin-devel/Makefile b/chinese/gcin-devel/Makefile
index fe559bfe6a3b..6d4dbf193051 100644
--- a/chinese/gcin-devel/Makefile
+++ b/chinese/gcin-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gcin
-PORTVERSION= 1.1.7
+PORTVERSION= 1.1.8
CATEGORIES= chinese textproc gnome
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ \
http://edt1023.sayya.org/misc/
@@ -64,6 +64,16 @@ PLIST_SUB+= BOSHIAMY="@comment "
pre-configure:
@${REINPLACE_CMD} -e 's,gcin.png,${PREFIX}/share/icons/gcin.png,' \
${WRKSRC}/menu/gcin-setup.desktop
+ @${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \
+ s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \
+ s/mandir=$$datadir/mandir=$$prefix/; \
+ s/\/usr\/share/$$prefix\/share/; \
+ 109,110 s/control-center-2\.0/gnome\/control-center-2\.0/; \
+ s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile
+ @${REINPLACE_CMD} -e 's/bash/sh/;' ${WRKSRC}/scripts/gcin-user-setup
+ @${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \
+ ${WRKSRC}/scripts/utf8-edit
post-install:
.if !defined(NOPORTDOCS)
diff --git a/chinese/gcin-devel/distinfo b/chinese/gcin-devel/distinfo
index 62b21cdca4d1..62761f597e93 100644
--- a/chinese/gcin-devel/distinfo
+++ b/chinese/gcin-devel/distinfo
@@ -1,5 +1,5 @@
-MD5 (gcin-1.1.7.tar.bz2) = a2b08008e17c86d31fbed707c9d156ee
-SHA256 (gcin-1.1.7.tar.bz2) = 8e63077c2d9340492539334f8229893e231158ca192b7a3066a73daa7e5697ea
-SIZE (gcin-1.1.7.tar.bz2) = 1392767
+MD5 (gcin-1.1.8.tar.bz2) = 9e482f698d27f24aff50e1dfd0bc9a4c
+SHA256 (gcin-1.1.8.tar.bz2) = 319aedc7a2df013d8434e170e397387db235460f3897ba2e5ceb8e9d506c072e
+SIZE (gcin-1.1.8.tar.bz2) = 1392433
MD5 (noseeing.tar.gz) = IGNORE
SHA256 (noseeing.tar.gz) = IGNORE
diff --git a/chinese/gcin-devel/files/patch-configure b/chinese/gcin-devel/files/patch-configure
deleted file mode 100644
index 62b212276ec3..000000000000
--- a/chinese/gcin-devel/files/patch-configure
+++ /dev/null
@@ -1,87 +0,0 @@
---- configure.orig Wed Feb 22 21:25:55 2006
-+++ configure Wed Feb 22 21:34:26 2006
-@@ -1,4 +1,4 @@
--#!/bin/bash
-+#!/bin/sh
-
- if [ "$1" = "-h" -o "$1" = "--help" -o "$1" = "-help" ]; then
- echo "** valid options:"
-@@ -9,12 +9,12 @@
- fi
-
- MAKE=make
--which gmake >& /dev/null
-+which gmake > /dev/null
- if [ $? = 0 ]; then
- MAKE=gmake
- fi
-
--uname | grep FreeBSD >& /dev/null
-+uname | grep FreeBSD > /dev/null
- if [ $? = 0 ]; then
- FREEBSD=1
- else
-@@ -74,7 +74,7 @@
- QT_IM='N'
- for i in qt3 qt4
- do
-- QT_IM_DIR=/usr/lib/$i/plugins/$LIB/inputmethods
-+ QT_IM_DIR=$prefix/lib/$i/plugins/$LIB/inputmethods
- echo "testing if you have QT_IM_MODULE dir:$QT_IM_DIR support"
- if [ -d $QT_IM_DIR ]; then
- QT_IM='Y'
-@@ -92,7 +92,7 @@
-
- bindir=$prefix/bin
- datadir=$prefix/share
--mandir=$datadir/man
-+mandir=$prefix/man
- libdir=$prefix/lib
- includedir=$prefix/include
- optdir=/opt
-@@ -105,8 +105,8 @@
- GCIN_SETUP_DESKTOP=/opt/gnome/share/control-center-2.0/capplets
- GCIN_SETUP_DESKTOP_rpm='$(optdir)/gnome/share/control-center-2.0/capplets'
- else
-- GCIN_SETUP_DESKTOP=/usr/share/control-center-2.0/capplets
-- GCIN_SETUP_DESKTOP_rpm='$(datadir)/control-center-2.0/capplets'
-+ GCIN_SETUP_DESKTOP=$prefix/share/gnome/control-center-2.0/capplets
-+ GCIN_SETUP_DESKTOP_rpm='$(datadir)/gnome/control-center-2.0/capplets'
- fi
-
-
-@@ -115,14 +115,6 @@
- grep -v qt3/plugins/inputmethods gcin.spec.tmp > gcin.spec
- fi
-
--grep Cooker /etc/mandriva-release 2>&1 | grep 2006 >& /dev/null
--if [ $? = 0 ]; then
-- new_gtk_im='Y'
-- echo "!!!! new gtk-im(im-gcin.so) will be enabled because you are using Cooker 2006."
-- echo "!!!! You have to install the latest libwidget_gtk2.so"
-- echo "http://www.csie.nctu.edu.tw/~cp76/linux/mozilla/mdk-firefox-thunderbird-1.0.6/cooker-new-gtkim-libwidget_gtk2.so.gz"
--fi
--
-
- OPTFLAGS="-g"
- if [ $prefix = /usr ]; then
-@@ -130,7 +122,7 @@
- fi
-
-
--echo "CC=gcc" > config.mak
-+echo "CC=$CC" > config.mak
- echo "MAKE=$MAKE" >> config.mak
- echo "GTKINC=$GTKINC" >> config.mak
- echo "prefix=$prefix" >> config.mak
-@@ -150,8 +142,8 @@
- echo "GCIN_SCRIPT_DIR=\$(datadir_r)/gcin/script" >> config.mak
- echo "GCIN_SCRIPT_DIR_i=\$(datadir)/gcin/script" >> config.mak
- echo "OPTFLAGS=$OPTFLAGS" >> config.mak
--echo "DOC_DIR=\$(datadir_r)/doc/gcin-$GCIN_VERSION" >> config.mak
--echo "DOC_DIR_i=\$(datadir)/doc/gcin-$GCIN_VERSION" >> config.mak
-+echo "DOC_DIR=\$(datadir_r)/doc/gcin" >> config.mak
-+echo "DOC_DIR_i=\$(datadir)/doc/gcin" >> config.mak
- echo "GCIN_ICON_DIR=\$(datadir_r)/icons/gcin" >> config.mak
- echo "SYS_ICON_DIR=\$(datadir_r)/icons" >> config.mak
- echo "GCIN_ICON_DIR_i=\$(datadir)/icons/gcin" >> config.mak
diff --git a/chinese/gcin-devel/files/patch-script b/chinese/gcin-devel/files/patch-script
deleted file mode 100644
index a9f7618064b9..000000000000
--- a/chinese/gcin-devel/files/patch-script
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -ruN scripts.orig/Makefile scripts/Makefile
---- scripts.orig/Makefile Wed Feb 22 21:35:19 2006
-+++ scripts/Makefile Wed Feb 22 21:36:28 2006
-@@ -1,13 +1,10 @@
- include ../config.mak
-
--SCRIPTS=gcin-user-setup modify-XIM utf8-edit
-+SCRIPTS=gcin-user-setup utf8-edit
-
- all: $(SCRIPTS)
-
- install:
-- if [ $(prefix) = /usr/local ]; then \
-- sh modify-XIM; \
-- fi
- install -d $(GCIN_SCRIPT_DIR_i)
- install -m 755 $(SCRIPTS) $(GCIN_SCRIPT_DIR_i)
- clean:
-diff -ruN scripts.orig/gcin-user-setup scripts/gcin-user-setup
---- scripts.orig/gcin-user-setup Wed Feb 22 21:35:19 2006
-+++ scripts/gcin-user-setup Wed Feb 22 21:36:44 2006
-@@ -1,4 +1,4 @@
--#!/bin/bash
-+#!/bin/sh
-
- if [ -z "$1" -o -z "$2" ]; then
- echo "please specify gcin_table_dir gcin_bin_dir"
-diff -ruN scripts.orig/utf8-edit scripts/utf8-edit
---- scripts.orig/utf8-edit Wed Feb 22 21:35:19 2006
-+++ scripts/utf8-edit Wed Feb 22 21:37:58 2006
-@@ -1,10 +1,10 @@
--#!/bin/bash
-+#!/bin/sh
-
--PATH=$PATH:/opt/gnome/bin:/usr/local/bin
-+PATH=$PATH:/usr/X11R6/bin:/usr/local/bin
-
--for i in leafpad gedit madedit kedit kate
-+for i in leafpad gedit gvim madedit kedit kate
- do
-- which $i >& /dev/null
-+ which $i > /dev/null
- if [ $? = 0 ]; then
- UTF8ED=$i
- break
diff --git a/chinese/gcin-devel/pkg-message b/chinese/gcin-devel/pkg-message
index ff76b52a96fa..553c1c4cbd07 100644
--- a/chinese/gcin-devel/pkg-message
+++ b/chinese/gcin-devel/pkg-message
@@ -2,8 +2,7 @@
Remember to set environment varible:
(csh/tcsh) (sh/bash)
- setenv XMODIFIERS @im=xcin export XMODIFIERS='@im=xcin'
- setenv GTK_IM_MODULE xim export GTK_IM_MODULE=xim
+ setenv XMODIFIERS @im=gcin export XMODIFIERS='@im=gcin'
Finally, to start the GCIN input method daemon, use command:
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
index fe559bfe6a3b..6d4dbf193051 100644
--- a/chinese/gcin/Makefile
+++ b/chinese/gcin/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gcin
-PORTVERSION= 1.1.7
+PORTVERSION= 1.1.8
CATEGORIES= chinese textproc gnome
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ \
http://edt1023.sayya.org/misc/
@@ -64,6 +64,16 @@ PLIST_SUB+= BOSHIAMY="@comment "
pre-configure:
@${REINPLACE_CMD} -e 's,gcin.png,${PREFIX}/share/icons/gcin.png,' \
${WRKSRC}/menu/gcin-setup.desktop
+ @${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \
+ s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \
+ s/mandir=$$datadir/mandir=$$prefix/; \
+ s/\/usr\/share/$$prefix\/share/; \
+ 109,110 s/control-center-2\.0/gnome\/control-center-2\.0/; \
+ s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile
+ @${REINPLACE_CMD} -e 's/bash/sh/;' ${WRKSRC}/scripts/gcin-user-setup
+ @${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \
+ ${WRKSRC}/scripts/utf8-edit
post-install:
.if !defined(NOPORTDOCS)
diff --git a/chinese/gcin/distinfo b/chinese/gcin/distinfo
index 62b21cdca4d1..62761f597e93 100644
--- a/chinese/gcin/distinfo
+++ b/chinese/gcin/distinfo
@@ -1,5 +1,5 @@
-MD5 (gcin-1.1.7.tar.bz2) = a2b08008e17c86d31fbed707c9d156ee
-SHA256 (gcin-1.1.7.tar.bz2) = 8e63077c2d9340492539334f8229893e231158ca192b7a3066a73daa7e5697ea
-SIZE (gcin-1.1.7.tar.bz2) = 1392767
+MD5 (gcin-1.1.8.tar.bz2) = 9e482f698d27f24aff50e1dfd0bc9a4c
+SHA256 (gcin-1.1.8.tar.bz2) = 319aedc7a2df013d8434e170e397387db235460f3897ba2e5ceb8e9d506c072e
+SIZE (gcin-1.1.8.tar.bz2) = 1392433
MD5 (noseeing.tar.gz) = IGNORE
SHA256 (noseeing.tar.gz) = IGNORE
diff --git a/chinese/gcin/files/patch-configure b/chinese/gcin/files/patch-configure
deleted file mode 100644
index 62b212276ec3..000000000000
--- a/chinese/gcin/files/patch-configure
+++ /dev/null
@@ -1,87 +0,0 @@
---- configure.orig Wed Feb 22 21:25:55 2006
-+++ configure Wed Feb 22 21:34:26 2006
-@@ -1,4 +1,4 @@
--#!/bin/bash
-+#!/bin/sh
-
- if [ "$1" = "-h" -o "$1" = "--help" -o "$1" = "-help" ]; then
- echo "** valid options:"
-@@ -9,12 +9,12 @@
- fi
-
- MAKE=make
--which gmake >& /dev/null
-+which gmake > /dev/null
- if [ $? = 0 ]; then
- MAKE=gmake
- fi
-
--uname | grep FreeBSD >& /dev/null
-+uname | grep FreeBSD > /dev/null
- if [ $? = 0 ]; then
- FREEBSD=1
- else
-@@ -74,7 +74,7 @@
- QT_IM='N'
- for i in qt3 qt4
- do
-- QT_IM_DIR=/usr/lib/$i/plugins/$LIB/inputmethods
-+ QT_IM_DIR=$prefix/lib/$i/plugins/$LIB/inputmethods
- echo "testing if you have QT_IM_MODULE dir:$QT_IM_DIR support"
- if [ -d $QT_IM_DIR ]; then
- QT_IM='Y'
-@@ -92,7 +92,7 @@
-
- bindir=$prefix/bin
- datadir=$prefix/share
--mandir=$datadir/man
-+mandir=$prefix/man
- libdir=$prefix/lib
- includedir=$prefix/include
- optdir=/opt
-@@ -105,8 +105,8 @@
- GCIN_SETUP_DESKTOP=/opt/gnome/share/control-center-2.0/capplets
- GCIN_SETUP_DESKTOP_rpm='$(optdir)/gnome/share/control-center-2.0/capplets'
- else
-- GCIN_SETUP_DESKTOP=/usr/share/control-center-2.0/capplets
-- GCIN_SETUP_DESKTOP_rpm='$(datadir)/control-center-2.0/capplets'
-+ GCIN_SETUP_DESKTOP=$prefix/share/gnome/control-center-2.0/capplets
-+ GCIN_SETUP_DESKTOP_rpm='$(datadir)/gnome/control-center-2.0/capplets'
- fi
-
-
-@@ -115,14 +115,6 @@
- grep -v qt3/plugins/inputmethods gcin.spec.tmp > gcin.spec
- fi
-
--grep Cooker /etc/mandriva-release 2>&1 | grep 2006 >& /dev/null
--if [ $? = 0 ]; then
-- new_gtk_im='Y'
-- echo "!!!! new gtk-im(im-gcin.so) will be enabled because you are using Cooker 2006."
-- echo "!!!! You have to install the latest libwidget_gtk2.so"
-- echo "http://www.csie.nctu.edu.tw/~cp76/linux/mozilla/mdk-firefox-thunderbird-1.0.6/cooker-new-gtkim-libwidget_gtk2.so.gz"
--fi
--
-
- OPTFLAGS="-g"
- if [ $prefix = /usr ]; then
-@@ -130,7 +122,7 @@
- fi
-
-
--echo "CC=gcc" > config.mak
-+echo "CC=$CC" > config.mak
- echo "MAKE=$MAKE" >> config.mak
- echo "GTKINC=$GTKINC" >> config.mak
- echo "prefix=$prefix" >> config.mak
-@@ -150,8 +142,8 @@
- echo "GCIN_SCRIPT_DIR=\$(datadir_r)/gcin/script" >> config.mak
- echo "GCIN_SCRIPT_DIR_i=\$(datadir)/gcin/script" >> config.mak
- echo "OPTFLAGS=$OPTFLAGS" >> config.mak
--echo "DOC_DIR=\$(datadir_r)/doc/gcin-$GCIN_VERSION" >> config.mak
--echo "DOC_DIR_i=\$(datadir)/doc/gcin-$GCIN_VERSION" >> config.mak
-+echo "DOC_DIR=\$(datadir_r)/doc/gcin" >> config.mak
-+echo "DOC_DIR_i=\$(datadir)/doc/gcin" >> config.mak
- echo "GCIN_ICON_DIR=\$(datadir_r)/icons/gcin" >> config.mak
- echo "SYS_ICON_DIR=\$(datadir_r)/icons" >> config.mak
- echo "GCIN_ICON_DIR_i=\$(datadir)/icons/gcin" >> config.mak
diff --git a/chinese/gcin/files/patch-script b/chinese/gcin/files/patch-script
deleted file mode 100644
index a9f7618064b9..000000000000
--- a/chinese/gcin/files/patch-script
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -ruN scripts.orig/Makefile scripts/Makefile
---- scripts.orig/Makefile Wed Feb 22 21:35:19 2006
-+++ scripts/Makefile Wed Feb 22 21:36:28 2006
-@@ -1,13 +1,10 @@
- include ../config.mak
-
--SCRIPTS=gcin-user-setup modify-XIM utf8-edit
-+SCRIPTS=gcin-user-setup utf8-edit
-
- all: $(SCRIPTS)
-
- install:
-- if [ $(prefix) = /usr/local ]; then \
-- sh modify-XIM; \
-- fi
- install -d $(GCIN_SCRIPT_DIR_i)
- install -m 755 $(SCRIPTS) $(GCIN_SCRIPT_DIR_i)
- clean:
-diff -ruN scripts.orig/gcin-user-setup scripts/gcin-user-setup
---- scripts.orig/gcin-user-setup Wed Feb 22 21:35:19 2006
-+++ scripts/gcin-user-setup Wed Feb 22 21:36:44 2006
-@@ -1,4 +1,4 @@
--#!/bin/bash
-+#!/bin/sh
-
- if [ -z "$1" -o -z "$2" ]; then
- echo "please specify gcin_table_dir gcin_bin_dir"
-diff -ruN scripts.orig/utf8-edit scripts/utf8-edit
---- scripts.orig/utf8-edit Wed Feb 22 21:35:19 2006
-+++ scripts/utf8-edit Wed Feb 22 21:37:58 2006
-@@ -1,10 +1,10 @@
--#!/bin/bash
-+#!/bin/sh
-
--PATH=$PATH:/opt/gnome/bin:/usr/local/bin
-+PATH=$PATH:/usr/X11R6/bin:/usr/local/bin
-
--for i in leafpad gedit madedit kedit kate
-+for i in leafpad gedit gvim madedit kedit kate
- do
-- which $i >& /dev/null
-+ which $i > /dev/null
- if [ $? = 0 ]; then
- UTF8ED=$i
- break
diff --git a/chinese/gcin/pkg-message b/chinese/gcin/pkg-message
index ff76b52a96fa..553c1c4cbd07 100644
--- a/chinese/gcin/pkg-message
+++ b/chinese/gcin/pkg-message
@@ -2,8 +2,7 @@
Remember to set environment varible:
(csh/tcsh) (sh/bash)
- setenv XMODIFIERS @im=xcin export XMODIFIERS='@im=xcin'
- setenv GTK_IM_MODULE xim export GTK_IM_MODULE=xim
+ setenv XMODIFIERS @im=gcin export XMODIFIERS='@im=gcin'
Finally, to start the GCIN input method daemon, use command: