Subject: pkg/23961: print/dvipdfmx update to 20031116
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@bawi.org>
List: netbsd-bugs
Date: 01/03/2004 16:15:14
>Number:         23961
>Category:       pkg
>Synopsis:       print/dvipdfmx update to 20031116
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 03 22:16:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Min Sik Kim
>Release:        NetBSD 1.6ZG
>Organization:
>Environment:
System: NetBSD sulley.infnis.com 1.6ZG NetBSD 1.6ZG (SULLEY) #4: Sat Dec 13 23:18:32 CST 2003 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
Architecture: i386
Machine: i386
>Description:
Changes since 20021230:

        * Fixed a bug on the algorithm converting arc to cubic bezier
	  curves in arc() (tpic.c), which is reported by Werner Lemberg.
	* PNG support completely rewritten. Color pallete images are
	  now not converted to 24-bit RGB, colorspace Indexed is used
	  instead. Added tRNS and alpha chunnel (transparency) support.
	  Experimental gAMA, cHRM and sRGB support.
	* Fixed bug that dvipdfmx stops with error "Invalid Subr Index"
	  when embedding CFF OpenType font.
        * Add a missing line including pdfparse.h in dvi.c, which is
	  reported by Akira Kakuto.
	* Changed the default font map files for teTeX 2.x as suggested
	  by Haruhiko Okumura.
	* A bug on the paper size checking routine of dvi_paper_size()
	  in dvi.c is fixed, which is reported by Haruhiko Okumura.
	* A bug on the kerning routine of dev_set_string() in pdfdev.c is
	  fixed, which is reported by Edward G.J. Lee.
	* Changed to embed images only one time.
	* Updated configure.in and config.h.in to support WORDS_BIGENDIAN
	  and SIZEOF_SHORT, SIZEOF_INT, SIZEOF_LONG.
	* A faked font name was used for TrueType fonts without any PS
	  font name as suggested by Hin-Tak Leung.
	* Built-in codes (originally from libgcrypt-1.1.42) was used
	  for PDF encryption instead of the OpenSSL library as suggested
	  by Thomas Esser. 
	* A significant bug reported from Haruhiko Okumura is fixed.
	  The bug occurs only if compiled with gcc 3.x, not gcc 2.x.
	* New feature, hexadecimal Unicode, suggested by iNOUE Koich!
	  and Akira Kakuto is implemented.
	* Fixed bugs on reading and writing OpenType fonts.
	* Applied changes for MiKTeX in ps_include() (psimage.c).
	* Fixed a bug in cff_charsets_lookup() (cff.c).
	* Fixed a bug in string_mode() (pdfdev.c) reported by iNOUE Koich!.

>How-To-Repeat:
>Fix:

Apply the following patch.

NOTE:
  - The package doesn't depend on OpenSSL any more.
  - The previous patch-aa was merged in this verserion.
  - The new patch-aa is provided by the author to fix a critical bug on
    using TrueType fonts with Identity-H CMap.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/dvipdfmx/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	2003/12/24 13:02:01	1.8
+++ Makefile	2004/01/03 22:06:09
@@ -1,10 +1,9 @@
 # $NetBSD: Makefile,v 1.8 2003/12/24 13:02:01 jmmv Exp $
 
-DISTNAME=	dvipdfmx-20021230
-PKGNAME=	dvipdfmx-0.0.0.20021230
-PKGREVISION=	3
+DISTNAME=	dvipdfmx-20031116
+PKGNAME=	${DISTNAME:S/-/-0.0.0./}
 CATEGORIES=	print converters
-MASTER_SITES=	http://project.ktug.or.kr/dvipdfmx/snapshot/
+MASTER_SITES=	http://project.ktug.or.kr/dvipdfmx/snapshot/release/
 
 MAINTAINER=	kei@NetBSD.org
 HOMEPAGE=	http://project.ktug.or.kr/dvipdfmx/
@@ -24,10 +23,6 @@
 GNU_CONFIGURE=		YES
 #CONFIGURE_ARGS+=	--datadir=${PREFIX}/share
 
