summaryrefslogtreecommitdiff
path: root/print/a2ps-letter/files
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-04-27 16:00:26 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-04-27 16:00:26 +0000
commit03156fbc9e57b8833d571c09fe86a65de05d8966 (patch)
treea41583195bf11eaddcc25d81461b4a49df2cefca /print/a2ps-letter/files
parent- rename patch, since it's now applied uncoditionally and remove EXTRA_PATCHE... (diff)
Add libpaper support to print/a2ps-*[1], print/c2ps-*, print/lprps-*,
graphics/jpeg2ps-*, and merge the papersize-suffixed versions into single ones respectively as print/psutils did. Approved by: dinoex (maintainer) [1]
Notes
Notes: svn path=/head/; revision=316672
Diffstat (limited to 'print/a2ps-letter/files')
-rw-r--r--print/a2ps-letter/files/patch-ad11
-rw-r--r--print/a2ps-letter/files/patch-ae18
-rw-r--r--print/a2ps-letter/files/patch-contrib-emacs-Makefile.in25
-rw-r--r--print/a2ps-letter/files/patch-contrib-tmpdircreation116
-rw-r--r--print/a2ps-letter/files/patch-etc-Makefile.in11
-rw-r--r--print/a2ps-letter/files/patch-intl-localealias.c20
-rw-r--r--print/a2ps-letter/files/patch-lib-xgethostname.c19
-rw-r--r--print/a2ps-letter/files/patch-printers.c13
-rw-r--r--print/a2ps-letter/files/patch-select.c57
-rw-r--r--print/a2ps-letter/files/patch-xgethostname.c12
10 files changed, 0 insertions, 302 deletions
diff --git a/print/a2ps-letter/files/patch-ad b/print/a2ps-letter/files/patch-ad
deleted file mode 100644
index 4b8428030547..000000000000
--- a/print/a2ps-letter/files/patch-ad
+++ /dev/null
@@ -1,11 +0,0 @@
---- ogonkify/Makefile.in.orig Tue Apr 20 00:07:03 1999
-+++ ogonkify/Makefile.in Tue Apr 20 00:07:07 1999
-@@ -37,7 +37,7 @@
-
- DESTDIR =
-
--pkgdatadir = $(datadir)/@PACKAGE@
-+pkgdatadir = $(datadir)/a2ps/@PACKAGE@
- pkglibdir = $(libdir)/@PACKAGE@
- pkgincludedir = $(includedir)/@PACKAGE@
-
diff --git a/print/a2ps-letter/files/patch-ae b/print/a2ps-letter/files/patch-ae
deleted file mode 100644
index e85e42c0dc42..000000000000
--- a/print/a2ps-letter/files/patch-ae
+++ /dev/null
@@ -1,18 +0,0 @@
---- lib/options.c.orig Thu Sep 21 23:22:36 2000
-+++ lib/options.c Thu Sep 21 23:22:42 2000
-@@ -493,6 +493,15 @@
- /* A font size is given */
- job->fontsize = get_length ("--font-size", cp,
- 0.0, 0.0, "pt", range_min_strict);
-+ if (job->fontsize == 0.0)
-+ {
-+ error (0, 0, _("invalid argument %s for -f or --font-size option"),
-+ cp);
-+ fprintf (stderr,
-+ _("Valid arguments are floats with optonal units!\n"));
-+ fprintf (stderr, _("Try `a2ps --help' for more information.\n"));
-+ exit (EXIT_FAILURE);
-+ }
- job->columns_requested = 0;
- job->lines_requested = 0;
- }
diff --git a/print/a2ps-letter/files/patch-contrib-emacs-Makefile.in b/print/a2ps-letter/files/patch-contrib-emacs-Makefile.in
deleted file mode 100644
index c1dab47d2a50..000000000000
--- a/print/a2ps-letter/files/patch-contrib-emacs-Makefile.in
+++ /dev/null
@@ -1,25 +0,0 @@
-Index: contrib/emacs/Makefile.in
---- Makefile.in.orig 2011-09-27 15:17:26.000000000 +0900
-+++ Makefile.in 2011-09-27 15:18:10.000000000 +0900
-@@ -159,8 +159,9 @@
-
- install-dist_lispLISP: $(dist_lisp_LISP) $(ELCFILES)
- @$(NORMAL_INSTALL)
-- $(mkinstalldirs) $(DESTDIR)$(lispdir)
-- @list='$(dist_lisp_LISP)'; for p in $$list; do \
-+ if test $(EMACS) != no; then \
-+ $(mkinstalldirs) $(DESTDIR)$(lispdir); \
-+ list='$(dist_lisp_LISP)'; for p in $$list; do \
- if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(lispdir)/$$f"; \
-@@ -169,7 +170,8 @@
- echo " $(INSTALL_DATA) $${p}c $(DESTDIR)$(lispdir)/$${f}c"; \
- $(INSTALL_DATA) $${p}c $(DESTDIR)$(lispdir)/$${f}c; \
- else : ; fi; \
-- done
-+ done; \
-+ fi
-
- uninstall-dist_lispLISP:
- @$(NORMAL_UNINSTALL)
diff --git a/print/a2ps-letter/files/patch-contrib-tmpdircreation b/print/a2ps-letter/files/patch-contrib-tmpdircreation
deleted file mode 100644
index e47e97120ad4..000000000000
--- a/print/a2ps-letter/files/patch-contrib-tmpdircreation
+++ /dev/null
@@ -1,116 +0,0 @@
-diff -ru contrib.orig/card.in contrib/card.in
---- contrib.orig/card.in Thu Dec 30 19:23:25 2004
-+++ contrib/card.in Thu Dec 30 19:29:49 2004
-@@ -38,7 +38,7 @@
- LC_ALL="${LC_ALL-C}" export LC_ALL
- print_form_feeds=:
- RM="/bin/rm -rf"
--tmp_dir=${TMPDIR-/tmp}/$program.$$
-+tmp_dir=$(mktemp -d -t ${program}) || exit 1
- tmp_file=$tmp_dir/card
- success=false
- verbose=:
-@@ -190,7 +190,6 @@
-
- # Create a tmp dir and be ready to clean up
- trap "$RM $tmp_dir" 0 1 2 15
--(umask 077 && mkdir $tmp_dir) || exit 1
-
- case $LC_ALL in
- fr) footer="Engendré par $version_short" ;;
-diff -ru contrib.orig/fixps.in contrib/fixps.in
---- contrib.orig/fixps.in Thu Dec 30 19:23:25 2004
-+++ contrib/fixps.in Thu Dec 30 19:31:22 2004
-@@ -38,7 +38,7 @@
- run_gs=0
- # What action to perform: fixps, cat, check, and gs
- task=fixps
--tmpdir=/tmp/$program.$$
-+tmpdir=$(mktemp -d -t ${program}) || exit 1
- verbose=echo
-
- # The version/usage strings
-@@ -191,7 +191,6 @@
- trap "/bin/rm -rf $tmpdir" 0 1 2 3 13 15
- fi
-
--mkdir $tmpdir
- fixps_sed=$tmpdir/fixps.sed
-
- # If printing from stdin, save into a tmp file
-diff -ru contrib.orig/pdiff.in contrib/pdiff.in
---- contrib.orig/pdiff.in Thu Dec 30 19:23:25 2004
-+++ contrib/pdiff.in Thu Dec 30 19:16:59 2004
-@@ -34,7 +34,7 @@
- diff_options='-u'
- file=
- output=
--tmpdir=/tmp/$program.$$
-+tmpdir=$(mktemp -d -t ${program}) || exit 1
- verbose=echo
- wdiff_prog=${WDIFF:-wdiff}
- wdiff_options='-w[wd- -x-wd] -y{wd+ -z+wd}'
-diff -ru contrib.orig/psmandup.in contrib/psmandup.in
---- contrib.orig/psmandup.in Thu Dec 30 19:23:25 2004
-+++ contrib/psmandup.in Thu Dec 30 19:32:30 2004
-@@ -36,7 +36,7 @@
- message=
- psselect=${PSSELECT:-psselect}
- psset=${PSSET:-psset}
--tmpdir=/tmp/$program.$$
-+tmpdir=$(mktemp -d -t ${program}) || exit 1
-
- # These two must be kept in synch. They are opposed.
- verbose=echo
-@@ -184,8 +184,6 @@
- # Temp dir. Get ready not to leave junk (if not debugging)
- trap "/bin/rm -rf $tmpdir" 0 1 2 3 13 15
- fi
--
--mkdir $tmpdir
-
- # If printing from stdin, save into a tmp file
- if test $file = '-'; then
-diff -ru contrib.orig/psset.in contrib/psset.in
---- contrib.orig/psset.in Thu Dec 30 19:23:25 2004
-+++ contrib/psset.in Thu Dec 30 19:33:50 2004
-@@ -33,7 +33,7 @@
- output=-
- pagedevices= # `;' separated list of `key:value'
- quiet=: # i.e., verbose
--tmpdir=${TMPDIR:-/tmp}/$program.$$
-+tmpdir=$(mktemp -d -t ${program}) || exit 1
- sedscript=$tmpdir/psset.sed
-
- # The version/usage strings
-@@ -185,8 +185,6 @@
- echo "$help" 1>&2
- exit 1;;
- esac
--
--mkdir $tmpdir
-
- if test -n "$debug"; then
- # Set -x now if debugging
-diff -ru contrib.orig/texi2dvi4a2ps contrib/texi2dvi4a2ps
---- contrib.orig/texi2dvi4a2ps Thu Dec 30 19:23:25 2004
-+++ contrib/texi2dvi4a2ps Thu Dec 30 19:34:36 2004
-@@ -91,7 +91,7 @@
- quiet= # by default let the tools' message be displayed
- set_language=
- textra=
--tmpdir=${TMPDIR:-/tmp}/t2d$$ # avoid collisions on 8.3 filesystems.
-+tmpdir=$(mktemp -d -t ${program}) || exit 1
- txincludes= # TEXINPUTS extensions
- txiprereq=19990129 # minimum texinfo.tex version to have macro expansion
- verbose=false # echo for verbose mode
-@@ -202,9 +202,6 @@
- if test -z "$debug"; then
- trap "cd / && rm -rf $tmpdir" 0 1 2 15
- fi
--
--# Create the temporary directory with strict rights
--(umask 077 && mkdir $tmpdir) || exit 1
-
- # Prepare the tools we might need. This may be extra work in some
- # cases, but improves the readibility of the script.
diff --git a/print/a2ps-letter/files/patch-etc-Makefile.in b/print/a2ps-letter/files/patch-etc-Makefile.in
deleted file mode 100644
index 6dddd830dcbf..000000000000
--- a/print/a2ps-letter/files/patch-etc-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- etc/Makefile.in.orig Tue Nov 20 19:09:45 2001
-+++ etc/Makefile.in Tue Nov 20 19:09:53 2001
-@@ -131,7 +131,7 @@
- lispdir = @lispdir@
-
-
--ogonkifydir = $(datadir)/ogonkify
-+ogonkifydir = $(datadir)/a2ps/ogonkify
- libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir)
-
- pkgdata_DATA = README
diff --git a/print/a2ps-letter/files/patch-intl-localealias.c b/print/a2ps-letter/files/patch-intl-localealias.c
deleted file mode 100644
index 074a19569ca5..000000000000
--- a/print/a2ps-letter/files/patch-intl-localealias.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- intl/localealias.c.orig Tue Aug 31 13:29:35 1999
-+++ intl/localealias.c Tue Aug 12 11:09:53 2003
-@@ -329,6 +329,17 @@
- FREE_BLOCKS (block_list);
- return added;
- }
-+ if (string_space != new_pool)
-+ {
-+ size_t i;
-+
-+ for (i = 0; i < nmap; i++)
-+ {
-+ map[i].alias += new_pool - string_space;
-+ map[i].value += new_pool - string_space;
-+ }
-+ }
-+
- string_space = new_pool;
- string_space_max = new_size;
- }
diff --git a/print/a2ps-letter/files/patch-lib-xgethostname.c b/print/a2ps-letter/files/patch-lib-xgethostname.c
deleted file mode 100644
index 06312ddf88e3..000000000000
--- a/print/a2ps-letter/files/patch-lib-xgethostname.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- lib/xgethostname.c.orig Tue Nov 20 20:26:31 2001
-+++ lib/xgethostname.c Tue Nov 20 20:26:03 2001
-@@ -21,6 +21,7 @@
- # include <config.h>
- #endif
-
-+#include <sys/param.h>
- #include <sys/types.h>
-
- #include <errno.h>
-@@ -38,7 +39,7 @@
- int gethostname ();
-
- #ifndef INITIAL_HOSTNAME_LENGTH
--# define INITIAL_HOSTNAME_LENGTH 34
-+# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN
- #endif
-
- char *
diff --git a/print/a2ps-letter/files/patch-printers.c b/print/a2ps-letter/files/patch-printers.c
deleted file mode 100644
index 943fc6445a24..000000000000
--- a/print/a2ps-letter/files/patch-printers.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- lib/printers.c.orig Tue Oct 12 00:01:59 1999
-+++ lib/printers.c Wed May 2 11:23:25 2001
-@@ -315,8 +315,8 @@
- res->ppd = NULL; /* Printer's ppd are not read yet */
-
- /* Output */
-- /* Default is to send to default printer */
-- res->flag_output_is_printer = true;
-+ /* Default is to send to stdout */
-+ res->flag_output_is_printer = false;
- res->flag_output_name = NULL;
- res->output_is_file = true;
- res->output_name = NULL;
diff --git a/print/a2ps-letter/files/patch-select.c b/print/a2ps-letter/files/patch-select.c
deleted file mode 100644
index a2c38898fdc6..000000000000
--- a/print/a2ps-letter/files/patch-select.c
+++ /dev/null
@@ -1,57 +0,0 @@
---- src/select.c.orig Thu Dec 16 02:04:56 1999
-+++ src/select.c Sat Aug 21 12:05:31 2004
-@@ -131,6 +131,36 @@
- return 1;
- }
-
-+/* escapes the name of a file so that the shell groks it in 'single' q.marks.
-+ The resulting pointer has to be free()ed when not longer used. */
-+char *
-+shell_escape(const char *fn)
-+{
-+ size_t len = 0;
-+ const char *inp;
-+ char *retval, *outp;
-+
-+ for(inp = fn; *inp; ++inp)
-+ switch(*inp)
-+ {
-+ case '\'': len += 4; break;
-+ default: len += 1; break;
-+ }
-+
-+ outp = retval = malloc(len + 1);
-+ if(!outp)
-+ return NULL; /* perhaps one should do better error handling here */
-+ for(inp = fn; *inp; ++inp)
-+ switch(*inp)
-+ {
-+ case '\'': *outp++ = '\''; *outp++ = '\\'; *outp++ = '\'', *outp++ = '\''; break;
-+ default: *outp++ = *inp; break;
-+ }
-+ *outp = 0;
-+
-+ return retval;
-+}
-+
- /* What says file about the type of a file (result is malloc'd). NULL
- if could not be run. */
-
-@@ -144,11 +174,15 @@
- if (IS_EMPTY (job->file_command))
- return NULL;
-
-+ filename = shell_escape(filename);
-+ if(filename == NULL)
-+ return NULL;
- /* Call file(1) with the correct option */
-- command = ALLOCA (char, (2
-+ command = ALLOCA (char, (4
- + strlen (job->file_command)
- + ustrlen (filename)));
-- sprintf (command, "%s %s", job->file_command, (const char *) filename);
-+ sprintf (command, "%s '%s'", job->file_command, (const char *) filename);
-+ free(filename);
- message (msg_tool, (stderr, "Reading pipe: `%s'\n", command));
- file_out = popen (command, "r");
-
diff --git a/print/a2ps-letter/files/patch-xgethostname.c b/print/a2ps-letter/files/patch-xgethostname.c
deleted file mode 100644
index bfc7c33e0a6d..000000000000
--- a/print/a2ps-letter/files/patch-xgethostname.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- lib/xgethostname.c Tue Sep 4 00:51:26 2001
-+++ lib/xgethostname.c.new Tue Sep 4 00:55:39 2001
-@@ -63,7 +63,7 @@
- if (err == 0 && hostname[k] == '\0')
- break;
- #ifdef ENAMETOOLONG
-- else if (err != 0 && errno != ENAMETOOLONG && errno != 0)
-+ else if (err != 0 && errno != ENAMETOOLONG && errno != ENOMEM && errno != 0)
- error (EXIT_FAILURE, errno, "gethostname");
- #endif
- size *= 2;
-