Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 1999 09:28:02 -0700 (PDT)
From:      knu@and.or."jp"
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/13155: New port: japanese/gnome-icu
Message-ID:  <19990815162802.252AF152DC@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         13155
>Category:       ports
>Synopsis:       New port: japanese/gnome-icu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 15 09:30:03 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Akinori MUSHA aka knu
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Advanced Network Daemons
>Environment:
>Description:
GNOME ICQ client w/ Japanese support.
Derived from net/gnome-icu and referred to japanese/gtkicq, I accomplished.

# 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:
#
#	gnome-icu
#	gnome-icu/files
#	gnome-icu/files/md5
#	gnome-icu/pkg
#	gnome-icu/pkg/COMMENT
#	gnome-icu/pkg/DESCR
#	gnome-icu/pkg/PLIST
#	gnome-icu/patches
#	gnome-icu/patches/patch-aa
#	gnome-icu/Makefile
#
echo c - gnome-icu
mkdir -p gnome-icu > /dev/null 2>&1
echo c - gnome-icu/files
mkdir -p gnome-icu/files > /dev/null 2>&1
echo x - gnome-icu/files/md5
sed 's/^X//' >gnome-icu/files/md5 << 'END-of-gnome-icu/files/md5'
XMD5 (gnomeicu-0.65.tar.bz2) = b2ca09340242b12266924d7daa029e5a
END-of-gnome-icu/files/md5
echo c - gnome-icu/pkg
mkdir -p gnome-icu/pkg > /dev/null 2>&1
echo x - gnome-icu/pkg/COMMENT
sed 's/^X//' >gnome-icu/pkg/COMMENT << 'END-of-gnome-icu/pkg/COMMENT'
XGNOME ICQ client w/ Japanese support
END-of-gnome-icu/pkg/COMMENT
echo x - gnome-icu/pkg/DESCR
sed 's/^X//' >gnome-icu/pkg/DESCR << 'END-of-gnome-icu/pkg/DESCR'
XGnomeICU (previously GtkICQ) is an Internet based communications
Xprogram which makes use of ICQ protocol. GnomeICU also makes use of
XGnome, a growingly popular desktop environment.GnomeICU is released
Xunder the GNU Public License, and is available free of charge.
X
XWWW: http://gnomeicu.gdev.net/
X
XAkinori MUSHA aka knu <knu@and.or.jp>
END-of-gnome-icu/pkg/DESCR
echo x - gnome-icu/pkg/PLIST
sed 's/^X//' >gnome-icu/pkg/PLIST << 'END-of-gnome-icu/pkg/PLIST'
Xbin/gnomeicu
Xetc/CORBA/servers/GnomeICU.gnorba
Xetc/sound/events/GnomeICU.soundlist
Xshare/gnome/applets/Network/GnomeICU.desktop
Xshare/gnome/pixmaps/gnome-gnomeicu.xpm
Xshare/gnome/pixmaps/gnomeicu-auth.xpm
Xshare/gnome/pixmaps/gnomeicu-away.xpm
Xshare/gnome/pixmaps/gnomeicu-blank.xpm
Xshare/gnome/pixmaps/gnomeicu-chat.xpm
Xshare/gnome/pixmaps/gnomeicu-chat2.xpm
Xshare/gnome/pixmaps/gnomeicu-dnd.xpm
Xshare/gnome/pixmaps/gnomeicu-ffc.xpm
Xshare/gnome/pixmaps/gnomeicu-file.xpm
Xshare/gnome/pixmaps/gnomeicu-info.xpm
Xshare/gnome/pixmaps/gnomeicu-inv.xpm
Xshare/gnome/pixmaps/gnomeicu-message.xpm
Xshare/gnome/pixmaps/gnomeicu-na.xpm
Xshare/gnome/pixmaps/gnomeicu-nomess.xpm
Xshare/gnome/pixmaps/gnomeicu-occ.xpm
Xshare/gnome/pixmaps/gnomeicu-offline.xpm
Xshare/gnome/pixmaps/gnomeicu-online.xpm
Xshare/gnome/pixmaps/gnomeicu-url.xpm
Xshare/gnome/sounds/gnomeicu/message.wav
END-of-gnome-icu/pkg/PLIST
echo c - gnome-icu/patches
mkdir -p gnome-icu/patches > /dev/null 2>&1
echo x - gnome-icu/patches/patch-aa
sed 's/^X//' >gnome-icu/patches/patch-aa << 'END-of-gnome-icu/patches/patch-aa'
X*** src/Makefile.in.orig	Sat Jul  3 13:31:23 1999
X--- src/Makefile.in	Mon Jul  5 01:08:34 1999
X***************
X*** 111,120 ****
X  
X  bin_PROGRAMS = gnomeicu
X  
X! gnomeicu_SOURCES =  	autoaway.c		changeaway.c		changeinfo.c		changename.c		chatdlg.c		dialog.c		dragdrop.c		events.c		filexfer.c		flash.c			gnomecfg.c		gnomeicu.c		gtkconf.c		gtkfunc.c		histadd.c		loadpixmap.c		log.c			msg_queue.c		newsignup.c		response.c		rus_conv.c		sendmsg.c		showwait.c		tcp.c			ui.c			util.c			webpresence.c		applet.h		brazil.h		chatdlg.h		datatype.h		dialog.h		dragdrop.h		english.h		events.h		filexfer.h		gtkfunc.h		gnomeicu.h		lang.h			loadpixmap.h		msg_queue.h		pixmaps.h		russian.h		sendmsg.h		tcp.h			timezone.h
X  
X  
X! gnomeicu_LDADD = -lpanel_applet @APPLET_O@ @GNOMEICU_LDADD@ 		@SOCKS_LIBDIR@ @SOCKS_LIBS@
X  
X  gnomeicu_DEPENDENCIES = @APPLET_O@
X  
X--- 111,120 ----
X  
X  bin_PROGRAMS = gnomeicu
X  
X! gnomeicu_SOURCES =  	autoaway.c		changeaway.c		changeinfo.c		changename.c		chatdlg.c		dialog.c		dragdrop.c		events.c		filexfer.c		flash.c			gnomecfg.c		gnomeicu.c		gtkconf.c		gtkfunc.c		histadd.c		loadpixmap.c		log.c			msg_queue.c		newsignup.c		response.c		l10n_conv.c		rus_conv.c		sendmsg.c		showwait.c		tcp.c			ui.c			util.c			webpresence.c		applet.h		brazil.h		chatdlg.h		datatype.h		dialog.h		dragdrop.h		english.h		events.h		filexfer.h		gtkfunc.h		gnomeicu.h		lang.h			loadpixmap.h		msg_queue.h		pixmaps.h		russian.h		sendmsg.h		tcp.h			timezone.h
X  
X  
X! gnomeicu_LDADD = -lpanel_applet @APPLET_O@ @GNOMEICU_LDADD@ 		@SOCKS_LIBDIR@ @SOCKS_LIBS@ -ljcode
X  
X  gnomeicu_DEPENDENCIES = @APPLET_O@
X  
X***************
X*** 145,151 ****
X  gnomeicu_OBJECTS =  autoaway.o changeaway.o changeinfo.o changename.o \
X  chatdlg.o dialog.o dragdrop.o events.o filexfer.o flash.o gnomecfg.o \
X  gnomeicu.o gtkconf.o gtkfunc.o histadd.o loadpixmap.o log.o msg_queue.o \
X! newsignup.o response.o rus_conv.o sendmsg.o showwait.o tcp.o ui.o \
X  util.o webpresence.o
X  gnomeicu_LDFLAGS = 
X  CFLAGS = @CFLAGS@
X--- 145,151 ----
X  gnomeicu_OBJECTS =  autoaway.o changeaway.o changeinfo.o changename.o \
X  chatdlg.o dialog.o dragdrop.o events.o filexfer.o flash.o gnomecfg.o \
X  gnomeicu.o gtkconf.o gtkfunc.o histadd.o loadpixmap.o log.o msg_queue.o \
X! newsignup.o response.o l10n_conv.o rus_conv.o sendmsg.o showwait.o tcp.o ui.o \
X  util.o webpresence.o
X  gnomeicu_LDFLAGS = 
X  CFLAGS = @CFLAGS@
X***************
X*** 464,469 ****
X--- 464,471 ----
X  	filexfer.h
X  response.o: response.c ../config.h datatype.h gnomeicu.h gtkfunc.h \
X  	dialog.h filexfer.h events.h applet.h
X+ l10n_conv.o: l10n_conv.c gnomeicu.h datatype.h gtkfunc.h dialog.h \
X+ 	filexfer.h
X  rus_conv.o: rus_conv.c gnomeicu.h datatype.h gtkfunc.h dialog.h \
X  	filexfer.h
X  sendmsg.o: sendmsg.c ../config.h datatype.h gnomeicu.h gtkfunc.h \
X*** src/Makefile.am.orig	Sat Jul  3 13:25:31 1999
X--- src/Makefile.am	Mon Jul  5 01:04:07 1999
X***************
X*** 31,36 ****
X--- 31,37 ----
X  	msg_queue.c	\
X  	newsignup.c	\
X  	response.c	\
X+ 	l10n_conv.c	\
X  	rus_conv.c	\
X  	sendmsg.c	\
X  	showwait.c	\
X***************
X*** 59,65 ****
X  	timezone.h
X  
X  gnomeicu_LDADD = -lpanel_applet @APPLET_O@ @GNOMEICU_LDADD@ \
X! 		@SOCKS_LIBDIR@ @SOCKS_LIBS@
X  gnomeicu_DEPENDENCIES = @APPLET_O@
X  
X  EXTRA_DIST=			\
X--- 60,66 ----
X  	timezone.h
X  
X  gnomeicu_LDADD = -lpanel_applet @APPLET_O@ @GNOMEICU_LDADD@ \
X! 		@SOCKS_LIBDIR@ @SOCKS_LIBS@ -ljcode
X  gnomeicu_DEPENDENCIES = @APPLET_O@
X  
X  EXTRA_DIST=			\
X*** src/gnomeicu.c.orig	Sat Jul  3 13:25:31 1999
X--- src/gnomeicu.c	Mon Jul  5 00:13:34 1999
X***************
X*** 1021,1026 ****
X--- 1021,1027 ----
X  	signal( SIGCHLD, &handle_signal );
X  	signal( SIGUSR1, &handle_signal );
X  
X+ 	gtk_set_locale();
X  	make_applet( argc, argv, &sal );
X  	gnome_config_push_prefix( configfilename );
X  
X*** src/gtkfunc.c.orig	Sat Jul  3 13:25:31 1999
X--- src/gtkfunc.c	Sun Jul 11 23:52:44 1999
X***************
X*** 1941,1946 ****
X--- 1941,1948 ----
X  
X  	if( message_text[ 0 ] == 'm' )
X  	{
X+                 message_text = l10n_conv( "toLocal", message_text );
X+ 
X  		table = gtk_table_new(3, 2, FALSE);
X  		gtk_box_pack_start( GTK_BOX( mainbox ), table, TRUE, TRUE, 0);
X  	
X*** src/histadd.c.orig	Wed Jun 30 06:56:19 1999
X--- src/histadd.c	Sat Aug  7 00:33:41 1999
X***************
X*** 13,22 ****
X  	time_t timedate;
X  	struct tm *my_tm;
X  	char pdate[46];
X- 	int cx, cy, cz;
X  	char *halves[] = { "AM", "PM" };
X  	int half = 0;
X- 	char buf[ 1024 ];
X  
X  	char *filename;
X  	int file;
X--- 13,20 ----
X***************
X*** 25,30 ****
X--- 23,30 ----
X  	g_print( "add_incoming_to_history\n" );
X  #endif
X  
X+ 	statement = l10n_conv( "toLocal", statement );
X+ 
X  	strings[ 0 ] = pdate;
X  	strings[ 1 ] = who;
X  	strings[ 2 ] = statement;
X***************
X*** 49,80 ****
X  
X  	write( file, pdate, strlen( pdate ) );
X  
X! 	strcpy( buf, "" );
X! 	cy = cz = 0;
X! 	for( cx = 0; cx < strlen( statement ); cx ++ )
X! 	{
X! 		cy ++;
X! 		if( statement[cx] == '\n' || cy == 70 ||
X! 		    ( cy >= 60 && statement[cx] == ' ' ) )
X! 		{
X! 			write( file, ( statement + cz ), cy );
X! 			if( cy >= 60 && cy != 70 )
X! 			{
X! 				write( file, "\n", 1 );
X! 			}
X! 			if( cy == 70 )
X! 			{
X! 				write( file, "-\n", 2 );
X! 			}
X! 			cz += cy;
X! 			cy = 0;
X! 		}
X! 	}			
X! 
X! 	if( cz != strlen( statement ) )
X! 	{
X! 		write( file, ( statement + cz ), strlen( statement ) - cz );
X! 	}
X  
X  	write( file, "\n", 1 );
X  
X--- 49,55 ----
X  
X  	write( file, pdate, strlen( pdate ) );
X  
X! 	write( file, statement, strlen( statement ) );
X  
X  	write( file, "\n", 1 );
X  
X***************
X*** 88,97 ****
X  	time_t timedate;
X  	struct tm *my_tm;
X  	char pdate[42];
X- 	int cx, cy, cz;
X  	char *halves[] = { "AM", "PM" };
X  	int half = 0;
X- 	char buf[ 1024 ];
X  
X  	char *filename;
X  	int file;
X--- 63,70 ----
X***************
X*** 124,155 ****
X  
X  	write( file, pdate, strlen( pdate ) );
X  
X! 	strcpy( buf, "" );
X! 	cy = cz = 0;
X! 	for( cx = 0; cx < strlen( statement ); cx ++ )
X! 	{
X! 		cy ++;
X! 		if( statement[cx] == '\n' || cy == 70 ||
X! 		    ( cy >= 60 && statement[cx] == ' ' ) )
X! 		{
X! 			write( file, ( statement + cz ), cy );
X! 			if( cy >= 60 && cy != 70 )
X! 			{
X! 				write( file, "\n", 1 );
X! 			}
X! 			if( cy == 70 )
X! 			{
X! 				write( file, "-\n", 2 );
X! 			}
X! 			cz += cy;
X! 			cy = 0;
X! 		}
X! 	}			
X! 
X! 	if( cz != strlen( statement ) )
X! 	{
X! 		write( file, ( statement + cz ), strlen( statement ) - cz );
X! 	}
X  	
X  	write( file, "\n", 1 );
X  
X--- 97,103 ----
X  
X  	write( file, pdate, strlen( pdate ) );
X  
X! 	write( file, statement, strlen( statement ) );
X  	
X  	write( file, "\n", 1 );
X  
X*** src/sendmsg.c.orig	Sat Jul  3 13:25:31 1999
X--- src/sendmsg.c	Wed Jul 14 01:53:59 1999
X***************
X*** 258,267 ****
X  		return;
X  	}
X  
X- 	new_text = cr_convert( text );
X- 
X  	/* Add statement to personal history file */
X! 	add_outgoing_to_history( uin, new_text );
X  
X  	rus_conv( RUS_KOI_WIN, new_text );
X  	if( !forced && !force_toggle && TCPSendMessage( uin, new_text, data ) )
X--- 258,267 ----
X  		return;
X  	}
X  
X  	/* Add statement to personal history file */
X! 	add_outgoing_to_history( uin, text );
X! 
X! 	new_text = cr_convert( l10n_conv( "toNet", text ) );
X  
X  	rus_conv( RUS_KOI_WIN, new_text );
X  	if( !forced && !force_toggle && TCPSendMessage( uin, new_text, data ) )
X***************
X*** 359,371 ****
X  	sprintf( text, "%s\xFE%s", gtk_entry_get_text( GTK_ENTRY( data->desc ) ),
X  	         gtk_entry_get_text( GTK_ENTRY( data->url ) ) );
X  
X- 	new_text = cr_convert( text );
X- 	buf = (char *)g_malloc( sizeof( char ) * ( 16 + strlen( new_text ) ) );
X- 
X  	/* Add statement to personal history file */
X! 	add_outgoing_to_history( uin, new_text );
X  
X! 	rus_conv( RUS_KOI_WIN, new_text );
X  	if( TCPSendURL( uin, new_text, data->data ) )
X  	{
X  		sprintf( buf, "Sent URL (TCP)" );
X--- 359,371 ----
X  	sprintf( text, "%s\xFE%s", gtk_entry_get_text( GTK_ENTRY( data->desc ) ),
X  	         gtk_entry_get_text( GTK_ENTRY( data->url ) ) );
X  
X  	/* Add statement to personal history file */
X! 	add_outgoing_to_history( uin, text );
X  
X! 	new_text = cr_convert( l10n_conv( "toNet", text ) );
X! 	buf = (char *)g_malloc( sizeof( char ) * ( 16 + strlen( new_text ) ) );
X! 
X! 	/* rus_conv( RUS_KOI_WIN, new_text ); */
X  	if( TCPSendURL( uin, new_text, data->data ) )
X  	{
X  		sprintf( buf, "Sent URL (TCP)" );
X*** src/gnomeicu.h.orig	Sat Jul  3 08:12:47 1999
X--- src/gnomeicu.h	Sun Jul 11 23:51:39 1999
X***************
X*** 583,588 ****
X--- 583,590 ----
X  extern GtkWidget *app;
X  extern int applet_toggle;
X  
X+ char *l10n_conv( char *to, char *t_in );
X+ 
X  #endif
X  
X  #define RUS_WIN_KOI 0
X*** /dev/null	Sat Aug  7 00:47:29 1999
X--- src/l10n_conv.c	Mon Jul 12 01:36:48 1999
X***************
X*** 0 ****
X--- 1,17 ----
X+ /*
X+  * Localization
X+  *
X+  */
X+ 
X+ #include "gnomeicu.h"
X+ #include <jlib.h>
X+ 
X+ char *l10n_conv( char to[10], char *t_in ){
X+   if(!strcmp(to, "toLocal")){
X+     return toStringEUCfromSJIS( t_in );
X+   }else if(!strcmp(to, "toNet")){
X+     return toStringSJISfromEUC( t_in );
X+   }
X+ 
X+   return t_in;
X+ }
END-of-gnome-icu/patches/patch-aa
echo x - gnome-icu/Makefile
sed 's/^X//' >gnome-icu/Makefile << 'END-of-gnome-icu/Makefile'
X# Ports collection Makefile for:	GnomeICU
X# Version required:			0.65
X# Date created:				08/08/1999
X# Whom:					knu@and.or.jp
X#
X# $Id$
X#
X
XDISTNAME=		gnomeicu-0.65
XPKGNAME=		ja-gnomeicu-0.65
XCATEGORIES=		japanese net gnome
XMASTER_SITES=		ftp://gnomeicu.gdev.net/pub/gnomeicu/          \
X			http://www.nectar.cc/distfiles/
X
XMAINTAINER=		knu@and.or.jp
X
XLIB_DEPENDS=		panel_applet.1:${PORTSDIR}/x11/gnomecore
XBUILD_DEPENDS=		${LOCALBASE}/lib/libjcode.a:${PORTSDIR}/japanese/libjcode \
X			${LOCALBASE}/include/jlib.h:${PORTSDIR}/japanese/libjcode
X
X
XGTK_CONFIG?=		${X11BASE}/bin/gtk12-config
X
XUSE_X_PREFIX=		YES
XUSE_BZIP2=		YES
XGNU_CONFIGURE=		YES
XCONFIGURE_ENV=		GTK_CONFIG="${GTK_CONFIG}"
XCONFIGURE_ARGS=		--datadir=${PREFIX}/share/gnome
X
X.include <bsd.port.mk>
END-of-gnome-icu/Makefile
exit

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990815162802.252AF152DC>