-post-patch:
-		${RM} ${WRKSRC}/data/config/*.orig
-
-.include "../../security/openssl/buildlink2.mk"
 .include "../../graphics/png/buildlink2.mk"
 .include "../../print/teTeX-bin/kpathsea.buildlink2.mk"
 .include "../../devel/zlib/buildlink2.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/print/dvipdfmx/PLIST,v
retrieving revision 1.2
diff -u -r1.2 PLIST
--- PLIST	2003/03/15 08:26:36	1.2
+++ PLIST	2004/01/03 22:06:10
@@ -1,7 +1,5 @@
 @comment $NetBSD: PLIST,v 1.2 2003/03/15 08:26:36 kei Exp $
 bin/dvipdfmx
-share/texmf/dvipdfm/config/cid-x.map
-share/texmf/dvipdfm/config/dvipdfmx.cfg
 share/texmf/dvipdfm/CMap/78-EUC-H
 share/texmf/dvipdfm/CMap/78-EUC-V
 share/texmf/dvipdfm/CMap/78-H
@@ -202,4 +200,6 @@
 share/texmf/dvipdfm/CMap/UniKSCms-UCS2-V
 share/texmf/dvipdfm/CMap/V
 share/texmf/dvipdfm/CMap/WP-Symbol
+share/texmf/dvipdfm/config/cid-x.map
+share/texmf/dvipdfm/config/dvipdfmx.cfg
 @dirrm share/texmf/dvipdfm/CMap
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/print/dvipdfmx/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo	2003/02/24 15:29:25	1.1.1.1
+++ distinfo	2004/01/03 22:06:10
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.1.1.1 2003/02/24 15:29:25 kei Exp $
 
-SHA1 (dvipdfmx-20021230.tar.gz) = 64512f10c42bafaadf6edba4a265d721a07307b9
-Size (dvipdfmx-20021230.tar.gz) = 296700 bytes
-SHA1 (patch-aa) = 687bd287b02743b5b9c83188e364d666e4c59f88
+SHA1 (dvipdfmx-20031116.tar.gz) = 8ad9c9a2a7a7ac7e7430e7f678d1cc49ba604b6e
+Size (dvipdfmx-20031116.tar.gz) = 325457 bytes
+SHA1 (patch-aa) = eac64f0d6608ee238839a84a1daa92d8812aaa0a
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/print/dvipdfmx/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-aa
--- patches/patch-aa	2003/02/24 15:29:25	1.1.1.1
+++ patches/patch-aa	2004/01/03 22:06:10
@@ -1,19 +1,22 @@
-$NetBSD: patch-aa,v 1.1.1.1 2003/02/24 15:29:25 kei Exp $
+$NetBSD$
 
---- data/config/dvipdfmx.cfg.orig	Sun Feb 23 18:44:33 2003
-+++ data/config/dvipdfmx.cfg	Sun Feb 23 18:44:52 2003
-@@ -76,10 +76,11 @@
+--- src/type0.c.orig	2002-12-30 00:12:42.000000000 -0600
++++ src/type0.c
+@@ -102,7 +102,7 @@ static void load_tounicode_cmap_identity
+   MFCLOSE (fp);
  
- % Font map files
- %
--f cmr.map
--f psbase14.map
-+% f cmr.map
-+% f psbase14.map
- % Most distributions now use these names
--f lw35urw.map
-+% f lw35urw.map
- % Some use these names
- % f lw35urwa.map
- f cid-x.map
-+f dvipdfm.map
+   stream = pdf_new_stream(STREAM_COMPRESS);
+-  tounicode_cmap_identity = pdf_link_obj(pdf_ref_obj(stream));
++  tounicode_cmap_identity = pdf_ref_obj(stream);
+ 
+   pdf_add_dict(pdf_stream_dict(stream),
+ 	       pdf_new_name("Length"), pdf_new_number(length));
+@@ -398,7 +398,7 @@ int type0_font (const char *map_name, in
+     if (tounicode_cmap_identity == NULL)
+       load_tounicode_cmap_identity();
+     pdf_add_dict (font_resource, pdf_new_name("ToUnicode"),
+-		  tounicode_cmap_identity);
++		  pdf_link_obj(tounicode_cmap_identity));
+   }
+ 
+   /* finaly write Encoding */
>Release-Note:
>Audit-Trail:
>Unformatted: