Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 1998 16:27:12 +0900 (KST)
From:      junker@jazz.snu.ac.kr
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7514: port upgrade: korean/h2ps
Message-ID:  <199808070727.QAA17774@punky.snu.ac.kr>

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

>Number:         7514
>Category:       ports
>Synopsis:       port upgrade: korean/h2ps
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug  7 00:30:01 PDT 1998
>Last-Modified:
>Originator:     CHOI Junho
>Organization:
NARAE, CS Dept., Seoul National Univ., ROK
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:

FreeBSD punky.snu.ac.kr 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Sun Jul 26 21:17:20 KST 1998     pwd@punky.snu.ac.kr:/allegro/2.2-src/sys/compile/GARFIELD  i386

>Description:

Port upgrade(korean/h2ps). (v1.0 -> v2.0)

>How-To-Repeat:

>Fix:
	
Apply the following diffs:

diff -uNr /usr/ports/korean/h2ps/Makefile ./Makefile
--- /usr/ports/korean/h2ps/Makefile	Thu Mar 12 15:17:42 1998
+++ ./Makefile	Fri Aug  7 16:23:11 1998
@@ -1,72 +1,23 @@
-# New ports collection makefile for:    h2ps-1.0
-# Version required:     1.0
+# New ports collection makefile for:    h2ps-2.0
+# Version required:     2.0
 # Date created:         20 May 1997
-# Whom:                 Choi Jun Ho <junker@jazz.snu.ac.kr>
+# Whom:                 CHOI Junho <junker@jazz.snu.ac.kr>
 #
 # $Id: Makefile,v 1.3 1997/11/22 01:17:55 asami Exp $
 #
 
-DISTNAME=	h2ps-1.0
-PKGNAME=	ko-h2ps-${PAPERSIZE}-1.0
+DISTNAME=	h2ps-2.00
+PKGNAME=	ko-h2ps-a4-2.0
 CATEGORIES=	korean print
-MASTER_SITES=	ftp://cglab.snu.ac.kr/pub/hangul/n3f/applications/
+MASTER_SITES=	ftp://cglab.snu.ac.kr/pub/hangul/n3f/tar/
 
 MAINTAINER=	junker@jazz.snu.ac.kr
 
-MANUAL_PACKAGE_BUILD=   PAPERSIZE has to be set to letter a4
-MAKE_FLAGS?=	WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
-MAN1=		h2ps.1
+pre-build:
+	@(cd ${WRKSRC}; make clean)
 
-letter::
-	${MAKE} PAPERSIZE=letter
-
-letter-install::
-	${MAKE} PAPERSIZE=letter install
-
-a4::
-	${MAKE} PAPERSIZE=a4
-
-a4-install::
-	${MAKE} PAPERSIZE=a4 install
-
-
-.if !defined(PAPERSIZE)
-PAPERSIZE=a4
-WIDTH=8.27
-HEIGHT=11.64
-A4_PAPERSIZE=1
-PAPERSIZE_UNSPECIFIED=	yes
-.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 
-PAPERSIZE=a4
-WIDTH=8.27
-HEIGHT=11.64
-A4_PAPERSIZE=1
-.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER
-PAPERSIZE=letter
-WIDTH=8.5
-HEIGHT=11.0
-A4_PAPERSIZE=0
-.else
-PAPERSIZE_INVALID= yes
-.endif	# not defined PAPERSIZE
-
-
-pre-fetch:
-.if defined(PAPERSIZE_UNSPECIFIED)
-	@echo "Defaulting to ${PAPERSIZE} sized paper."
-	@echo ""
-	@echo "Set the environment variable PAPERSIZE if you want to use other sizes."
-	@echo "Possible values are:  A4 (default) or letter"
-.elif defined(PAPERSIZE_INVALID)
-	@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" 
-	@echo "Possible values are:  A4 (default) or letter"
-	@/usr/bin/false
-.endif
-
-pre-install:
-	@(cd ${WRKSRC}; make install.man)
-
-post-install:
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/h2ps ${PREFIX}/bin
 	strip ${PREFIX}/bin/h2ps
 
 .include <bsd.port.mk>
