diff options
author | Chuck Robey <chuckr@FreeBSD.org> | 1997-08-19 03:44:07 +0000 |
---|---|---|
committer | Chuck Robey <chuckr@FreeBSD.org> | 1997-08-19 03:44:07 +0000 |
commit | 1506869809c051d78e088db187a56b7418d4b085 (patch) | |
tree | f7322fce5dc4488a363e6b0fb3e6f8f87a6c8c0e /print/a2ps43-letter | |
parent | 5d9f97bd335ada67af1e888d9d71cc239da6cdbf (diff) | |
download | ports-1506869809c051d78e088db187a56b7418d4b085.tar.gz ports-1506869809c051d78e088db187a56b7418d4b085.zip |
Notes
Diffstat (limited to 'print/a2ps43-letter')
-rw-r--r-- | print/a2ps43-letter/Makefile | 108 | ||||
-rw-r--r-- | print/a2ps43-letter/distinfo | 2 | ||||
-rw-r--r-- | print/a2ps43-letter/files/patch-aa | 23 | ||||
-rw-r--r-- | print/a2ps43-letter/files/patch-ab | 78 | ||||
-rw-r--r-- | print/a2ps43-letter/files/patch-ac | 12 | ||||
-rw-r--r-- | print/a2ps43-letter/pkg-plist | 121 | ||||
-rw-r--r-- | print/a2ps43-letter/scripts/configure | 11 |
7 files changed, 174 insertions, 181 deletions
diff --git a/print/a2ps43-letter/Makefile b/print/a2ps43-letter/Makefile index db9e95479d0e..db1aaafc21fd 100644 --- a/print/a2ps43-letter/Makefile +++ b/print/a2ps43-letter/Makefile @@ -1,75 +1,71 @@ # New ports collection makefile for: a2ps -# Version required: 4.3 -# Date created: 6 November 1994 -# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) +# Version required: 4.9.7 +# Date created: 18 August 1997 +# Whom: Chuck Robey (chuckr@freebsd.org) # -# $Id: Makefile,v 1.7 1996/05/27 08:47:50 asami Exp $ +# $Id: Makefile,v 1.8 1996/11/17 08:44:16 obrien Exp $ # DISTNAME= a2ps -PKGNAME= a2ps-${PAPERSIZE}-4.3 +PKGNAME= a2ps-${PAPERSIZE}-4.9.7 CATEGORIES= print -MASTER_SITES= ftp://ftp.imag.fr/archive/postscript/format.translators/ -DISTFILES= a2ps.V4.3.tar.gz +MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/ +DISTFILES= a2ps-4.9.7.tar.gz -MAINTAINER= jmz@FreeBSD.org +MAINTAINER= chuckr@FreeBSD.org -MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f -NO_WRKSUBDIR= yes -MAN1= a2ps.1 +WRKSRC= $(WRKDIR)/$(DISTNAME)-4.9.7 +GNU_CONFIGURE= yes +MAN1= a2ps.1 ogonkify.1 -letter:: - ${MAKE} PAPERSIZE=letter - -letter-install:: - ${MAKE} PAPERSIZE=letter install +PAPERSIZE?= +STRIP= +CONFIGURE_ARGS= --with-medium=$(PAPERSIZE) -a4:: - ${MAKE} PAPERSIZE=a4 -a4-install:: - ${MAKE} PAPERSIZE=a4 install +Letter:: + $(MAKE) PAPERSIZE=Letter +letter:: + $(MAKE) PAPERSIZE=Letter -.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 +Letterdj:: + $(MAKE) PAPERSIZE=Letterdj +letterdj:: + $(MAKE) PAPERSIZE=Letterdj -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 +A4:: + $(MAKE) PAPERSIZE=A4 -pre-install: - @${MKDIR} ${PREFIX}/bin - @${MKDIR} ${PREFIX}/man/man1 - @(cd ${WRKSRC}; make install.man) +a4:: + $(MAKE) PAPERSIZE=A4 -post-install: - strip ${PREFIX}/bin/a2ps +pre-configure: +.if empty(PAPERSIZE) + @echo + @echo "PAPERSIZE not specified." + @echo + @echo "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either" + @echo "using setenv, or via Makefile targets of the same name. Note" + @echo "that each PAPERSIZE has a leading capital letter, and Letterdj" + @echo "allows a slightly larger margins for DeskJets." + @false +.elif $(PAPERSIZE)!=A4 && $(PAPERSIZE)!=Letter && $(PAPERSIZE)!=Letterdj + @echo + @echo "PAPERSIZE incorrect value: $(PAPERSIZE)." + @echo + @echo "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either" + @echo "using setenv, or via Makefile targets of the same name. Note" + @echo "that each PAPERSIZE has a leading capital letter, and Letterdj" + @echo "allows a slightly larger margins for DeskJets." + @false +.endif + echo $(PAPERSIZE) > $(WRKDIR)/.media .include <bsd.port.mk> + +.if exists($(WRKDIR)/.media) +PAPERSIZE= +PAPERSIZE!= cat $(WRKDIR)/.media +.endif diff --git a/print/a2ps43-letter/distinfo b/print/a2ps43-letter/distinfo index ae227f43edf0..f482893a5d8a 100644 --- a/print/a2ps43-letter/distinfo +++ b/print/a2ps43-letter/distinfo @@ -1 +1 @@ -MD5 (a2ps.V4.3.tar.gz) = d3ae591323f0ece28bf3f3bc35f5799f +MD5 (a2ps-4.9.7.tar.gz) = e367d56d5e3f50ffbfd306b402441a90 diff --git a/print/a2ps43-letter/files/patch-aa b/print/a2ps43-letter/files/patch-aa deleted file mode 100644 index 6e66394132e1..000000000000 --- a/print/a2ps43-letter/files/patch-aa +++ /dev/null @@ -1,23 +0,0 @@ ---- Makefile.orig Mon Feb 14 07:09:33 1994 -+++ Makefile Thu May 16 19:20:50 1996 -@@ -29,12 +29,16 @@ - D =. - O =. - --BINDIR =/usr/local/bin -+##BINDIR =/usr/local/bin -+BINDIR = $(PREFIX)/bin - --MANDIR =/usr/man/mann --MANEXT =n -+##MANDIR =/usr/man/mann -+##MANEXT =n -+MANEXT = 1 -+MANDIR = $(PREFIX)/man/man$(MANEXT) - --CFLAGS = -DBSD -O -DLPR_PRINT -+##CFLAGS = -DBSD -O -DLPR_PRINT -+CFLAGS = -DBSD -O -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 --git a/print/a2ps43-letter/files/patch-ab b/print/a2ps43-letter/files/patch-ab deleted file mode 100644 index 22d4155b8b9b..000000000000 --- a/print/a2ps43-letter/files/patch-ab +++ /dev/null @@ -1,78 +0,0 @@ ---- a2ps.c.orig Tue Feb 15 01:14:59 1994 -+++ a2ps.c Thu May 16 19:04:15 1996 -@@ -164,12 +164,17 @@ - /* - * 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 8.27 -+#define WIDTH A4_WIDTH - #endif - - #ifndef HEIGHT --#define HEIGHT 11.64 -+#define HEIGHT A4_HEIGHT - #endif - - #ifndef MARGIN -@@ -362,6 +367,8 @@ - /* - * 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 */ - -@@ -382,6 +389,11 @@ - 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\" x 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"); -@@ -464,6 +476,12 @@ - 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; -@@ -1471,8 +1489,8 @@ - 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("/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"); -@@ -1794,8 +1812,8 @@ - /* 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; -+ page_height = (double)(paper_height - MARGIN) * PIXELS_INCH; -+ page_width = (double)(paper_width - MARGIN) * PIXELS_INCH; - - /* Postcript prologue printing */ - print_prologue(); diff --git a/print/a2ps43-letter/files/patch-ac b/print/a2ps43-letter/files/patch-ac deleted file mode 100644 index 188afff0902b..000000000000 --- a/print/a2ps43-letter/files/patch-ac +++ /dev/null @@ -1,12 +0,0 @@ ---- a2ps.1.orig Tue Feb 15 01:15:16 1994 -+++ a2ps.1 Fri Apr 5 00:00:01 1996 -@@ -155,6 +155,9 @@ - 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. diff --git a/print/a2ps43-letter/pkg-plist b/print/a2ps43-letter/pkg-plist index 89c69615c441..acb090df2cc1 100644 --- a/print/a2ps43-letter/pkg-plist +++ b/print/a2ps43-letter/pkg-plist @@ -1,2 +1,123 @@ +share/a2ps/ps/ascii.ps +share/a2ps/ps/latin1.ps +share/a2ps/ps/latin2.ps +share/a2ps/ps/latin3.ps +share/a2ps/ps/latin4.ps +share/a2ps/ps/latin5.ps +share/a2ps/ps/latin6.ps +share/a2ps/ps/pcg.ps +share/a2ps/ps/ibmpc.ps +share/a2ps/ps/hp.ps +share/a2ps/ps/mac.ps +share/a2ps/ps/cp1250.ps +share/a2ps/ps/base.ps +share/a2ps/ps/bw.pro +share/a2ps/ps/gray.pro +share/a2ps/ps/color.pro +share/a2ps/ps/gray2.pro +share/a2ps/ps/report.pre +share/a2ps/ps/ehandler.ps +etc/a2ps.cfg +info/ogonkify.info +man/man1/ogonkify.1.gz +bin/ogonkify +bin/composite +share/a2ps/ps/composite.ps +share/a2ps/ps/Courier-Ogonki.ps +share/a2ps/ps/Courier-Oblique-Ogonki.ps +share/a2ps/ps/Courier-Bold-Ogonki.ps +share/a2ps/ps/Courier-BoldOblique-Ogonki.ps +share/a2ps/ps/Times-Roman-Ogonki.ps +share/a2ps/ps/Times-Italic-Ogonki.ps +share/a2ps/ps/Times-Bold-Ogonki.ps +share/a2ps/ps/Times-BoldItalic-Ogonki.ps +share/a2ps/ps/Helvetica-Ogonki.ps +share/a2ps/ps/Helvetica-Oblique-Ogonki.ps +share/a2ps/ps/Helvetica-Bold-Ogonki.ps +share/a2ps/ps/Helvetica-BoldOblique-Ogonki.ps +share/a2ps/ps/adobe.enc +share/a2ps/ps/ogonki.enc +share/a2ps/ps/latin2.enc +share/a2ps/ps/latin4.enc +share/a2ps/ps/latin6.enc +share/a2ps/ps/cp1250.enc +share/a2ps/ps/latin1.enc +share/a2ps/ps/latin3.enc +share/a2ps/ps/latin5.enc +share/a2ps/ps/macintosh.enc +share/a2ps/ps/ibmpc.enc +share/a2ps/ps/hp.enc +share/a2ps/ps/ascii.enc +lib/liba2ps.so.0.0 +@exec /sbin/ldconfig -m %B +lib/liba2ps.a bin/a2ps +share/locale/ca/LC_MESSAGES/a2ps.mo +share/locale/cs/LC_MESSAGES/a2ps.mo +share/locale/de/LC_MESSAGES/a2ps.mo +share/locale/es/LC_MESSAGES/a2ps.mo +share/locale/fr/LC_MESSAGES/a2ps.mo +share/locale/it/LC_MESSAGES/a2ps.mo +share/locale/ko/LC_MESSAGES/a2ps.mo +share/locale/nl/LC_MESSAGES/a2ps.mo +share/locale/pl/LC_MESSAGES/a2ps.mo +share/locale/tr/LC_MESSAGES/a2ps.mo +share/a2ps/sheets/sheets.map +share/a2ps/sheets/68000.ssh +share/a2ps/sheets/a2psrc.ssh +share/a2ps/sheets/ada.ssh +share/a2ps/sheets/cpp.ssh +share/a2ps/sheets/c.ssh +share/a2ps/sheets/caml.ssh +share/a2ps/sheets/chlog.ssh +share/a2ps/sheets/claire.ssh +share/a2ps/sheets/clisp.ssh +share/a2ps/sheets/coqv.ssh +share/a2ps/sheets/eiffel.ssh +share/a2ps/sheets/fortran.ssh +share/a2ps/sheets/initora.ssh +share/a2ps/sheets/java.ssh +share/a2ps/sheets/lace.ssh +share/a2ps/sheets/lex.ssh +share/a2ps/sheets/mail.ssh +share/a2ps/sheets/modula3.ssh +share/a2ps/sheets/o2c.ssh +share/a2ps/sheets/oberon.ssh +share/a2ps/sheets/objc.ssh +share/a2ps/sheets/octave.ssh +share/a2ps/sheets/oracle.ssh +share/a2ps/sheets/pascal.ssh +share/a2ps/sheets/perl.ssh +share/a2ps/sheets/plsql.ssh +share/a2ps/sheets/ps.ssh +share/a2ps/sheets/pre.ssh +share/a2ps/sheets/prolog.ssh +share/a2ps/sheets/promela.ssh +share/a2ps/sheets/python.ssh +share/a2ps/sheets/sather.ssh +share/a2ps/sheets/scheme.ssh +share/a2ps/sheets/sdl88.ssh +share/a2ps/sheets/sh.ssh +share/a2ps/sheets/sql.ssh +share/a2ps/sheets/sql92.ssh +share/a2ps/sheets/ssh.ssh +share/a2ps/sheets/tcl.ssh +share/a2ps/sheets/tex.ssh +share/a2ps/sheets/tk.ssh +share/a2ps/sheets/unity.ssh +share/a2ps/sheets/verilog.ssh +share/a2ps/sheets/vhdl.ssh +share/a2ps/sheets/vrml.ssh +share/a2ps/sheets/yacc.ssh +share/a2ps/sheets/zsh.ssh +info/a2ps.info +info/a2ps.info-1 +info/a2ps.info-2 +info/a2ps.info-3 +info/regex.info +info/regex.info-1 +info/regex.info-2 +info/regex.info-3 man/man1/a2ps.1.gz +share/emacs/site-lisp/make-regexp.el +share/emacs/site-lisp/a2ps.el diff --git a/print/a2ps43-letter/scripts/configure b/print/a2ps43-letter/scripts/configure deleted file mode 100644 index b99a44d794f8..000000000000 --- a/print/a2ps43-letter/scripts/configure +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -cd $WRKSRC || exit 1; - -cat >> Makefile << END - -PREFIX= $PREFIX - -END -exit 0; - |