From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 17 21:20:20 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D80816A4B3 for ; Fri, 17 Oct 2003 21:20:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD60C43FE1 for ; Fri, 17 Oct 2003 21:20:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9I4KHFY052423 for ; Fri, 17 Oct 2003 21:20:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9I4KHph052422; Fri, 17 Oct 2003 21:20:17 -0700 (PDT) (envelope-from gnats) Resent-Date: Fri, 17 Oct 2003 21:20:17 -0700 (PDT) Resent-Message-Id: <200310180420.h9I4KHph052422@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Statue Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72B5F16A4B3 for ; Fri, 17 Oct 2003 21:10:40 -0700 (PDT) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50FE643FD7 for ; Fri, 17 Oct 2003 21:10:39 -0700 (PDT) (envelope-from statue@freebsd.sinica.edu.tw) Received: by freebsd.sinica.edu.tw (Postfix, from userid 1014) id 6C47AB36; Sat, 18 Oct 2003 12:10:38 +0800 (CST) Message-Id: <20031018041038.6C47AB36@freebsd.sinica.edu.tw> Date: Sat, 18 Oct 2003 12:10:38 +0800 (CST) From: Statue To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/58181: New port: chinese/wenju X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Statue List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 04:20:20 -0000 >Number: 58181 >Category: ports >Synopsis: New port: chinese/wenju >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: Fri Oct 17 21:20:17 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Mon Sep 15 18:44:48 CST 2003 root@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: A collection of writing tools (wenju in Chinese pinyin) such as input method, text file formatter, etc. All the tools are based on Unicode. WWW: http://sourceforge.net/projects/wenju/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # wenju/ # wenju/Makefile # wenju/distinfo # wenju/files # wenju/pkg-descr # wenju/pkg-plist # wenju/files/patch-configure # wenju/files/patch-src::tim::timtable.c # wenju/files/patch-src::wrap::wrap.c # wenju/files/patch-tests::Makefile.in # wenju/files/patch-tests::wenju.c # echo c - wenju/ mkdir -p wenju/ > /dev/null 2>&1 echo x - wenju/Makefile sed 's/^X//' >wenju/Makefile << 'END-of-wenju/Makefile' X# New ports collection makefile for: wenju X# Date created: 18 Oct 2003 X# Whom: Shen Chuan-Hsing X# X# $FreeBSD$ X# X XPORTNAME= wenju XPORTVERSION= 1.0 XCATEGORIES= chinese XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= wenju X XMAINTAINER= statue@freebsd.sinica.edu.tw XCOMMENT= Collection of writing tools in Chinese X XUSE_GNOME= gtk20 XHAS_CONFIGURE= yes XCONFIGURE_ARGS+= --prefix=${PREFIX} XUSE_X_PREFIX= yes XINSTALLS_SHLIB= yes XUSE_GETOPT_LONG= yes XUSE_LIBTOOL= yes X Xpost-install: X gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules X X.include END-of-wenju/Makefile echo x - wenju/distinfo sed 's/^X//' >wenju/distinfo << 'END-of-wenju/distinfo' XMD5 (wenju-1.0.tar.gz) = 96a0f1b89837a96857872975515c083d END-of-wenju/distinfo echo c - wenju/files mkdir -p wenju/files > /dev/null 2>&1 echo x - wenju/pkg-descr sed 's/^X//' >wenju/pkg-descr << 'END-of-wenju/pkg-descr' XA collection of writing tools (wenju in Chinese pinyin) such as input Xmethod, text file formatter, etc. All the tools are based on Unicode. X XWWW: http://sourceforge.net/projects/wenju/ END-of-wenju/pkg-descr echo x - wenju/pkg-plist sed 's/^X//' >wenju/pkg-plist << 'END-of-wenju/pkg-plist' Xbin/tim-config Xbin/wrap Xlib/gtk-2.0/2.2.0/immodules/im-tim.la Xlib/gtk-2.0/2.2.0/immodules/im-tim.so Xshare/wenju/pinyin-p.tim Xshare/wenju/pinyin.tim Xshare/wenju/wubi.tim Xshare/wenju/wubihua-n.tim Xshare/wenju/erbi.tim Xshare/wenju/qfrench.tim X@dirrm share/wenju/ X@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules X@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules END-of-wenju/pkg-plist echo x - wenju/files/patch-configure sed 's/^X//' >wenju/files/patch-configure << 'END-of-wenju/files/patch-configure' X--- configure.orig Sat Oct 18 04:38:19 2003 X+++ configure Sat Oct 18 04:38:42 2003 X@@ -7889,7 +7889,7 @@ X X X GTK2_CFLAGS="`pkg-config --cflags gtk+-2.0`" X-GTK2_LIBS="`pkg-config --libs gtk+-2.0`" X+GTK2_LIBS="`pkg-config --libs gtk+-2.0` -lgnugetopt" X GTK2_BINARY_VERSION="`pkg-config --variable=gtk_binary_version gtk+-2.0`" X X END-of-wenju/files/patch-configure echo x - wenju/files/patch-src::tim::timtable.c sed 's/^X//' >wenju/files/patch-src::tim::timtable.c << 'END-of-wenju/files/patch-src::tim::timtable.c' X--- src/tim/timtable.c.orig Sat Oct 18 05:34:57 2003 X+++ src/tim/timtable.c Sat Oct 18 05:35:14 2003 X@@ -86,7 +86,7 @@ X X line = (char *)malloc(n*sizeof(char));; X /* getline() is a GNU externsion */ X- while ((l = getline(&line, &n, fp)) > 0) { X+ while ((l = fgets(line, n, fp)) > 0) { X l = preprocess_line(line, l); X if (l > 0) { X char *p; X@@ -189,7 +189,7 @@ X X line = (char *)malloc(n*sizeof(char));; X /* getline() is a GNU externsion */ X- while ((l = getline(&line, &n, fp)) > 0) { X+ while ((l = fgets(line, n, fp)) > 0) { X l = preprocess_line(line, l); X if (l > 0) { X char *p; END-of-wenju/files/patch-src::tim::timtable.c echo x - wenju/files/patch-src::wrap::wrap.c sed 's/^X//' >wenju/files/patch-src::wrap::wrap.c << 'END-of-wenju/files/patch-src::wrap::wrap.c' X--- src/wrap/wrap.c.orig Sat Oct 18 05:37:16 2003 X+++ src/wrap/wrap.c Sat Oct 18 05:36:19 2003 X@@ -293,7 +293,7 @@ X size = 0; X p = NULL; X /* Read in an input line. */ X- while ((length = getline(&p, &size, fp)) > 0) { X+ while ((length = fgets(p, size, fp)) > 0) { X if (p[0] == '\n') { X /* An empty line signals the end of the paragraph. */ X if (strcmp(text->str, "\n") == 0) { END-of-wenju/files/patch-src::wrap::wrap.c echo x - wenju/files/patch-tests::Makefile.in sed 's/^X//' >wenju/files/patch-tests::Makefile.in << 'END-of-wenju/files/patch-tests::Makefile.in' X--- tests/Makefile.in.orig Sat Oct 18 05:18:58 2003 X+++ tests/Makefile.in Sat Oct 18 05:19:06 2003 X@@ -116,7 +116,7 @@ X noinst_PROGRAMS = wenju X X wenju_SOURCES = wenju.c X-wenju_LDADD = -lrt X+wenju_LDADD = #-lrt X subdir = tests X mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs X CONFIG_HEADER = $(top_builddir)/config.h END-of-wenju/files/patch-tests::Makefile.in echo x - wenju/files/patch-tests::wenju.c sed 's/^X//' >wenju/files/patch-tests::wenju.c << 'END-of-wenju/files/patch-tests::wenju.c' X--- tests/wenju.c.orig Sat Oct 18 05:17:33 2003 X+++ tests/wenju.c Sat Oct 18 05:17:44 2003 X@@ -23,8 +23,8 @@ X X int main(int argc, char *argv[]) X { X- setlocale(LC_ALL, ""); X #ifdef ENABLE_NLS X+ setlocale(LC_ALL, ""); X bindtextdomain(PACKAGE, LOCALEDIR); X #ifdef HAVE_BIND_TEXTDOMAIN_CODESET X bind_textdomain_codeset(PACKAGE, "UTF-8"); END-of-wenju/files/patch-tests::wenju.c exit >Release-Note: >Audit-Trail: >Unformatted: