From owner-ports-jp@jp.freebsd.org  Sat Sep 30 22:56:17 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id WAA13624;
	Sat, 30 Sep 2000 22:56:17 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from c0mailgw10.prontomail.com ([216.163.180.10])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id WAA13619
	for <ports-jp@jp.freebsd.org>; Sat, 30 Sep 2000 22:56:16 +0900 (JST)
	(envelope-from tkato@prontomail.ne.jp)
Received: from mail69.prontomail.com (209.185.149.169) by c0mailgw10.prontomail.com (NPlex 5.1.050)
        id 39D0E7B0000748EA for ports-jp@jp.freebsd.org; Sat, 30 Sep 2000 06:55:20 -0700
Received: from c0web09 (216.163.180.10) by mail69.prontomail.com (NPlex 2.0.108) for ports-jp@jp.freebsd.org; 30 Sep 2000 06:55:27 -0700
From: "KATO Tsuguru" <tkato@prontomail.ne.jp>
Message-Id: <C0B39F78AF594D11780300807CF9CA46@tkato.prontomail.ne.jp>
Date: Sat, 30 Sep 2000 22:55:41 +0900
X-Priority: Normal
Content-Type: text/plain; charset=ISO-2022-JP
To: ports-jp@jp.freebsd.org
X-Mailer: Web Based Pronto
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: ports-jp 10185
Subject: [ports-jp 10185] Re: add the gs driver bmp16m
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: tkato@prontomail.ne.jp