diff -uNr /usr/ports/korean/h2ps/files/md5 ./files/md5
--- /usr/ports/korean/h2ps/files/md5	Tue Mar 25 19:47:28 1997
+++ ./files/md5	Fri Aug  7 16:23:49 1998
@@ -1 +1 @@
-MD5 (h2ps-1.0.tar.gz) = bfa63e61e7beb35f387c224679e5e7e4
+MD5 (h2ps-2.00.tar.gz) = 529c4243512f04984762d32584f513a8
diff -uNr /usr/ports/korean/h2ps/patches/patch-aa ./patches/patch-aa
--- /usr/ports/korean/h2ps/patches/patch-aa	Tue Mar 25 19:47:27 1997
+++ ./patches/patch-aa	Fri Aug  7 16:23:45 1998
@@ -1,15 +1,12 @@
-diff -c -r ../h2ps-1.0-orig/h2ps.1 ./h2ps.1
-*** ../h2ps-1.0-orig/h2ps.1	Wed Mar 19 21:29:14 1997
---- ./h2ps.1	Wed Mar 19 21:42:46 1997
-***************
-*** 156,161 ****
---- 156,164 ----
-  is the number of copies desired of each file named. By default, you get
-  only one copy.
-  .TP 0.6i
-+ .B -a
-+ Use the American paper size (8.5" x 11") as the basis for all calculations.
-+ .TP 0.6i
-  .B -d
-  Print the current date and time at the bottom of the page. This option
-  is affected by the no surrounding border and the no header options.
+--- h2ps.c.orig	Fri Aug  7 16:15:49 1998
++++ h2ps.c	Fri Aug  7 16:16:40 1998
+@@ -177,6 +177,9 @@
+   fputs("%%Creator: h2ps\n", out);
+   fprintf(out, "%%%%CreationDate: %s\n", date_str);
+   fputs("%%Pages: (atend)\n", out);
++  fputs("%%PageOrder: Ascend\n", out);
++  fputs("%%DocumentData: Clean8Bit\n", out);
++  fputs("%%DocumentPaperSizes: A4\n", out);
+   fputs("%%EndComments\n", out);
+   
+   npsr_insert_resource(out, NPSR_FONT, "n3f-5");
diff -uNr /usr/ports/korean/h2ps/patches/patch-ab ./patches/patch-ab
--- /usr/ports/korean/h2ps/patches/patch-ab	Tue Mar 25 19:47:27 1997
+++ ./patches/patch-ab	Thu Jan  1 09:00:00 1970
@@ -1,167 +0,0 @@
-*** h2ps.c.ori	Tue Mar 25 19:04:43 1997
---- h2ps.c	Tue Mar 25 19:04:49 1997
-***************
-*** 219,230 ****
-  /*
-   * Default page dimensions
-   */
-  #ifndef WIDTH
-! #define	WIDTH	8.27
-  #endif
-  
-  #ifndef HEIGHT
-! #define	HEIGHT	11.64
-  #endif
-  
-  #ifndef MARGIN
---- 219,235 ----
-  /*
-   * Default page dimensions
-   */
-+ #define USA_WIDTH      8.5
-+ #define USA_HEIGHT     11.0
-+ #define        A4_WIDTH        8.27
-+ #define        A4_HEIGHT       11.64
-+ 
-  #ifndef WIDTH
-! #define        WIDTH   A4_WIDTH
-  #endif
-  
-  #ifndef HEIGHT
-! #define        HEIGHT  A4_HEIGHT
-  #endif
-  
-  #ifndef MARGIN
-***************
-*** 426,431 ****
---- 431,439 ----
-  /*
-   * Sheet dimensions
-   */
-+ double paper_height = HEIGHT;  /* Paper height */
-+ double paper_width = WIDTH;    /* Paper width */
-+ 
-  double page_height = HEIGHT;	/* Paper height */
-  double page_width = WIDTH;	/* Paper width */
-  
-***************
-*** 446,451 ****
---- 454,464 ----
-      fprintf(stderr,"pos.   =  -#num\t\tnumber of copies to print\n");
-      fprintf(stderr,"          -1\t\tone page per sheet\n");
-      fprintf(stderr,"          -2\t\tTWIN PAGES per sheet\n");
-+ #if A4_PAPERSIZE == 1
-+     fprintf(stderr,"          -a\t\tUse USA paper size (8.5\" x 11\")\n");
-+ #else
-+     fprintf(stderr,"          -a\t\tUse A4 paper size (21cm x 29.56cm (8.27\" 11.64\"))\n");
-+ #endif
-      fprintf(stderr,"          -d\t-nd\tprint (DON'T PRINT) current date at the bottom\n");
-      fprintf(stderr,"          -Fnum\t\tfont size, num is a float number\n");
-      fprintf(stderr,"          -Hstr\t\tuse str like header title for subsequent files\n");
-***************
-*** 528,533 ****
---- 541,552 ----
-  	    usage(EXIT_FAILURE);
-  	interpret = TRUE;
-  	break;
-+     case 'a':                  /* American paper sizes */
-+ #if defined(USA_HEIGHT) && defined(USA_WIDTH)
-+         paper_height = USA_HEIGHT;
-+         paper_width = USA_WIDTH;
-+ #endif
-+         break;
-      case 'n':
-  	if (arg[2] == NUL)
-  	    return;
-***************
-*** 778,785 ****
-  /*
-   * This routine buffers a line of input, release one character at a time
-   * or a whole sequence of characters with some meaning like bold sequences
-!  * produced by nroff (no others sequences are recognized by the moment):
-!  *        <c><\b><c><\b><c><\b><c>
-   */
-  int
-  mygetc(statusp)
---- 797,805 ----
-  /*
-   * This routine buffers a line of input, release one character at a time
-   * or a whole sequence of characters with some meaning like bold sequences
-!  * or underlining produced by nroff.
-!  *        <c><\b><c>
-!  *        <_><\b><c>
-   */
-  int
-  mygetc(statusp)
-***************
-*** 807,822 ****
-      if (buffer[curr+1] != '\b')		/* this is not a special sequence */
-  	return  buffer[curr++];
-  
-!     /* Check if it is a bold sequence */
-!     c = buffer[curr++];
-!     if (c		== buffer[curr+1] &&
-! 	buffer[curr]	== buffer[curr+2] &&
-! 	c		== buffer[curr+3] &&
-! 	buffer[curr]	== buffer[curr+4] &&
-! 	c		== buffer[curr+5])
-      {
-  	*statusp = IS_BOLD;
-! 	curr += 6;
-      }
-  
-      /* Return the first character of the sequence */
---- 827,841 ----
-      if (buffer[curr+1] != '\b')		/* this is not a special sequence */
-  	return  buffer[curr++];
-  
-!     /* check if we're underlining */
-!     if (buffer[curr] == '_')
-!       return  buffer[curr++];
-! 
-!       /* Check if it is a bold sequence */
-!     if ((c = buffer[curr]) == buffer[curr+2])
-      {
-  	*statusp = IS_BOLD;
-! 	curr += 3;
-      }
-  
-      /* Return the first character of the sequence */
-***************
-*** 1590,1597 ****
-      printf("\n%% Initialize page description variables.\n");
-      printf("/x0 0 def\n");
-      printf("/y0 0 def\n");
-!     printf("/sh %g inch def\n", (double)HEIGHT);
-!     printf("/sw %g inch def\n", (double)WIDTH);
-      printf("/margin %g inch def\n", (double)MARGIN);
-      printf("/rm margin 3 div def\n");
-      printf("/lm margin 2 mul 3 div def\n");
---- 1609,1616 ----
-      printf("\n%% Initialize page description variables.\n");
-      printf("/x0 0 def\n");
-      printf("/y0 0 def\n");
-!     printf("/sh %g inch def\n", (double)paper_height);
-!     printf("/sw %g inch def\n", (double)paper_width);
-      printf("/margin %g inch def\n", (double)MARGIN);
-      printf("/rm margin 3 div def\n");
-      printf("/lm margin 2 mul 3 div def\n");
-***************
-*** 1884,1891 ****
-      /* Initialize variables not depending of positional options */
-      landscape = twinpages = -1;	/* To force format switching */
-      fontsize = -1.0;			/* To force fontsize switching */
-!     page_height = (double)(HEIGHT - MARGIN) * PIXELS_INCH;
-!     page_width = (double)(WIDTH - MARGIN) * PIXELS_INCH;
-      
-      /* Postcript prologue printing */
-      print_prologue();
---- 1903,1910 ----
-      /* Initialize variables not depending of positional options */
-      landscape = twinpages = -1;	/* To force format switching */
-      fontsize = -1.0;			/* To force fontsize switching */
-!     page_height = (double)(paper_height - MARGIN) * PIXELS_INCH;
-!     page_width = (double)(paper_width - MARGIN) * PIXELS_INCH;
-      
-      /* Postcript prologue printing */
-      print_prologue();
diff -uNr /usr/ports/korean/h2ps/patches/patch-ac ./patches/patch-ac
--- /usr/ports/korean/h2ps/patches/patch-ac	Tue Mar 25 19:47:28 1997
+++ ./patches/patch-ac	Thu Jan  1 09:00:00 1970
@@ -1,43 +0,0 @@
-*** ../h2ps-1.0-orig/Makefile	Wed Mar 19 21:29:14 1997
---- Makefile	Wed Mar 19 21:53:13 1997
-***************
-*** 63,79 ****
-  # stupid a**holes who add non-compatible "features"
-  SHELL	=/bin/sh
-  
-! CC	=gcc
-  
-  D	=.
-  O	=.
-  
-! BINDIR	=/usr/local/bin
-  
-! MANDIR	=/usr/man/mann
-! MANEXT	=n
-  
-! CFLAGS	= -O # -DBSD -DLPR_PRINT
-  # Default values for HEIGHT, WIDTH, MARGIN and DIR_SEP (11.64, 8.27, 1.2, '/').
-  # Default values for LPR_COMMAND and LPR_OPT ("lpr", "-l")
-  # No values for TWOSIDED_DFLT, ONESIDED and TWOSIDED
---- 63,83 ----
-  # stupid a**holes who add non-compatible "features"
-  SHELL	=/bin/sh
-  
-! CC	= gcc
-  
-  D	=.
-  O	=.
-  
-! ##BINDIR	=/usr/local/bin
-! BINDIR	= $(PREFIX)/bin
-  
-! ##MANDIR	=/usr/man/mann
-! ##MANEXT	=n
-! MANEXT	=	1
-! MANDIR	=	$(PREFIX)/man/man$(MANEXT)
-  
-! #CFLAGS	= -O # -DBSD -DLPR_PRINT
-! CFLAGS	= -O -DBSD -DWIDTH=$(WIDTH) -DHEIGHT=$(HEIGHT) -DA4_PAPERSIZE=$(A4_PAPERSIZE)
-  # Default values for HEIGHT, WIDTH, MARGIN and DIR_SEP (11.64, 8.27, 1.2, '/').
-  # Default values for LPR_COMMAND and LPR_OPT ("lpr", "-l")
-  # No values for TWOSIDED_DFLT, ONESIDED and TWOSIDED
diff -uNr /usr/ports/korean/h2ps/pkg/DESCR ./pkg/DESCR
--- /usr/ports/korean/h2ps/pkg/DESCR	Tue Mar 25 19:47:26 1997
+++ ./pkg/DESCR	Fri Aug  7 16:19:34 1998
@@ -1,11 +1,16 @@
+h2ps
+----
+
 h2ps formats each named file for printing in a postscript printer with
 embedded PS hangul fonts; if no file is given, h2ps reads from the
