1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Remove this old version of A2ps.

Some people are interupting the port to be the newest version since the port's
name has a version number in it.  This believe has been causing people to
miss the good features of the current A2ps offering.  More importantly, it
has been causing problems with the apsfilter port as it needs the current
A2ps offering to operate.
By now those that preferred this version over the real offering has figured
out how to make the current offering do what they want.
This commit is contained in:
David E. O'Brien 2001-09-10 17:43:13 +00:00
parent 7d49f3b8c1
commit 41e61385d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47613
10 changed files with 0 additions and 216 deletions

View File

@ -1,11 +0,0 @@
# New ports collection makefile for: a2ps (a4)
# Date created: 6 November 1994
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
#
# $FreeBSD$
#
PAPERSIZE= a4
MASTERDIR= ${.CURDIR}/../a2ps43-letter
.include "${MASTERDIR}/Makefile"

View File

@ -1,47 +0,0 @@
# ex:ts=8
# New ports collection makefile for: a2ps
# Date created: 6 November 1994
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
#
# $FreeBSD$
#
PORTNAME= a2ps-${PAPERSIZE}
PORTVERSION= 4.3
CATEGORIES= print
MASTER_SITES= ftp://ftp.imag.fr/archive/postscript/format.translators/
DISTNAME= a2ps.V4.3
MAINTAINER= obrien@FreeBSD.org
NO_LATEST_LINK= yes
MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
NO_WRKSUBDIR= yes
MAN1= a2ps.1
PAPERSIZE?= letter
.if ${PAPERSIZE} == letter
WIDTH=8.5
HEIGHT=11.0
A4_PAPERSIZE=0
.elif ${PAPERSIZE} == a4
WIDTH=8.27
HEIGHT=11.64
A4_PAPERSIZE=1
.else
.BEGIN:
@${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
@${ECHO} "Possible values are: a4 or letter"
@${FALSE}
.endif
pre-install:
@${MKDIR} ${PREFIX}/bin
@${MKDIR} ${PREFIX}/man/man1
@(cd ${WRKSRC}; make install.man)
post-install:
strip ${PREFIX}/bin/a2ps
.include <bsd.port.mk>

View File

@ -1 +0,0 @@
MD5 (a2ps.V4.3.tar.gz) = d3ae591323f0ece28bf3f3bc35f5799f

View File

@ -1,22 +0,0 @@
--- Makefile.orig Mon Feb 14 07:09:33 1994
+++ Makefile Sun May 9 13:50:34 1999
@@ -29,12 +29,15 @@
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 -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

View File

@ -1,92 +0,0 @@
--- a2ps.c.orig Tue Feb 15 01:14:59 1994
+++ a2ps.c Sun May 9 13:46:38 1999
@@ -1,4 +1,3 @@
-/************************************************************************/
/* */
/* Description: Ascii to PostScript printer program. */
/* File: bounty:/archive/src/a2ps/Last/a2ps.c */
@@ -164,12 +163,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
@@ -311,7 +315,7 @@
int login_id = TRUE; /* Print login ID at top of page */
#endif
#if LPR_PRINT
-int lpr_print = TRUE; /* Fork a lpr process to do the printing */
+int lpr_print = FALSE; /* Fork a lpr process to do the printing */
#ifdef RECTO_VERSO_PRINTING
int rectoverso = TWOSIDED_DFLT; /* Two-side printing */
#endif
@@ -362,6 +366,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 +388,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 +475,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 +1488,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 +1811,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();

View File

@ -1,23 +0,0 @@
--- a2ps.1.orig Tue Feb 15 01:15:16 1994
+++ a2ps.1 Sun May 9 12:20:19 1999
@@ -97,8 +97,8 @@
Don't print non ascii characters as ISO Latin 1 characters (see -8 option).
.TP 0.6i
.B -P\fIprinter\fP
-Send output to the named printer. The default option is send to the default
-printer.
+Send output to the named printer. The default option is send the output to
+.B stdout.
.TP 0.6i
.B -q
Print files in quiet mode (no summary).
@@ -154,6 +154,9 @@
.I num
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

View File

@ -1 +0,0 @@
Formats an ascii file for printing on a postscript printer

View File

@ -1,6 +0,0 @@
A2ps formats each named file for printing in a postscript printer; if
no file is given, a2ps 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.

View File

@ -1,2 +0,0 @@
@comment $FreeBSD$
bin/a2ps

View File

@ -1,11 +0,0 @@
#!/bin/sh
cd $WRKSRC || exit 1;
cat >> Makefile << END
PREFIX= $PREFIX
END
exit 0;