Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 1998 18:28:02 +0100 (CET)
From:      MITA Yoshio <Yoshio.Mita@isen.fr>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/5808: ja-tgif port for JIS support
Message-ID:  <199802211728.SAA23557@pcmita.isen.fr>

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

>Number:         5808
>Category:       ports
>Synopsis:       Added support for JIS encoded PostScript
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 21 09:40:01 PST 1998
>Last-Modified:
>Originator:     MITA Yoshio
>Organization:
Le Centre National de la Recherche Scientifique
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:
	+XFree86 3.3.1

>Description:
Some problems are known in some printers concerning EUC-JP encoded
PostScript files. It's also known that there's a patch which solve that problem.
This PR enables japanese/tgif port to use the patch.  
Patch is not applied in BATCH=yes mode, nor interactive mode 
selecting "EUC-JP(default)".

>How-To-Repeat:
>Fix:

diff -ruN japanese/tgif.orig/Makefile japanese/tgif/Makefile
--- japanese/tgif.orig/Makefile	Sun Sep 14 23:33:35 1997
+++ japanese/tgif/Makefile	Sat Feb 21 18:13:22 1998
@@ -9,8 +9,10 @@
 DISTNAME=	tgif-3.0-p13
 PKGNAME=	ja-tgif-3.0.13
 CATEGORIES=	japanese
-MASTER_SITES=	${MASTER_SITE_XCONTRIB}
+MASTER_SITES=	${MASTER_SITE_XCONTRIB} \
+		http://www.jp.freebsd.org/~mita/LOCAL_PORTS/
 MASTER_SITE_SUBDIR=	applications/tgif
+DISTFILES=	tgif-3.0-p13.tar.gz tgif-3.0J0.12-p13-JIS-patch.gz
 
 PATCH_SITES=	ftp://ftp.mei.co.jp/free/X11/X/applications/drawing/tgif/
 PATCHFILES=	tgif-3.0J0.12-p13-patch.gz
@@ -28,5 +30,10 @@
 PATCH_DIST_STRIP=	-p1
 MAN1=			tgif.1 prtgif.1
 MANCOMPRESSED=		yes
+EXTRACT_ONLY=	tgif-3.0-p13.tar.gz
+
+post-patch:
+	 ${SETENV} DISTDIR="${DISTDIR}" GZCAT="${GZCAT}" \
+	 PATCH="${PATCH}" PATCH_DIST_ARGS="${PATCH_DIST_ARGS}" ${SH} ${FILESDIR}/setup.sh
 
 .include <bsd.port.mk>
diff -ruN japanese/tgif.orig/files/md5 japanese/tgif/files/md5
--- japanese/tgif.orig/files/md5	Sat Aug 30 20:33:48 1997
+++ japanese/tgif/files/md5	Sat Dec  6 10:09:09 1997
@@ -1,2 +1,3 @@
 MD5 (tgif-3.0-p13.tar.gz) = d862c6bdf9c4e0f3852fdfe8646e50fc
 MD5 (tgif-3.0J0.12-p13-patch.gz) = 399e09ddb139a4840fa83de9307aee20
+MD5 (tgif-3.0J0.12-p13-JIS-patch.gz) = 2e88c8c70e33605900eb7a724752a387
diff -ruN japanese/tgif.orig/files/setup.sh japanese/tgif/files/setup.sh
--- japanese/tgif.orig/files/setup.sh	Thu Jan  1 01:00:00 1970
+++ japanese/tgif/files/setup.sh	Sat Feb 21 16:57:13 1998
@@ -0,0 +1,25 @@
+#!/bin/sh
+# tgif configuration shell script
+# usage: /bin/sh setup 
+
+if [ X"${BATCH}" != X"yes" ] ; then
+/usr/bin/dialog --title "Tgif port setup for Kanji code selection" --radiolist \
+"You can select EUC kanji code (Default) or JIS kanji code. \n \
+EUC kanji code is compatible to former Tgif ports. \n \
+Recently there are many printers which do not understand \n \
+EUC encoded PS files correctly.  In that case choose JIS." -1 -1 2 \
+"EUC" "EUC-JP mode" ON \
+"JIS" "JIS mode" OFF 2>/tmp/TGIF.kanji.selection
+
+if [ X`cat /tmp/TGIF.kanji.selection` = "XJIS" ]
+	then
+	 echo 'JIS is selected'
+	 echo 'Remember to change X resources entry for TgifNihongoFonts'
+	 echo 'If you have already set'
+	 ${GZCAT} ${DISTDIR}/tgif-3.0J0.12-p13-JIS-patch.gz | \
+		${PATCH} ${PATCH_DIST_ARGS}
+	else
+ 	 echo 'EUC-JP mode (default) is selected'
+	fi
+fi
+rm -f /tmp/TGIF.kanji.selection
diff -ruN japanese/tgif.orig/patches/patch-aa japanese/tgif/patches/patch-aa
--- japanese/tgif.orig/patches/patch-aa	Sat Aug 30 20:33:48 1997
+++ japanese/tgif/patches/patch-aa	Sat Dec  6 10:10:52 1997
@@ -1,7 +1,7 @@
-*** Imakefile.orig	Mon Jul 21 22:52:14 1997
---- Imakefile	Mon Jul 21 22:52:25 1997
+*** Imakefile.orig	Sat Dec  6 10:09:50 1997
+--- Imakefile	Sat Dec  6 10:10:12 1997
 ***************
-*** 87,93 ****
+*** 94,100 ****
   LOCAL_LIBRARIES	= $(XLIB)
   XCOMM LOCAL_LIBRARIES	= $(XMULIB) $(XTOOLLIB) $(XLIB)
   DEPLIBS		= $(DEPXLIB)
@@ -9,7 +9,7 @@
   
   XCOMM -D_NO_GETTIMEOFDAY
   XCOMM    Include the above line if you do not have the gettimeofday()
---- 87,93 ----
+--- 94,100 ----
   LOCAL_LIBRARIES	= $(XLIB)
   XCOMM LOCAL_LIBRARIES	= $(XMULIB) $(XTOOLLIB) $(XLIB)
   DEPLIBS		= $(DEPXLIB)

--
MITA Yoshio
>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?199802211728.SAA23557>