From owner-freebsd-ports Sun Sep 28 01:50:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA19196 for ports-outgoing; Sun, 28 Sep 1997 01:50:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA19190; Sun, 28 Sep 1997 01:50:02 -0700 (PDT) Resent-Date: Sun, 28 Sep 1997 01:50:02 -0700 (PDT) Resent-Message-Id: <199709280850.BAA19190@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-ports Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, Yoshio.Mita@isen.fr Received: from pcmita.isen.fr (pcmita.isen.fr [192.134.17.84]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA18693 for ; Sun, 28 Sep 1997 01:41:37 -0700 (PDT) Received: (from mita@localhost) by pcmita.isen.fr (8.8.5/8.8.5) id SAA19252; Sat, 27 Sep 1997 18:44:04 +0200 (CEST) Message-Id: <199709271644.SAA19252@pcmita.isen.fr> Date: Sat, 27 Sep 1997 18:44:04 +0200 (CEST) From: Yoshio.Mita@isen.fr Reply-To: Yoshio.Mita@isen.fr To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: ports/4644: A new port xfig -international Sender: owner-freebsd-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4644 >Category: ports >Synopsis: This is a new port xfig -international based on graphics/xfig >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 28 01:50:01 PDT 1997 >Last-Modified: >Originator: MITA Yoshio >Organization: Centre National de la Recherche Scientifique >Release: FreeBSD 2.2.1-RELEASE i386 >Environment: FreeBSD 2.2.1-R + XFree86-3.2 >Description: This is a port of internationalized xfig-3.2. The original archive of xfig-3.2 already includes i18n code. This port simply switches on these codes. I propose this port as japanese/xfig for two reasons: 1. Although this xfig is fully-compatible to non-I18n version without command line option for i18n, booting time of this xfig takes 10 times as long as of non-I18n xfig (i.e. graphics/xfig). 2. Only LANG=ja_JP.EUC is confirmed for input, display, and printing. (According to the original document, only display is confirmed for zh_CN.eucCN and ko_KR.eucKR.) >How-To-Repeat: >Fix: This port is based on graphics/xfig and print/transfig, so please follow 4 steps like: 1. Examine a PR for graphics/xfig (ports/4637) (By the way, I've mistyped my E-Mail address in this PR, I am sorry..) 2. Examine a PR for print/transfig (ports/4640) (for printing with LANG=ja_JP.EUC) 3. CVS repository copy from graphics/xfig -> japanese/xfig 4. apply this patch: diff -rcN japanese/xfig.orig/Makefile japanese/xfig/Makefile *** japanese/xfig.orig/Makefile Thu Aug 28 06:57:42 1997 --- japanese/xfig/Makefile Sat Sep 27 15:36:49 1997 *************** *** 7,18 **** # DISTNAME= xfig.3.2 ! PKGNAME= xfig-3.2 CATEGORIES= graphics x11 ! MASTER_SITES= ${MASTER_SITE_XCONTRIB} MASTER_SITE_SUBDIR= applications/drawing_tools/xfig ! MAINTAINER= asami@FreeBSD.ORG LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm \ jpeg\\.7\\.:${PORTSDIR}/graphics/jpeg \ --- 7,19 ---- # DISTNAME= xfig.3.2 ! PKGNAME= ja-xfig-3.2 CATEGORIES= graphics x11 ! MASTER_SITES= ${MASTER_SITE_XCONTRIB} ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= applications/drawing_tools/xfig + DISTFILES= xfig.3.2.tar.gz xfig.3.2-I18N.ja_JP.EUC.gz ! MAINTAINER= mita@jp.FreeBSD.ORG LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm \ jpeg\\.7\\.:${PORTSDIR}/graphics/jpeg \ *************** *** 23,27 **** --- 24,35 ---- MAKE_FLAGS= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 \ XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults \ XFIGLIBDIR=${PREFIX}/lib/X11/xfig -f + EXTRACT_ONLY= xfig.3.2.tar.gz + + post-install: + .if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/xfig + ${CP} ${DISTDIR}/xfig.3.2-I18N.ja_JP.EUC.gz ${PREFIX}/share/doc/xfig/ + .endif .include diff -rcN japanese/xfig.orig/files/md5 japanese/xfig/files/md5 *** japanese/xfig.orig/files/md5 Thu Aug 28 06:57:42 1997 --- japanese/xfig/files/md5 Thu Sep 25 16:14:49 1997 *************** *** 1 **** --- 1,2 ---- MD5 (xfig.3.2.tar.gz) = d16c4662b96e3f9d0735b7612c7d016b + MD5 (xfig.3.2-I18N.ja_JP.EUC.gz) = faae7c2b69027192312951ff67e3e9fb diff -rcN japanese/xfig.orig/patches/patch-aa japanese/xfig/patches/patch-aa *** japanese/xfig.orig/patches/patch-aa Sat Sep 27 08:32:06 1997 --- japanese/xfig/patches/patch-aa Sat Sep 27 13:32:32 1997 *************** *** 1,5 **** ! --- Imakefile.orig Fri Aug 22 16:59:16 1997 ! +++ Imakefile Tue Aug 26 13:14:52 1997 @@ -46,12 +46,12 @@ XCOMM set JPEGLIBDIR after the #else to the directory where you have the source XCOMM for jpeg. --- 1,5 ---- ! --- Imakefile.orig Fri Aug 22 22:59:16 1997 ! +++ Imakefile Sat Sep 27 13:32:08 1997 @@ -46,12 +46,12 @@ XCOMM set JPEGLIBDIR after the #else to the directory where you have the source XCOMM for jpeg. *************** *** 40,45 **** --- 40,58 ---- JPEGLIB = -L$(JPEGLIBDIR) -ljpeg #else JPEGLIBDIR = ../jpeg + @@ -95,10 +95,10 @@ + XCOMM If your setlocale() dosen't support the locale, you should + XCOMM add -DSETLOCALE to I18N_DEFS. + + -XCOMM #define I18N + +#define I18N + + #ifdef I18N + -I18N_DEFS = -DI18N -DSETLOCALE + +I18N_DEFS = -DI18N + I18N_SRC = w_i18n.c + I18N_OBJ = w_i18n.o + #endif @@ -112,7 +112,7 @@ XCOMM inline functions. With the "INLINE" keyword, you should notice that XCOMM the display will be a bit faster in complex figures *************** *** 58,60 **** --- 71,82 ---- $(DUSEXPMICON) $(DUSEGIF) $(DUSEJPEG) $(I18N_DEFS) XFIGSRC = d_arc.c d_arcbox.c d_box.c d_ellipse.c d_picobj.c \ + @@ -271,7 +271,7 @@ + DEPLIBS = XawClientDepLibs + + LOCAL_LIBRARIES = $(JPEGLIB) + -SYS_LIBRARIES= -lm $(XPMLIB) $(TABLIB) XawClientLibs + +SYS_LIBRARIES= -lm $(XPMLIB) $(TABLIB) XawClientLibs -lxpg4 + + #define PassCDebugFlags + diff -rcN japanese/xfig.orig/pkg/DESCR japanese/xfig/pkg/DESCR *** japanese/xfig.orig/pkg/DESCR Tue Sep 26 09:45:43 1995 --- japanese/xfig/pkg/DESCR Sat Sep 27 15:38:05 1997 *************** *** 1,4 **** ! XFIG 3.1.4 - Facility for Interactive Generation of figures under X11 Xfig is a menu-driven tool that allows the user to draw and manipulate objects interactively in an X window. The resulting pictures can be saved, printed --- 1,4 ---- ! Facility for Interactive Generation of figures under X11 Xfig is a menu-driven tool that allows the user to draw and manipulate objects interactively in an X window. The resulting pictures can be saved, printed *************** *** 8,12 **** To enjoy the beautiful colors, specify "*customization: -color" in your .Xdefaults or .Xresources file. ! To obtain full capability, we recommend you to install the transfig ! package too. --- 8,18 ---- To enjoy the beautiful colors, specify "*customization: -color" in your .Xdefaults or .Xresources file. ! Xfig is internationlized from version 3.2. To use i18n version, type ! $ xfig -international [-inputStyle OverTheSpot] ! Xfig acts as non-i18n version without -international option. ! ! ja_JP.EUC is tested for input, display, and printing. ! For zh_CN.eucCN and ko_KR.eucKR, only display is confirmed. ! ! Read /usr/X11R6/share/doc/xfig/xfig3.2-I18N.ja_JP.EUC.gz for more information. diff -rcN japanese/xfig.orig/pkg/PLIST japanese/xfig/pkg/PLIST *** japanese/xfig.orig/pkg/PLIST Mon Nov 18 14:01:18 1996 --- japanese/xfig/pkg/PLIST Sat Sep 27 15:36:57 1997 *************** *** 3,5 **** --- 3,7 ---- lib/X11/app-defaults/Fig lib/X11/app-defaults/Fig-color man/man1/xfig.1.gz + share/doc/xfig/xfig.3.2-I18N.ja_JP.EUC.gz + @dirrm share/doc/xfig >Audit-Trail: >Unformatted: