ports/58181: New port: chinese/wenju
Statue
statue at freebsd.sinica.edu.tw
Sat Oct 18 04:20:20 UTC 2003
>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 at 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 <statue at freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME= wenju
XPORTVERSION= 1.0
XCATEGORIES= chinese
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= wenju
X
XMAINTAINER= statue at 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 <bsd.port.mk>
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 at dirrm share/wenju/
X at exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
X at 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:
More information about the freebsd-ports-bugs
mailing list