-standard input. The format used is nice and compact: normally two pages 
-on each physical page, borders surrounding pages, headers with useful 
-information (page number, printing date, file name or supplied header), 
-line numbering, etc. This is very useful for making archive listings of
-programs.
+standard input. The format used is nice and compact: n(1 to 10) pages 
+on each physical page, headers with useful information (page number, 
+printing date), etc. This is very useful for making simple listings of
+Korean text.
 
-It is relatively compat when comparing with nh2ps, and no need to another
+It is relatively compact when comparing with nh2ps, and no need to another
 fonts or ghostscript. It can be printed with any PostScript printer only
 with english fonts because its fonts are embedded with output.
+
+--
+Ports by CHOI Junho <junker@jazz.snu.ac.kr>
diff -uNr /usr/ports/korean/h2ps/pkg/PLIST ./pkg/PLIST
--- /usr/ports/korean/h2ps/pkg/PLIST	Tue Mar 25 19:47:26 1997
+++ ./pkg/PLIST	Fri Aug  7 16:18:12 1998
@@ -1,2 +1 @@
 bin/h2ps
-man/man1/h2ps.1.gz
diff -uNr /usr/ports/korean/h2ps/scripts/CVS/Entries ./scripts/CVS/Entries
--- /usr/ports/korean/h2ps/scripts/CVS/Entries	Tue Oct 21 21:06:23 1997
+++ ./scripts/CVS/Entries	Thu Jan  1 09:00:00 1970
@@ -1,2 +0,0 @@
-/configure/1.1.1.1/Tue Mar 25 10:47:24 1997//
-D
diff -uNr /usr/ports/korean/h2ps/scripts/CVS/Repository ./scripts/CVS/Repository
--- /usr/ports/korean/h2ps/scripts/CVS/Repository	Tue Oct 21 21:06:23 1997
+++ ./scripts/CVS/Repository	Thu Jan  1 09:00:00 1970
@@ -1 +0,0 @@
-/home/ncvs/ports/korean/h2ps/scripts
diff -uNr /usr/ports/korean/h2ps/scripts/CVS/Root ./scripts/CVS/Root
--- /usr/ports/korean/h2ps/scripts/CVS/Root	Tue Oct 21 21:06:23 1997
+++ ./scripts/CVS/Root	Thu Jan  1 09:00:00 1970
@@ -1 +0,0 @@
-/home/ncvs
diff -uNr /usr/ports/korean/h2ps/scripts/configure ./scripts/configure
--- /usr/ports/korean/h2ps/scripts/configure	Tue Mar 25 19:47:24 1997
+++ ./scripts/configure	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-cd $WRKSRC || exit 1;
-
-cat >> Makefile << END
-
-PREFIX= $PREFIX
-
-END
-exit 0;
-
>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?199808070727.QAA17774>