> $B$G!"$H$j$"$($:(J
($BN,(J)
> $B$H$7$?$b$N$N:9J,$r0J2<$K$D$1$F$*$-$^$9!#(J

$B$9$$$^$;$s!":n6HESCf$N$b$N$rAw$C$F$7$^$C$?$h$&$G$9!#0J2<:9$7BX$(HG$G$9!#(J

diff -urN /usr/ports/japanese/vfghostscript55/Makefile japanese/vfghostscript55/Makefile
--- /usr/ports/japanese/vfghostscript55/Makefile	Sat Sep 30 12:44:01 2000
+++ japanese/vfghostscript55/Makefile	Sat Sep 30 19:34:45 2000
@@ -11,14 +11,10 @@
 MASTER_SITES=	${MASTER_SITE_GNU} \
 		ftp://ftp.cs.wisc.edu/ghost/gnu/gs550/ \
 		ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/ \
-		http://www.bukka.p.chiba-u.ac.jp/~ohmori/gs/ \
-		ftp://ftp.mei.co.jp/free/gnu/util/ghostscript/drivers/ \
+		http://www.ozemail.com.au/~geoffk/pdfencrypt/ \
 		${MASTER_SITE_LOCAL} \
 		${MASTER_SITE_PORTS_JP} \
-		http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/ \
-		http://www.flatout.org/~daisuke/Linux/gs/gs5/Original-sources/OLD/ \
-		http://www.rd.nacsis.ac.jp/~katayama/homepage/ghostscript/jpdf/ \
-		http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/ \
+		http://www.bukka.p.chiba-u.ac.jp/~ohmori/gs/ \
 		http://www.ceres.dti.ne.jp/~owatanab/gdevnpdl/ \
 		http://www.humblesoft.com/pub/ \
 		http://www.necs.co.jp/~umi/ \
@@ -28,7 +24,8 @@
 # first for ${MASTER_SITE_GNU}, second for ${MASTER_SITE_LOCAL},
 # third for ${MASTER_SITE_PORTS_JP}
 MASTER_SITE_SUBDIR=	ghostscript asami/LOCAL_PORTS .
-DISTFILES=	${GS_SOURCES} ${GS_DRIVERS} ${GS_FONTS_STD} ${GS_FONTS_OTHER}
+DISTFILES=	${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
+		${DECRYPT_PDF} ${GS_DRIVERS}
 EXTRACT_ONLY=	${GS_SOURCES}
 
 MAINTAINER=	mita@jp.FreeBSD.org
@@ -48,7 +45,15 @@
 GSINST_DIR=	${PREFIX}/share/ghostscript/5.50vflib
 DOC_DIR=	${GSINST_DIR}/doc
 PRINTER=	${WRKSRC}/jp-printers
+
 GS_SOURCES=	gnu-gs-5.50a.tar.gz
+#  Note: the following two are real files that have symlinks with
+#  later version numbers pointing to them.  To avoid unnecessarily
+#  downloading distfiles, do not change these when upgrading the port
+#  unless the files really change.
+GS_FONTS_STD=	gnu-gs-fonts-std-6.0.tar.gz
+GS_FONTS_OTHER=	gnu-gs-fonts-other-6.0.tar.gz
+
 GS_DRIVERS=	gs5.50-vflib-1.0.tar.gz
 GS_DRIVERS+=	gdevlips-2.3.6-550.tar.gz
 GS_DRIVERS+=	gdevmjc-0.8.tar.gz
@@ -60,21 +65,13 @@
 GS_DRIVERS+=	gdevmd2k-0.2a.tar.gz
 GS_DRIVERS+=	gdevrpdl-1.2.tar.gz
 GS_DRIVERS+=	eplaser-2.0.2-550.tgz
-#  Note: the following two are real files that have symlinks with
-#  later version numbers pointing to them.  To avoid unnecessarily
-#  downloading distfiles, do not change these when upgrading the port
-#  unless the files really change.
-GS_FONTS_STD=	gnu-gs-fonts-std-6.0.tar.gz
-GS_FONTS_OTHER=	gnu-gs-fonts-other-6.0.tar.gz
 
-pre-fetch:
-.if !defined(PDFENCRYPT)
-	@${ECHO_MSG} "NOTE: You can have encrypted PDF support by adding "
-	@${ECHO_MSG} "\"PDFENCRYPT=yes\" to argument of make."
-.endif
+# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
+DECRYPT_PDF=	pdf_sec.ps
 
 post-extract:
 	${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
+	@${TAR} -C ${WRKSRC} --unlink -xzf ${DISTDIR}/gs5.50-vflib-1.0.tar.gz
 	@( ${MKDIR} ${PRINTER} ; \
 	  cd ${PRINTER} ; \
 	  ${TAR} --unlink -xzf ${DISTDIR}/gdevlips-2.3.6-550.tar.gz ; \
@@ -91,10 +88,8 @@
 	)
 
 pre-patch:
-	@(cd ${WRKSRC} ; \
-	  ${TAR} --unlink -xzf ${DISTDIR}/gs5.50-vflib-1.0.tar.gz ;\
-	  ${PATCH} -s -p1 < ${WRKSRC}/gs5.50-vflib-1.0/gs5.50-vflib-1.0.diff \
-		>/dev/null 2>&1)
+	@${CAT} ${WRKSRC}/gs5.50-vflib-1.0/gs5.50-vflib-1.0.diff | \
+		${PATCH} -d ${WRKSRC} -p1 --forward --quiet -E
 
 post-patch:
 	@( cd ${PRINTER} ; \
@@ -144,6 +139,7 @@
 	@${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER}
 
 post-install:
+	${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps ${GSINST_DIR}
 	${INSTALL_PROGRAM} ${PRINTER}/epag-3.09/ert ${PREFIX}/bin
 	@strip ${PREFIX}/bin/gs
 	@( \
@@ -177,15 +173,5 @@
 	  ${CP} ${PRINTER}/gdevmjc-0.8/gdevmjc.ps ${GSINST_DIR} ; \
 	  ${CP} ${PRINTER}/eplaser/readme-eplaser.euc ${DOC_DIR} ; \
 	)
-.if defined(PDFENCRYPT)
-	@${CP} -f ${DISTDIR}/pdf_sec.ps ${GSINST_DIR}
-.endif
-
-# encrypted PDF support.  can't be packaged due to export control issues.
-.if defined(PDFENCRYPT)
-MASTER_SITES+=	http://www.ozemail.com.au/~geoffk/pdfencrypt/
-DISTFILES+=	pdf_sec.ps
-RESTRICTED=	"Crypto; export controlled, RC4 in PostScript code included"
-.endif
 
 .include <bsd.port.mk>



-- 
KATO Tsuguru / tkato@prontomail.ne.jp
                         
Sent by Japanese ProntoMail
