From 03156fbc9e57b8833d571c09fe86a65de05d8966 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sat, 27 Apr 2013 16:00:26 +0000 Subject: 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] --- print/a2ps/files/patch-ae | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 print/a2ps/files/patch-ae (limited to 'print/a2ps/files/patch-ae') diff --git a/print/a2ps/files/patch-ae b/print/a2ps/files/patch-ae new file mode 100644 index 000000000000..e85e42c0dc42 --- /dev/null +++ b/print/a2ps/files/patch-ae @@ -0,0 +1,18 @@ +--- 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; + } -- cgit v1.2.3