ports/81246: [UPDATE] chinese/gcin: update to 0.9.6 and obsolete ports/81182 PR
chinsan
chinsan at mail2000.com.tw
Thu May 19 07:10:03 UTC 2005
>Number: 81246
>Category: ports
>Synopsis: [UPDATE] chinese/gcin: update to 0.9.6 and obsolete ports/81182 PR
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu May 19 07:10:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: chinsan
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD chinsan.twbbs.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
- This PR obsolete ports/81182 PR and update to 0.9.6
- add support for Boshiamy input method
The Boshiamy .cin & .gtab table is port from Edward Lee
and I make it as an option for gcin poeple.
Therefore, there's a new extra patch file(extra-patch-data-Makefile)
and I put "PLIST_FILES+= share/gcin/table/noseeing.gtab" into
"if defined(WITH_BOSHIAMY)" section in Makefile
to suit the pkg-plist which people choose Boshiamy.
- option NOPORTDOCS has incorrect package list
- remove unused patch (patch-about.c)
- port maintainer(statue at freebsd.netlab.cse.yzu.edu.tw) is CC'd
Thanks. :)
>How-To-Repeat:
>Fix:
--- gcin.patch begins here ---
diff -ruN gcin.orig/Makefile gcin/Makefile
--- gcin.orig/Makefile Thu May 12 14:51:19 2005
+++ gcin/Makefile Thu May 19 14:46:27 2005
@@ -6,9 +6,14 @@
#
PORTNAME= gcin
-PORTVERSION= 0.9.5
+PORTVERSION= 0.9.6
CATEGORIES= chinese
-MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/
+MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ \
+ http://edt1023.sayya.org/misc/
+.if defined(WITH_BOSHIAMY)
+DISTFILES= ${GCINFILE} ${BOSHIAMYFILE}
+EXTRACT_ONLY= ${GCINFILE}
+.endif
MAINTAINER= statue at freebsd.netlab.cse.yzu.edu.tw
COMMENT= A traditional chinese input utility in X
@@ -21,8 +26,28 @@
.include <bsd.port.pre.mk>
+pre-everything::
+ @${ECHO_MSG} ''
+ @${ECHO_MSG} 'gcin has the following tunable option:'
+ @${ECHO_MSG} ' WITH_BOSHIAMY - enable Boshiamy support'
+ @${ECHO_MSG} ''
+ @${ECHO_MSG} 'Example: "make WITH_BOSHIAMY=yes install clean" '
+ @${ECHO_MSG} ''
+
.if ${OSVERSION} <= 500034
USE_GCC= 3.4
+.endif
+
+.if defined(WITH_BOSHIAMY)
+GCINFILE= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
+BOSHIAMYFILE= noseeing-${BOSHIAMYVER}.tar.gz
+BOSHIAMYVER= 3
+post-extract:
+ @cd ${WRKSRC}/data/ \
+ && ${TAR} -zxf ${DISTDIR}/${BOSHIAMYFILE}
+post-patch:
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-data-Makefile
+PLIST_FILES+= share/gcin/table/noseeing.gtab
.endif
post-install:
diff -ruN gcin.orig/distinfo gcin/distinfo
--- gcin.orig/distinfo Thu May 12 14:51:19 2005
+++ gcin/distinfo Thu May 19 14:26:52 2005
@@ -1,2 +1,4 @@
-MD5 (gcin-0.9.5.tar.bz2) = b3d5be7313894957fc49b0593197e553
-SIZE (gcin-0.9.5.tar.bz2) = 1166960
+MD5 (gcin-0.9.6.tar.bz2) = ce72ffd4eaf7c031fc1818e44f2229c7
+SIZE (gcin-0.9.6.tar.bz2) = 1167858
+MD5 (noseeing-3.tar.gz) = ca699328fc8e280d970498c3c0e9b34b
+SIZE (noseeing-3.tar.gz) = 391948
diff -ruN gcin.orig/files/extra-patch-data-Makefile gcin/files/extra-patch-data-Makefile
--- gcin.orig/files/extra-patch-data-Makefile Thu Jan 1 08:00:00 1970
+++ gcin/files/extra-patch-data-Makefile Thu May 19 14:13:02 2005
@@ -0,0 +1,11 @@
+--- data/Makefile.orig Wed May 18 11:49:00 2005
++++ data/Makefile Wed May 18 11:49:00 2005
+@@ -5,7 +5,7 @@
+ DATA=pho.tab tsin.idx \
+ cj.gtab ar30.gtab dayi3.gtab pinyin.gtab jyutping.gtab cj5.gtab \
+ et.kbm et-asdf.kbm et26.kbm et26-asdf.kbm zo.kbm zo-asdf.kbm \
+- ibm.kbm tsin hsu.kbm pho-huge.tab simplex.gtab
++ ibm.kbm tsin hsu.kbm pho-huge.tab simplex.gtab noseeing.gtab
+ DATAKEEP=symbol-table gtab.list phrase.table
+
+ all: $(DATA)
diff -ruN gcin.orig/files/patch-about.c gcin/files/patch-about.c
--- gcin.orig/files/patch-about.c Thu May 12 14:51:20 2005
+++ gcin/files/patch-about.c Thu Jan 1 08:00:00 1970
@@ -1,20 +0,0 @@
---- about.c.orig Sat Feb 26 21:42:00 2005
-+++ about.c Thu May 12 04:02:17 2005
-@@ -69,10 +69,16 @@
- gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3);
-
- GtkWidget *separator = gtk_hseparator_new ();
-+ GtkWidget *vseparator = gtk_vseparator_new ();
- gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, FALSE, 3);
-
-- GtkWidget *label_sf = gtk_label_new ("http://www.csie.nctu.edu.tw/~cp76/gcin");
-+ GtkWidget *label_sf = gtk_label_new ("gcin WWW:\nhttp://www.csie.nctu.edu.tw/~cp76/gcin");
-+ gtk_misc_set_alignment (GTK_MISC (label_sf), 0, 0);
-+ GtkWidget *label_FreeBSD = gtk_label_new ("Feedback:\nhttp://cle.linux.org.tw/gcin/");
-+ gtk_misc_set_alignment (GTK_MISC (label_FreeBSD), 0, 0);
- gtk_box_pack_start(GTK_BOX(vbox), label_sf, FALSE, FALSE, 0);
-+ gtk_box_pack_start(GTK_BOX(vbox), vseparator, FALSE, FALSE, 3);
-+ gtk_box_pack_start(GTK_BOX(vbox), label_FreeBSD, FALSE, FALSE, 0);
-
-
- /* Now on to the image stuff */
diff -ruN gcin.orig/pkg-message gcin/pkg-message
--- gcin.orig/pkg-message Thu May 5 21:52:08 2005
+++ gcin/pkg-message Thu May 19 14:28:21 2005
@@ -21,5 +21,5 @@
exec gcin &
If you get problem with gcin, please visit http://cle.linux.org.tw/gcin/
-Happy Gcining...:-)
+Happy gcining...:-)
--------------------------------------------------------------------
diff -ruN gcin.orig/pkg-plist gcin/pkg-plist
--- gcin.orig/pkg-plist Thu May 12 14:51:19 2005
+++ gcin/pkg-plist Thu May 19 14:48:16 2005
@@ -35,14 +35,14 @@
%%DATADIR%%/table/tsin.idx
%%DATADIR%%/table/zo.kbm
%%DATADIR%%/table/zo-asdf.kbm
-%%DOCSDIR%%/Changelog
-%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/Changelog
+%%PORTDOCS%%%%DOCSDIR%%/README
share/applications/gcin.desktop
share/applications/gcin-setup.desktop
share/icons/gcin.png
share/icons/gcin/pin-fixed24.png
share/icons/gcin/pin-float16.png
- at unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true
+%%PORTDOCS%%@unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true
@unexec rmdir %D/share/icons/gcin 2>/dev/null || true
@unexec rmdir %D/share/applications 2>/dev/null || true
@unexec rmdir %D/share/icons 2>/dev/null || true
--- gcin.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list