From c5f6ac09519c1785849f7594e34002339744acff Mon Sep 17 00:00:00 2001 From: hrs 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/Makefile | 10 +- print/a2ps-a4/Makefile | 7 - print/a2ps-letter/Makefile | 110 ------- print/a2ps-letter/distinfo | 4 - print/a2ps-letter/files/patch-ad | 11 - print/a2ps-letter/files/patch-ae | 18 -- .../files/patch-contrib-emacs-Makefile.in | 25 -- .../a2ps-letter/files/patch-contrib-tmpdircreation | 116 ------- print/a2ps-letter/files/patch-etc-Makefile.in | 11 - print/a2ps-letter/files/patch-intl-localealias.c | 20 -- print/a2ps-letter/files/patch-lib-xgethostname.c | 19 -- print/a2ps-letter/files/patch-printers.c | 13 - print/a2ps-letter/files/patch-select.c | 57 ---- print/a2ps-letter/files/patch-xgethostname.c | 12 - print/a2ps-letter/pkg-descr | 13 - print/a2ps-letter/pkg-plist | 294 ----------------- print/a2ps/Makefile | 102 ++++++ print/a2ps/distinfo | 4 + print/a2ps/files/patch-ad | 11 + print/a2ps/files/patch-ae | 18 ++ print/a2ps/files/patch-contrib-emacs-Makefile.in | 25 ++ print/a2ps/files/patch-contrib-tmpdircreation | 116 +++++++ print/a2ps/files/patch-etc-Makefile.in | 11 + print/a2ps/files/patch-intl-localealias.c | 20 ++ print/a2ps/files/patch-lib-xgethostname.c | 19 ++ print/a2ps/files/patch-printers.c | 13 + print/a2ps/files/patch-select.c | 57 ++++ print/a2ps/files/patch-xgethostname.c | 12 + print/a2ps/pkg-descr | 13 + print/a2ps/pkg-plist | 294 +++++++++++++++++ print/c2ps-a4/Makefile | 11 - print/c2ps-letter/Makefile | 37 --- print/c2ps-letter/distinfo | 2 - print/c2ps-letter/pkg-descr | 6 - print/c2ps/Makefile | 22 ++ print/c2ps/distinfo | 2 + print/c2ps/files/patch-Makefile | 47 +++ print/c2ps/files/patch-c2ps.c | 346 +++++++++++++++++++++ print/c2ps/pkg-descr | 6 + print/foomatic-filters/Makefile | 23 +- print/lprps-a4/Makefile | 12 - print/lprps-letter/Makefile | 60 ---- print/lprps-letter/distinfo | 2 - print/lprps-letter/files/patch-aa | 29 -- print/lprps-letter/files/patch-ab | 38 --- print/lprps-letter/files/patch-ac | 11 - print/lprps-letter/files/patch-ad | 13 - print/lprps-letter/files/patch-ae | 64 ---- print/lprps-letter/pkg-descr | 21 -- print/lprps-letter/pkg-plist | 10 - print/lprps/Makefile | 38 +++ print/lprps/distinfo | 2 + print/lprps/files/patch-Makefile | 59 ++++ print/lprps/files/patch-ae | 64 ++++ print/lprps/files/patch-lprps.c | 60 ++++ print/lprps/files/patch-psif.c | 10 + print/lprps/files/patch-psof.c | 26 ++ print/lprps/files/patch-psrev.c | 31 ++ print/lprps/files/patch-textps.c | 54 ++++ print/lprps/pkg-descr | 21 ++ print/lprps/pkg-plist | 10 + print/xfce4-print/Makefile | 9 +- 62 files changed, 1526 insertions(+), 1075 deletions(-) delete mode 100644 print/a2ps-a4/Makefile delete mode 100644 print/a2ps-letter/Makefile delete mode 100644 print/a2ps-letter/distinfo delete mode 100644 print/a2ps-letter/files/patch-ad delete mode 100644 print/a2ps-letter/files/patch-ae delete mode 100644 print/a2ps-letter/files/patch-contrib-emacs-Makefile.in delete mode 100644 print/a2ps-letter/files/patch-contrib-tmpdircreation delete mode 100644 print/a2ps-letter/files/patch-etc-Makefile.in delete mode 100644 print/a2ps-letter/files/patch-intl-localealias.c delete mode 100644 print/a2ps-letter/files/patch-lib-xgethostname.c delete mode 100644 print/a2ps-letter/files/patch-printers.c delete mode 100644 print/a2ps-letter/files/patch-select.c delete mode 100644 print/a2ps-letter/files/patch-xgethostname.c delete mode 100644 print/a2ps-letter/pkg-descr delete mode 100644 print/a2ps-letter/pkg-plist create mode 100644 print/a2ps/Makefile create mode 100644 print/a2ps/distinfo create mode 100644 print/a2ps/files/patch-ad create mode 100644 print/a2ps/files/patch-ae create mode 100644 print/a2ps/files/patch-contrib-emacs-Makefile.in create mode 100644 print/a2ps/files/patch-contrib-tmpdircreation create mode 100644 print/a2ps/files/patch-etc-Makefile.in create mode 100644 print/a2ps/files/patch-intl-localealias.c create mode 100644 print/a2ps/files/patch-lib-xgethostname.c create mode 100644 print/a2ps/files/patch-printers.c create mode 100644 print/a2ps/files/patch-select.c create mode 100644 print/a2ps/files/patch-xgethostname.c create mode 100644 print/a2ps/pkg-descr create mode 100644 print/a2ps/pkg-plist delete mode 100644 print/c2ps-a4/Makefile delete mode 100644 print/c2ps-letter/Makefile delete mode 100644 print/c2ps-letter/distinfo delete mode 100644 print/c2ps-letter/pkg-descr create mode 100644 print/c2ps/Makefile create mode 100644 print/c2ps/distinfo create mode 100644 print/c2ps/files/patch-Makefile create mode 100644 print/c2ps/files/patch-c2ps.c create mode 100644 print/c2ps/pkg-descr delete mode 100644 print/lprps-a4/Makefile delete mode 100644 print/lprps-letter/Makefile delete mode 100644 print/lprps-letter/distinfo delete mode 100644 print/lprps-letter/files/patch-aa delete mode 100644 print/lprps-letter/files/patch-ab delete mode 100644 print/lprps-letter/files/patch-ac delete mode 100644 print/lprps-letter/files/patch-ad delete mode 100644 print/lprps-letter/files/patch-ae delete mode 100644 print/lprps-letter/pkg-descr delete mode 100644 print/lprps-letter/pkg-plist create mode 100644 print/lprps/Makefile create mode 100644 print/lprps/distinfo create mode 100644 print/lprps/files/patch-Makefile create mode 100644 print/lprps/files/patch-ae create mode 100644 print/lprps/files/patch-lprps.c create mode 100644 print/lprps/files/patch-psif.c create mode 100644 print/lprps/files/patch-psof.c create mode 100644 print/lprps/files/patch-psrev.c create mode 100644 print/lprps/files/patch-textps.c create mode 100644 print/lprps/pkg-descr create mode 100644 print/lprps/pkg-plist (limited to 'print') diff --git a/print/Makefile b/print/Makefile index 667d0557767c..67d1ee635efb 100644 --- a/print/Makefile +++ b/print/Makefile @@ -4,9 +4,7 @@ COMMENT = Desktop publishing SUBDIR += a2pdf - SUBDIR += a2ps-a4 - SUBDIR += a2ps-letter - SUBDIR += a2ps-letterdj + SUBDIR += a2ps SUBDIR += abc2mtex SUBDIR += abcm2ps SUBDIR += abntex @@ -26,8 +24,7 @@ SUBDIR += biblio-py SUBDIR += bibview SUBDIR += bophook - SUBDIR += c2ps-a4 - SUBDIR += c2ps-letter + SUBDIR += c2ps SUBDIR += catdvi SUBDIR += cdlabelgen SUBDIR += cjk-lyx @@ -174,8 +171,7 @@ SUBDIR += linux-f10-cups-libs SUBDIR += lout SUBDIR += lpr-wrapper - SUBDIR += lprps-a4 - SUBDIR += lprps-letter + SUBDIR += lprps SUBDIR += lyx SUBDIR += lyx16 SUBDIR += magicfilter diff --git a/print/a2ps-a4/Makefile b/print/a2ps-a4/Makefile deleted file mode 100644 index b77a60a7d604..000000000000 --- a/print/a2ps-a4/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# Created by: Chuck Robey (chuckr@freebsd.org) -# $FreeBSD$ - -PAPERSIZE= a4 -MASTERDIR= ${.CURDIR}/../a2ps-letter - -.include "${MASTERDIR}/Makefile" diff --git a/print/a2ps-letter/Makefile b/print/a2ps-letter/Makefile deleted file mode 100644 index 64c1d0ff0d68..000000000000 --- a/print/a2ps-letter/Makefile +++ /dev/null @@ -1,110 +0,0 @@ -# Created by: Chuck Robey (chuckr@freebsd.org) -# $FreeBSD$ - -PORTNAME= a2ps -PORTVERSION= 4.13b -PORTREVISION= 4 -CATEGORIES= print -MASTER_SITES= ${MASTER_SITE_GNU} \ - ${MASTER_SITE_LOCAL:S/$/:i18n/} -MASTER_SITE_SUBDIR= ${PORTNAME} hrs/a2ps/:i18n -PKGNAMESUFFIX= -${PAPERSIZE:L}${PKGNAMESUFFIX2} - -MAINTAINER= dinoex@FreeBSD.org -COMMENT= Formats an ASCII file for printing on a postscript printer - -LICENSE= GPLv2 - -USE_PERL5= yes -USE_CSTD= gnu89 -GNU_CONFIGURE= yes -USE_LDCONFIG= yes -MAN1= a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1 psset.1 texi2dvi4a2ps.1 -INFO= a2ps ogonkify regex -WRKSRC= ${WRKDIR}/${PORTNAME}-4.13 -I18N_PACKAGE= i18n-fonts-0.1 -PORTSCOUT= skipv:4.14 - -PAPERSIZE?= letter -PAPERSIZECNF= ${PAPERSIZE:S/l/L/:S/a/A/} -STRIP= -CONFIGURE_ARGS= --with-medium=${PAPERSIZECNF} --sharedstatedir=${PREFIX}/share --sysconfdir=${PREFIX}/etc --datadir=${PREFIX}/share --localstatedir=${PREFIX}/share - -.if ${PAPERSIZE:L} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj -.BEGIN: - @${ECHO_CMD} - @${ECHO_CMD} "PAPERSIZE incorrect value: ${PAPERSIZE}." - @${ECHO_CMD} - @${ECHO_CMD} "Must specify PAPERSIZE as one of a4, letter, or letterdj." - @${ECHO_CMD} "letterdj allows a slightly larger margins for DeskJets." - @${FALSE} -.endif - -.if ${PAPERSIZE:L} == a4 -CONFLICTS?= a2ps-letter-4.* a2ps-letterdj-4.* -.else -.if ${PAPERSIZE:L} == letter -CONFLICTS?= a2ps-a4-4.* a2ps-letterdj-4.* -.else -CONFLICTS?= a2ps-a4-4.* a2ps-letter-4.* -.endif -.endif - -OPTIONS_DEFINE=NLS I18N EMACS -OPTIONS_DEFAULT=NLS -NO_OPTIONS_SORT=yes -EMACS_DESC=Enable Emacs support -I18N_DESC=Enable I18N support - -.include - -.if !defined(WITHOUT_NLS) -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif - -.if ${PORT_OPTIONS:MEMACS} -USE_EMACS= yes -CONFIGURE_ARGS+= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR} -PLIST_SUB+= WITHEMACS="" -.else -CONFIGURE_ENV+= EMACS=no -PLIST_SUB+= WITHEMACS="@comment " -.endif - -.if ${PORT_OPTIONS:MI18N} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${I18N_PACKAGE}${EXTRACT_SUFX}:i18n -PLIST_SUB+= WITHI18N="" - -pre-configure: - @cd ${WRKDIR}/${I18N_PACKAGE}/afm && ${ECHO} *.afm > afms.lst && \ - ${MV} *.afm ${WRKSRC}/afm && cd ../fonts && \ - ${MV} *.pfb ${WRKSRC}/fonts - -post-configure: - @cd ${WRKSRC}/fonts && { ${ECHO} ''; \ - ${ECHO} "pfb_fonts =" *.pfb; } >> Makefile && \ - ${REINPLACE_CMD} 's,^\(fonts_DATA = .*\),\1 $$(pfb_fonts),' Makefile - @cd ${WRKSRC}/afm && { ${ECHO} ''; \ - ${ECHO} "i18n_afms =" `cat ${WRKDIR}/${I18N_PACKAGE}/afm/afms.lst`; } >> Makefile && \ - ${REINPLACE_CMD} 's,^\(all_afms = .*\),\1 $$(i18n_afms),' Makefile -.else -PLIST_SUB+= WITHI18N="@comment " -.endif - -post-install: - ${STRIP_CMD} ${PREFIX}/bin/a2ps -.if ${PORT_OPTIONS:MEMACS} - ${MKDIR} ${PREFIX}/lib/xemacs/site-lisp - ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps-print.el \ - ${PREFIX}/lib/xemacs/site-lisp/a2ps-print.el - ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps.el \ - ${PREFIX}/lib/xemacs/site-lisp/a2ps.el -.endif - (cd ${WRKSRC}/doc; ${MAKE} install) - ${RM} -f ${PREFIX}/lib/liba2ps.la - -.include diff --git a/print/a2ps-letter/distinfo b/print/a2ps-letter/distinfo deleted file mode 100644 index f5a7b78eb097..000000000000 --- a/print/a2ps-letter/distinfo +++ /dev/null @@ -1,4 +0,0 @@ -SHA256 (a2ps-4.13b.tar.gz) = f4d2ac6f09f44eeb82621530b1970afe88fd97cfe82da43b61069800d0c06d12 -SIZE (a2ps-4.13b.tar.gz) = 1944289 -SHA256 (i18n-fonts-0.1.tar.gz) = 20628df682359044b8e5241c97a3c8da7a098aa260a7d281a87f67486a531786 -SIZE (i18n-fonts-0.1.tar.gz) = 352530 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 - #endif - -+#include - #include - - #include -@@ -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; - diff --git a/print/a2ps-letter/pkg-descr b/print/a2ps-letter/pkg-descr deleted file mode 100644 index 2e47ab4fab5b..000000000000 --- a/print/a2ps-letter/pkg-descr +++ /dev/null @@ -1,13 +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. - -Additionally, A2ps "pretty print"s using special fonts for a wide array -of languages, making things like program listings much more legible. - -LICENSE: GPL2 or later - -WWW: http://www.inf.enst.fr/~demaille/a2ps/ diff --git a/print/a2ps-letter/pkg-plist b/print/a2ps-letter/pkg-plist deleted file mode 100644 index 2101bd94764b..000000000000 --- a/print/a2ps-letter/pkg-plist +++ /dev/null @@ -1,294 +0,0 @@ -bin/a2ps -bin/card -bin/composeglyphs -bin/fixnt -bin/fixps -bin/ogonkify -bin/pdiff -bin/psmandup -bin/psset -bin/texi2dvi4a2ps -etc/a2ps-site.cfg -etc/a2ps.cfg -include/liba2ps.h -lib/liba2ps.a -%%DATADIR%%/README -%%DATADIR%%/afm/fonts.map -%%DATADIR%%/afm/make_fonts_map.sh -%%DATADIR%%/afm/pbkd.afm -%%DATADIR%%/afm/pbkdi.afm -%%DATADIR%%/afm/pbkl.afm -%%DATADIR%%/afm/pbkli.afm -%%DATADIR%%/afm/pcfont.afm -%%DATADIR%%/afm/pcrb.afm -%%DATADIR%%/afm/pcrbo.afm -%%DATADIR%%/afm/pcrr.afm -%%DATADIR%%/afm/pcrro.afm -%%DATADIR%%/afm/phvb.afm -%%DATADIR%%/afm/phvbo.afm -%%DATADIR%%/afm/phvbon.afm -%%DATADIR%%/afm/phvbrn.afm -%%DATADIR%%/afm/phvr.afm -%%DATADIR%%/afm/phvro.afm -%%DATADIR%%/afm/phvron.afm -%%DATADIR%%/afm/phvrrn.afm -%%DATADIR%%/afm/pncb.afm -%%DATADIR%%/afm/pncbi.afm -%%DATADIR%%/afm/pncr.afm -%%DATADIR%%/afm/pncri.afm -%%DATADIR%%/afm/pplb.afm -%%DATADIR%%/afm/pplbi.afm -%%DATADIR%%/afm/pplr.afm -%%DATADIR%%/afm/pplri.afm -%%DATADIR%%/afm/psyr.afm -%%DATADIR%%/afm/ptmb.afm -%%DATADIR%%/afm/ptmbi.afm -%%DATADIR%%/afm/ptmi.afm -%%DATADIR%%/afm/ptmr.afm -%%DATADIR%%/afm/pzcmi.afm -%%DATADIR%%/afm/pzdr.afm -%%WITHI18N%%%%DATADIR%%/afm/colle10.afm -%%WITHI18N%%%%DATADIR%%/afm/colle8.afm -%%WITHI18N%%%%DATADIR%%/afm/colle9.afm -%%WITHI18N%%%%DATADIR%%/afm/crr35__i.afm -%%WITHI18N%%%%DATADIR%%/afm/crr36__i.afm -%%WITHI18N%%%%DATADIR%%/afm/crr55__i.afm -%%WITHI18N%%%%DATADIR%%/afm/crr56__i.afm -%%WITHI18N%%%%DATADIR%%/afm/textb18.afm -%%WITHI18N%%%%DATADIR%%/afm/textb19.afm -%%WITHI18N%%%%DATADIR%%/afm/textb20.afm -%%DATADIR%%/encoding/ascii.edf -%%DATADIR%%/encoding/encoding.map -%%DATADIR%%/encoding/hp.edf -%%DATADIR%%/encoding/ibm-cp437.edf -%%DATADIR%%/encoding/ibm-cp850.edf -%%DATADIR%%/encoding/iso1.edf -%%DATADIR%%/encoding/iso10.edf -%%DATADIR%%/encoding/iso13.edf -%%DATADIR%%/encoding/iso15.edf -%%DATADIR%%/encoding/iso2.edf -%%DATADIR%%/encoding/iso3.edf -%%DATADIR%%/encoding/iso4.edf -%%DATADIR%%/encoding/iso5.edf -%%DATADIR%%/encoding/iso7.edf -%%DATADIR%%/encoding/iso9.edf -%%DATADIR%%/encoding/koi8.edf -%%DATADIR%%/encoding/mac.edf -%%DATADIR%%/encoding/ms-cp1250.edf -%%DATADIR%%/fonts/pcfont.pfa -%%WITHI18N%%%%DATADIR%%/fonts/colle10.pfb -%%WITHI18N%%%%DATADIR%%/fonts/colle8.pfb -%%WITHI18N%%%%DATADIR%%/fonts/colle9.pfb -%%WITHI18N%%%%DATADIR%%/fonts/crr35__i.pfb -%%WITHI18N%%%%DATADIR%%/fonts/crr36__i.pfb -%%WITHI18N%%%%DATADIR%%/fonts/crr55__i.pfb -%%WITHI18N%%%%DATADIR%%/fonts/crr56__i.pfb -%%WITHI18N%%%%DATADIR%%/fonts/textb18.pfb -%%WITHI18N%%%%DATADIR%%/fonts/textb19.pfb -%%WITHI18N%%%%DATADIR%%/fonts/textb20.pfb -%%DATADIR%%/ogonkify/README -%%DATADIR%%/ogonkify/adobe.enc -%%DATADIR%%/ogonkify/afm/pcrb-o.afm -%%DATADIR%%/ogonkify/afm/pcrbo-o.afm -%%DATADIR%%/ogonkify/afm/pcrr-o.afm -%%DATADIR%%/ogonkify/afm/pcrro-o.afm -%%DATADIR%%/ogonkify/afm/phvb-o.afm -%%DATADIR%%/ogonkify/afm/phvbo-o.afm -%%DATADIR%%/ogonkify/afm/phvr-o.afm -%%DATADIR%%/ogonkify/afm/phvro-o.afm -%%DATADIR%%/ogonkify/afm/ptmb-o.afm -%%DATADIR%%/ogonkify/afm/ptmbi-o.afm -%%DATADIR%%/ogonkify/afm/ptmr-o.afm -%%DATADIR%%/ogonkify/afm/ptmri-o.afm -%%DATADIR%%/ogonkify/allchars.ps -%%DATADIR%%/ogonkify/ascii.enc -%%DATADIR%%/ogonkify/compose.ps -%%DATADIR%%/ogonkify/cp1250.enc -%%DATADIR%%/ogonkify/fonts/pcrb-o.pfa -%%DATADIR%%/ogonkify/fonts/pcrbo-o.pfa -%%DATADIR%%/ogonkify/fonts/pcrr-o.pfa -%%DATADIR%%/ogonkify/fonts/pcrro-o.pfa -%%DATADIR%%/ogonkify/fonts/phvb-o.pfa -%%DATADIR%%/ogonkify/fonts/phvbo-o.pfa -%%DATADIR%%/ogonkify/fonts/phvr-o.pfa -%%DATADIR%%/ogonkify/fonts/phvro-o.pfa -%%DATADIR%%/ogonkify/fonts/ptmb-o.pfa -%%DATADIR%%/ogonkify/fonts/ptmbi-o.pfa -%%DATADIR%%/ogonkify/fonts/ptmr-o.pfa -%%DATADIR%%/ogonkify/fonts/ptmri-o.pfa -%%DATADIR%%/ogonkify/helper.ps -%%DATADIR%%/ogonkify/hp.enc -%%DATADIR%%/ogonkify/ibmpc.enc -%%DATADIR%%/ogonkify/latin1.enc -%%DATADIR%%/ogonkify/latin2.enc -%%DATADIR%%/ogonkify/latin3.enc -%%DATADIR%%/ogonkify/latin4.enc -%%DATADIR%%/ogonkify/latin5.enc -%%DATADIR%%/ogonkify/latin6.enc -%%DATADIR%%/ogonkify/latin7.enc -%%DATADIR%%/ogonkify/latin9.enc -%%DATADIR%%/ogonkify/mac.enc -%%DATADIR%%/ogonkify/ogonki.enc -%%DATADIR%%/ogonkify/pcrb-o.ps -%%DATADIR%%/ogonkify/pcrbo-o.ps -%%DATADIR%%/ogonkify/pcrr-o.ps -%%DATADIR%%/ogonkify/pcrro-o.ps -%%DATADIR%%/ogonkify/phvb-o.ps -%%DATADIR%%/ogonkify/phvbo-o.ps -%%DATADIR%%/ogonkify/phvr-o.ps -%%DATADIR%%/ogonkify/phvro-o.ps -%%DATADIR%%/ogonkify/printenc.ps -%%DATADIR%%/ogonkify/ptmb-o.ps -%%DATADIR%%/ogonkify/ptmbi-o.ps -%%DATADIR%%/ogonkify/ptmr-o.ps -%%DATADIR%%/ogonkify/ptmri-o.ps -%%DATADIR%%/ppd/README -%%DATADIR%%/ppd/level1.ppd -%%DATADIR%%/ppd/level2.ppd -%%DATADIR%%/ps/a2ps.hdr -%%DATADIR%%/ps/base.ps -%%DATADIR%%/ps/bold.pro -%%DATADIR%%/ps/bw.pro -%%DATADIR%%/ps/color.hdr -%%DATADIR%%/ps/color.pro -%%DATADIR%%/ps/diff.pro -%%DATADIR%%/ps/ehandler.ps -%%DATADIR%%/ps/fixed.pro -%%DATADIR%%/ps/gray.pro -%%DATADIR%%/ps/gray2.pro -%%DATADIR%%/ps/matrix.pro -%%DATADIR%%/ps/ul.pro -%%DATADIR%%/sheets/68000.ssh -%%DATADIR%%/sheets/a2psrc.ssh -%%DATADIR%%/sheets/ada.ssh -%%DATADIR%%/sheets/asn1.ssh -%%DATADIR%%/sheets/autoconf.ssh -%%DATADIR%%/sheets/awk.ssh -%%DATADIR%%/sheets/b.ssh -%%DATADIR%%/sheets/bc.ssh -%%DATADIR%%/sheets/c.ssh -%%DATADIR%%/sheets/caml.ssh -%%DATADIR%%/sheets/card.ssh -%%DATADIR%%/sheets/chlog.ssh -%%DATADIR%%/sheets/cidl.ssh -%%DATADIR%%/sheets/claire.ssh -%%DATADIR%%/sheets/clisp.ssh -%%DATADIR%%/sheets/coqv.ssh -%%DATADIR%%/sheets/cpp.ssh -%%DATADIR%%/sheets/csh.ssh -%%DATADIR%%/sheets/cxx.ssh -%%DATADIR%%/sheets/dc_shell.ssh -%%DATADIR%%/sheets/eiffel.ssh -%%DATADIR%%/sheets/elisp.ssh -%%DATADIR%%/sheets/eps.ssh -%%DATADIR%%/sheets/for-fixed.ssh -%%DATADIR%%/sheets/for-free.ssh -%%DATADIR%%/sheets/for77-fixed.ssh -%%DATADIR%%/sheets/for77-free.ssh -%%DATADIR%%/sheets/for77kwds.ssh -%%DATADIR%%/sheets/for90-fixed.ssh -%%DATADIR%%/sheets/for90-free.ssh -%%DATADIR%%/sheets/for90kwds.ssh -%%DATADIR%%/sheets/fortran.ssh -%%DATADIR%%/sheets/gmake.ssh -%%DATADIR%%/sheets/gnuc.ssh -%%DATADIR%%/sheets/haskell.ssh -%%DATADIR%%/sheets/html.ssh -%%DATADIR%%/sheets/idl.ssh -%%DATADIR%%/sheets/initora.ssh -%%DATADIR%%/sheets/is5rul.ssh -%%DATADIR%%/sheets/java.ssh -%%DATADIR%%/sheets/js.ssh -%%DATADIR%%/sheets/lace.ssh -%%DATADIR%%/sheets/lex.ssh -%%DATADIR%%/sheets/lout.ssh -%%DATADIR%%/sheets/mail.ssh -%%DATADIR%%/sheets/make.ssh -%%DATADIR%%/sheets/maple.ssh -%%DATADIR%%/sheets/matlab4.ssh -%%DATADIR%%/sheets/mib.ssh -%%DATADIR%%/sheets/mly.ssh -%%DATADIR%%/sheets/modula2.ssh -%%DATADIR%%/sheets/modula3.ssh -%%DATADIR%%/sheets/o2c.ssh -%%DATADIR%%/sheets/oberon.ssh -%%DATADIR%%/sheets/objc.ssh -%%DATADIR%%/sheets/ocaml.ssh -%%DATADIR%%/sheets/octave.ssh -%%DATADIR%%/sheets/oracle.ssh -%%DATADIR%%/sheets/pascal.ssh -%%DATADIR%%/sheets/perl.ssh -%%DATADIR%%/sheets/plsql.ssh -%%DATADIR%%/sheets/pov.ssh -%%DATADIR%%/sheets/ppd.ssh -%%DATADIR%%/sheets/pre.ssh -%%DATADIR%%/sheets/pretex.ssh -%%DATADIR%%/sheets/prolog.ssh -%%DATADIR%%/sheets/promela.ssh -%%DATADIR%%/sheets/ps.ssh -%%DATADIR%%/sheets/python.ssh -%%DATADIR%%/sheets/rexx.ssh -%%DATADIR%%/sheets/sather.ssh -%%DATADIR%%/sheets/scheme.ssh -%%DATADIR%%/sheets/sdl88.ssh -%%DATADIR%%/sheets/sed.ssh -%%DATADIR%%/sheets/sh.ssh -%%DATADIR%%/sheets/sheets.map -%%DATADIR%%/sheets/shell.ssh -%%DATADIR%%/sheets/sml.ssh -%%DATADIR%%/sheets/sql.ssh -%%DATADIR%%/sheets/sql92.ssh -%%DATADIR%%/sheets/ssh.ssh -%%DATADIR%%/sheets/symbols.ssh -%%DATADIR%%/sheets/tcl.ssh -%%DATADIR%%/sheets/tclx.ssh -%%DATADIR%%/sheets/tcsh.ssh -%%DATADIR%%/sheets/tex.ssh -%%DATADIR%%/sheets/texinfo.ssh -%%DATADIR%%/sheets/texscript.ssh -%%DATADIR%%/sheets/tiger.ssh -%%DATADIR%%/sheets/tk.ssh -%%DATADIR%%/sheets/udiff.ssh -%%DATADIR%%/sheets/unity.ssh -%%DATADIR%%/sheets/vba.ssh -%%DATADIR%%/sheets/verilog.ssh -%%DATADIR%%/sheets/vhdl.ssh -%%DATADIR%%/sheets/vrml.ssh -%%DATADIR%%/sheets/vtcl.ssh -%%DATADIR%%/sheets/wdiff.ssh -%%DATADIR%%/sheets/xs.ssh -%%DATADIR%%/sheets/yacc.ssh -%%DATADIR%%/sheets/zsh.ssh -%%NLS%%share/locale/ca/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/cs/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/da/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/de/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/es/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/et/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/fr/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/it/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/ko/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/nl/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/no/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/pl/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/pt/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/ru/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/sl/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/sv/LC_MESSAGES/a2ps.mo -%%NLS%%share/locale/tr/LC_MESSAGES/a2ps.mo -%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.el -%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.elc -%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.el -%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.elc -@dirrm %%DATADIR%%/ogonkify/fonts -@dirrm %%DATADIR%%/ogonkify/afm -@dirrm %%DATADIR%%/ogonkify -@dirrm %%DATADIR%%/ps -@dirrm %%DATADIR%%/ppd -@dirrm %%DATADIR%%/sheets -@dirrm %%DATADIR%%/fonts -@dirrm %%DATADIR%%/encoding -@dirrm %%DATADIR%%/afm -@dirrm %%DATADIR%% -%%WITHEMACS%%@dirrm lib/xemacs/site-lisp -%%WITHEMACS%%@dirrm lib/xemacs diff --git a/print/a2ps/Makefile b/print/a2ps/Makefile new file mode 100644 index 000000000000..9f0eab002d5b --- /dev/null +++ b/print/a2ps/Makefile @@ -0,0 +1,102 @@ +# Created by: Chuck Robey +# $FreeBSD$ + +PORTNAME= a2ps +PORTVERSION= 4.13b +PORTREVISION= 5 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_GNU} \ + ${MASTER_SITE_LOCAL:S/$/:i18n/} +MASTER_SITE_SUBDIR= ${PORTNAME} hrs/a2ps/:i18n + +MAINTAINER= dinoex@FreeBSD.org +COMMENT= Formats an ASCII file for printing on a postscript printer + +LICENSE= GPLv2 + +LIB_DEPENDS= paper:${PORTSDIR}/print/libpaper + +USE_PERL5= yes +USE_CSTD= gnu89 +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +MAN1= a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1 psset.1 \ + texi2dvi4a2ps.1 +INFO= a2ps ogonkify regex +WRKSRC= ${WRKDIR}/${PORTNAME}-4.13 +I18N_PACKAGE= i18n-fonts-0.1 +PORTSCOUT= skipv:4.14 + +STRIP= +CONFIGURE_ARGS= --with-medium=libpaper --sharedstatedir=${PREFIX}/share \ + --sysconfdir=${PREFIX}/etc --datadir=${PREFIX}/share \ + --localstatedir=${PREFIX}/share +CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" +MAKE_JOBS_SAFE= yes + +PAPERSIZE?= +.if ${PAPERSIZE:L} == a4 +RUN_DEPENDS+= ${LOCALBASE}/etc/papersize:${PORTSDIR}/print/papersize-default-a4 +.endif + +OPTIONS_DEFINE=NLS I18N EMACS +OPTIONS_DEFAULT=NLS +NO_OPTIONS_SORT=yes +EMACS_DESC=Enable Emacs support +I18N_DESC=Enable I18N support + +.include + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.endif + +.if ${PORT_OPTIONS:MEMACS} +USE_EMACS= yes +CONFIGURE_ARGS+= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR} +PLIST_SUB+= WITHEMACS="" +.else +CONFIGURE_ENV+= EMACS=no +PLIST_SUB+= WITHEMACS="@comment " +.endif + +.if ${PORT_OPTIONS:MI18N} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${I18N_PACKAGE}${EXTRACT_SUFX}:i18n +PLIST_SUB+= WITHI18N="" + +pre-configure: + cd ${WRKDIR}/${I18N_PACKAGE}/afm && \ + ${ECHO_CMD} *.afm > afms.lst && \ + ${MV} *.afm ${WRKSRC}/afm + cd ${WRKDIR}/${I18N_PACKAGE}/fonts && \ + ${MV} *.pfb ${WRKSRC}/fonts + +post-configure: + @cd ${WRKSRC}/fonts && { ${ECHO_CMD} ''; \ + ${ECHO_CMD} "pfb_fonts =" *.pfb; } >> Makefile && \ + ${REINPLACE_CMD} 's,^\(fonts_DATA = .*\),\1 $$(pfb_fonts),' Makefile + @cd ${WRKSRC}/afm && { ${ECHO} ''; \ + ${ECHO} "i18n_afms =" `cat ${WRKDIR}/${I18N_PACKAGE}/afm/afms.lst`; } >> Makefile && \ + ${REINPLACE_CMD} 's,^\(all_afms = .*\),\1 $$(i18n_afms),' Makefile +.else +PLIST_SUB+= WITHI18N="@comment " +.endif + +post-install: + ${STRIP_CMD} ${PREFIX}/bin/a2ps +.if ${PORT_OPTIONS:MEMACS} + ${MKDIR} ${PREFIX}/lib/xemacs/site-lisp + ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps-print.el \ + ${PREFIX}/lib/xemacs/site-lisp/a2ps-print.el + ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps.el \ + ${PREFIX}/lib/xemacs/site-lisp/a2ps.el +.endif + cd ${WRKSRC}/doc && \ + ${SETENV} ${MAKE_ENV} ${MAKE} ${.MAKEFLAGS} ${INSTALL_TARGET} + ${RM} -f ${PREFIX}/lib/liba2ps.la + +.include diff --git a/print/a2ps/distinfo b/print/a2ps/distinfo new file mode 100644 index 000000000000..f5a7b78eb097 --- /dev/null +++ b/print/a2ps/distinfo @@ -0,0 +1,4 @@ +SHA256 (a2ps-4.13b.tar.gz) = f4d2ac6f09f44eeb82621530b1970afe88fd97cfe82da43b61069800d0c06d12 +SIZE (a2ps-4.13b.tar.gz) = 1944289 +SHA256 (i18n-fonts-0.1.tar.gz) = 20628df682359044b8e5241c97a3c8da7a098aa260a7d281a87f67486a531786 +SIZE (i18n-fonts-0.1.tar.gz) = 352530 diff --git a/print/a2ps/files/patch-ad b/print/a2ps/files/patch-ad new file mode 100644 index 000000000000..4b8428030547 --- /dev/null +++ b/print/a2ps/files/patch-ad @@ -0,0 +1,11 @@ +--- 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/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; + } diff --git a/print/a2ps/files/patch-contrib-emacs-Makefile.in b/print/a2ps/files/patch-contrib-emacs-Makefile.in new file mode 100644 index 000000000000..c1dab47d2a50 --- /dev/null +++ b/print/a2ps/files/patch-contrib-emacs-Makefile.in @@ -0,0 +1,25 @@ +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/files/patch-contrib-tmpdircreation b/print/a2ps/files/patch-contrib-tmpdircreation new file mode 100644 index 000000000000..e47e97120ad4 --- /dev/null +++ b/print/a2ps/files/patch-contrib-tmpdircreation @@ -0,0 +1,116 @@ +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/files/patch-etc-Makefile.in b/print/a2ps/files/patch-etc-Makefile.in new file mode 100644 index 000000000000..6dddd830dcbf --- /dev/null +++ b/print/a2ps/files/patch-etc-Makefile.in @@ -0,0 +1,11 @@ +--- 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/files/patch-intl-localealias.c b/print/a2ps/files/patch-intl-localealias.c new file mode 100644 index 000000000000..074a19569ca5 --- /dev/null +++ b/print/a2ps/files/patch-intl-localealias.c @@ -0,0 +1,20 @@ +--- 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/files/patch-lib-xgethostname.c b/print/a2ps/files/patch-lib-xgethostname.c new file mode 100644 index 000000000000..06312ddf88e3 --- /dev/null +++ b/print/a2ps/files/patch-lib-xgethostname.c @@ -0,0 +1,19 @@ +--- 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 + #endif + ++#include + #include + + #include +@@ -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/files/patch-printers.c b/print/a2ps/files/patch-printers.c new file mode 100644 index 000000000000..943fc6445a24 --- /dev/null +++ b/print/a2ps/files/patch-printers.c @@ -0,0 +1,13 @@ +--- 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/files/patch-select.c b/print/a2ps/files/patch-select.c new file mode 100644 index 000000000000..a2c38898fdc6 --- /dev/null +++ b/print/a2ps/files/patch-select.c @@ -0,0 +1,57 @@ +--- 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/files/patch-xgethostname.c b/print/a2ps/files/patch-xgethostname.c new file mode 100644 index 000000000000..bfc7c33e0a6d --- /dev/null +++ b/print/a2ps/files/patch-xgethostname.c @@ -0,0 +1,12 @@ +--- 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; + diff --git a/print/a2ps/pkg-descr b/print/a2ps/pkg-descr new file mode 100644 index 000000000000..2e47ab4fab5b --- /dev/null +++ b/print/a2ps/pkg-descr @@ -0,0 +1,13 @@ +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. + +Additionally, A2ps "pretty print"s using special fonts for a wide array +of languages, making things like program listings much more legible. + +LICENSE: GPL2 or later + +WWW: http://www.inf.enst.fr/~demaille/a2ps/ diff --git a/print/a2ps/pkg-plist b/print/a2ps/pkg-plist new file mode 100644 index 000000000000..2101bd94764b --- /dev/null +++ b/print/a2ps/pkg-plist @@ -0,0 +1,294 @@ +bin/a2ps +bin/card +bin/composeglyphs +bin/fixnt +bin/fixps +bin/ogonkify +bin/pdiff +bin/psmandup +bin/psset +bin/texi2dvi4a2ps +etc/a2ps-site.cfg +etc/a2ps.cfg +include/liba2ps.h +lib/liba2ps.a +%%DATADIR%%/README +%%DATADIR%%/afm/fonts.map +%%DATADIR%%/afm/make_fonts_map.sh +%%DATADIR%%/afm/pbkd.afm +%%DATADIR%%/afm/pbkdi.afm +%%DATADIR%%/afm/pbkl.afm +%%DATADIR%%/afm/pbkli.afm +%%DATADIR%%/afm/pcfont.afm +%%DATADIR%%/afm/pcrb.afm +%%DATADIR%%/afm/pcrbo.afm +%%DATADIR%%/afm/pcrr.afm +%%DATADIR%%/afm/pcrro.afm +%%DATADIR%%/afm/phvb.afm +%%DATADIR%%/afm/phvbo.afm +%%DATADIR%%/afm/phvbon.afm +%%DATADIR%%/afm/phvbrn.afm +%%DATADIR%%/afm/phvr.afm +%%DATADIR%%/afm/phvro.afm +%%DATADIR%%/afm/phvron.afm +%%DATADIR%%/afm/phvrrn.afm +%%DATADIR%%/afm/pncb.afm +%%DATADIR%%/afm/pncbi.afm +%%DATADIR%%/afm/pncr.afm +%%DATADIR%%/afm/pncri.afm +%%DATADIR%%/afm/pplb.afm +%%DATADIR%%/afm/pplbi.afm +%%DATADIR%%/afm/pplr.afm +%%DATADIR%%/afm/pplri.afm +%%DATADIR%%/afm/psyr.afm +%%DATADIR%%/afm/ptmb.afm +%%DATADIR%%/afm/ptmbi.afm +%%DATADIR%%/afm/ptmi.afm +%%DATADIR%%/afm/ptmr.afm +%%DATADIR%%/afm/pzcmi.afm +%%DATADIR%%/afm/pzdr.afm +%%WITHI18N%%%%DATADIR%%/afm/colle10.afm +%%WITHI18N%%%%DATADIR%%/afm/colle8.afm +%%WITHI18N%%%%DATADIR%%/afm/colle9.afm +%%WITHI18N%%%%DATADIR%%/afm/crr35__i.afm +%%WITHI18N%%%%DATADIR%%/afm/crr36__i.afm +%%WITHI18N%%%%DATADIR%%/afm/crr55__i.afm +%%WITHI18N%%%%DATADIR%%/afm/crr56__i.afm +%%WITHI18N%%%%DATADIR%%/afm/textb18.afm +%%WITHI18N%%%%DATADIR%%/afm/textb19.afm +%%WITHI18N%%%%DATADIR%%/afm/textb20.afm +%%DATADIR%%/encoding/ascii.edf +%%DATADIR%%/encoding/encoding.map +%%DATADIR%%/encoding/hp.edf +%%DATADIR%%/encoding/ibm-cp437.edf +%%DATADIR%%/encoding/ibm-cp850.edf +%%DATADIR%%/encoding/iso1.edf +%%DATADIR%%/encoding/iso10.edf +%%DATADIR%%/encoding/iso13.edf +%%DATADIR%%/encoding/iso15.edf +%%DATADIR%%/encoding/iso2.edf +%%DATADIR%%/encoding/iso3.edf +%%DATADIR%%/encoding/iso4.edf +%%DATADIR%%/encoding/iso5.edf +%%DATADIR%%/encoding/iso7.edf +%%DATADIR%%/encoding/iso9.edf +%%DATADIR%%/encoding/koi8.edf +%%DATADIR%%/encoding/mac.edf +%%DATADIR%%/encoding/ms-cp1250.edf +%%DATADIR%%/fonts/pcfont.pfa +%%WITHI18N%%%%DATADIR%%/fonts/colle10.pfb +%%WITHI18N%%%%DATADIR%%/fonts/colle8.pfb +%%WITHI18N%%%%DATADIR%%/fonts/colle9.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr35__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr36__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr55__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr56__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/textb18.pfb +%%WITHI18N%%%%DATADIR%%/fonts/textb19.pfb +%%WITHI18N%%%%DATADIR%%/fonts/textb20.pfb +%%DATADIR%%/ogonkify/README +%%DATADIR%%/ogonkify/adobe.enc +%%DATADIR%%/ogonkify/afm/pcrb-o.afm +%%DATADIR%%/ogonkify/afm/pcrbo-o.afm +%%DATADIR%%/ogonkify/afm/pcrr-o.afm +%%DATADIR%%/ogonkify/afm/pcrro-o.afm +%%DATADIR%%/ogonkify/afm/phvb-o.afm +%%DATADIR%%/ogonkify/afm/phvbo-o.afm +%%DATADIR%%/ogonkify/afm/phvr-o.afm +%%DATADIR%%/ogonkify/afm/phvro-o.afm +%%DATADIR%%/ogonkify/afm/ptmb-o.afm +%%DATADIR%%/ogonkify/afm/ptmbi-o.afm +%%DATADIR%%/ogonkify/afm/ptmr-o.afm +%%DATADIR%%/ogonkify/afm/ptmri-o.afm +%%DATADIR%%/ogonkify/allchars.ps +%%DATADIR%%/ogonkify/ascii.enc +%%DATADIR%%/ogonkify/compose.ps +%%DATADIR%%/ogonkify/cp1250.enc +%%DATADIR%%/ogonkify/fonts/pcrb-o.pfa +%%DATADIR%%/ogonkify/fonts/pcrbo-o.pfa +%%DATADIR%%/ogonkify/fonts/pcrr-o.pfa +%%DATADIR%%/ogonkify/fonts/pcrro-o.pfa +%%DATADIR%%/ogonkify/fonts/phvb-o.pfa +%%DATADIR%%/ogonkify/fonts/phvbo-o.pfa +%%DATADIR%%/ogonkify/fonts/phvr-o.pfa +%%DATADIR%%/ogonkify/fonts/phvro-o.pfa +%%DATADIR%%/ogonkify/fonts/ptmb-o.pfa +%%DATADIR%%/ogonkify/fonts/ptmbi-o.pfa +%%DATADIR%%/ogonkify/fonts/ptmr-o.pfa +%%DATADIR%%/ogonkify/fonts/ptmri-o.pfa +%%DATADIR%%/ogonkify/helper.ps +%%DATADIR%%/ogonkify/hp.enc +%%DATADIR%%/ogonkify/ibmpc.enc +%%DATADIR%%/ogonkify/latin1.enc +%%DATADIR%%/ogonkify/latin2.enc +%%DATADIR%%/ogonkify/latin3.enc +%%DATADIR%%/ogonkify/latin4.enc +%%DATADIR%%/ogonkify/latin5.enc +%%DATADIR%%/ogonkify/latin6.enc +%%DATADIR%%/ogonkify/latin7.enc +%%DATADIR%%/ogonkify/latin9.enc +%%DATADIR%%/ogonkify/mac.enc +%%DATADIR%%/ogonkify/ogonki.enc +%%DATADIR%%/ogonkify/pcrb-o.ps +%%DATADIR%%/ogonkify/pcrbo-o.ps +%%DATADIR%%/ogonkify/pcrr-o.ps +%%DATADIR%%/ogonkify/pcrro-o.ps +%%DATADIR%%/ogonkify/phvb-o.ps +%%DATADIR%%/ogonkify/phvbo-o.ps +%%DATADIR%%/ogonkify/phvr-o.ps +%%DATADIR%%/ogonkify/phvro-o.ps +%%DATADIR%%/ogonkify/printenc.ps +%%DATADIR%%/ogonkify/ptmb-o.ps +%%DATADIR%%/ogonkify/ptmbi-o.ps +%%DATADIR%%/ogonkify/ptmr-o.ps +%%DATADIR%%/ogonkify/ptmri-o.ps +%%DATADIR%%/ppd/README +%%DATADIR%%/ppd/level1.ppd +%%DATADIR%%/ppd/level2.ppd +%%DATADIR%%/ps/a2ps.hdr +%%DATADIR%%/ps/base.ps +%%DATADIR%%/ps/bold.pro +%%DATADIR%%/ps/bw.pro +%%DATADIR%%/ps/color.hdr +%%DATADIR%%/ps/color.pro +%%DATADIR%%/ps/diff.pro +%%DATADIR%%/ps/ehandler.ps +%%DATADIR%%/ps/fixed.pro +%%DATADIR%%/ps/gray.pro +%%DATADIR%%/ps/gray2.pro +%%DATADIR%%/ps/matrix.pro +%%DATADIR%%/ps/ul.pro +%%DATADIR%%/sheets/68000.ssh +%%DATADIR%%/sheets/a2psrc.ssh +%%DATADIR%%/sheets/ada.ssh +%%DATADIR%%/sheets/asn1.ssh +%%DATADIR%%/sheets/autoconf.ssh +%%DATADIR%%/sheets/awk.ssh +%%DATADIR%%/sheets/b.ssh +%%DATADIR%%/sheets/bc.ssh +%%DATADIR%%/sheets/c.ssh +%%DATADIR%%/sheets/caml.ssh +%%DATADIR%%/sheets/card.ssh +%%DATADIR%%/sheets/chlog.ssh +%%DATADIR%%/sheets/cidl.ssh +%%DATADIR%%/sheets/claire.ssh +%%DATADIR%%/sheets/clisp.ssh +%%DATADIR%%/sheets/coqv.ssh +%%DATADIR%%/sheets/cpp.ssh +%%DATADIR%%/sheets/csh.ssh +%%DATADIR%%/sheets/cxx.ssh +%%DATADIR%%/sheets/dc_shell.ssh +%%DATADIR%%/sheets/eiffel.ssh +%%DATADIR%%/sheets/elisp.ssh +%%DATADIR%%/sheets/eps.ssh +%%DATADIR%%/sheets/for-fixed.ssh +%%DATADIR%%/sheets/for-free.ssh +%%DATADIR%%/sheets/for77-fixed.ssh +%%DATADIR%%/sheets/for77-free.ssh +%%DATADIR%%/sheets/for77kwds.ssh +%%DATADIR%%/sheets/for90-fixed.ssh +%%DATADIR%%/sheets/for90-free.ssh +%%DATADIR%%/sheets/for90kwds.ssh +%%DATADIR%%/sheets/fortran.ssh +%%DATADIR%%/sheets/gmake.ssh +%%DATADIR%%/sheets/gnuc.ssh +%%DATADIR%%/sheets/haskell.ssh +%%DATADIR%%/sheets/html.ssh +%%DATADIR%%/sheets/idl.ssh +%%DATADIR%%/sheets/initora.ssh +%%DATADIR%%/sheets/is5rul.ssh +%%DATADIR%%/sheets/java.ssh +%%DATADIR%%/sheets/js.ssh +%%DATADIR%%/sheets/lace.ssh +%%DATADIR%%/sheets/lex.ssh +%%DATADIR%%/sheets/lout.ssh +%%DATADIR%%/sheets/mail.ssh +%%DATADIR%%/sheets/make.ssh +%%DATADIR%%/sheets/maple.ssh +%%DATADIR%%/sheets/matlab4.ssh +%%DATADIR%%/sheets/mib.ssh +%%DATADIR%%/sheets/mly.ssh +%%DATADIR%%/sheets/modula2.ssh +%%DATADIR%%/sheets/modula3.ssh +%%DATADIR%%/sheets/o2c.ssh +%%DATADIR%%/sheets/oberon.ssh +%%DATADIR%%/sheets/objc.ssh +%%DATADIR%%/sheets/ocaml.ssh +%%DATADIR%%/sheets/octave.ssh +%%DATADIR%%/sheets/oracle.ssh +%%DATADIR%%/sheets/pascal.ssh +%%DATADIR%%/sheets/perl.ssh +%%DATADIR%%/sheets/plsql.ssh +%%DATADIR%%/sheets/pov.ssh +%%DATADIR%%/sheets/ppd.ssh +%%DATADIR%%/sheets/pre.ssh +%%DATADIR%%/sheets/pretex.ssh +%%DATADIR%%/sheets/prolog.ssh +%%DATADIR%%/sheets/promela.ssh +%%DATADIR%%/sheets/ps.ssh +%%DATADIR%%/sheets/python.ssh +%%DATADIR%%/sheets/rexx.ssh +%%DATADIR%%/sheets/sather.ssh +%%DATADIR%%/sheets/scheme.ssh +%%DATADIR%%/sheets/sdl88.ssh +%%DATADIR%%/sheets/sed.ssh +%%DATADIR%%/sheets/sh.ssh +%%DATADIR%%/sheets/sheets.map +%%DATADIR%%/sheets/shell.ssh +%%DATADIR%%/sheets/sml.ssh +%%DATADIR%%/sheets/sql.ssh +%%DATADIR%%/sheets/sql92.ssh +%%DATADIR%%/sheets/ssh.ssh +%%DATADIR%%/sheets/symbols.ssh +%%DATADIR%%/sheets/tcl.ssh +%%DATADIR%%/sheets/tclx.ssh +%%DATADIR%%/sheets/tcsh.ssh +%%DATADIR%%/sheets/tex.ssh +%%DATADIR%%/sheets/texinfo.ssh +%%DATADIR%%/sheets/texscript.ssh +%%DATADIR%%/sheets/tiger.ssh +%%DATADIR%%/sheets/tk.ssh +%%DATADIR%%/sheets/udiff.ssh +%%DATADIR%%/sheets/unity.ssh +%%DATADIR%%/sheets/vba.ssh +%%DATADIR%%/sheets/verilog.ssh +%%DATADIR%%/sheets/vhdl.ssh +%%DATADIR%%/sheets/vrml.ssh +%%DATADIR%%/sheets/vtcl.ssh +%%DATADIR%%/sheets/wdiff.ssh +%%DATADIR%%/sheets/xs.ssh +%%DATADIR%%/sheets/yacc.ssh +%%DATADIR%%/sheets/zsh.ssh +%%NLS%%share/locale/ca/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/cs/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/da/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/de/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/es/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/et/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/fr/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/it/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/ko/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/nl/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/no/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/pl/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/pt/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/ru/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/sl/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/sv/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/tr/LC_MESSAGES/a2ps.mo +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.el +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.elc +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.el +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.elc +@dirrm %%DATADIR%%/ogonkify/fonts +@dirrm %%DATADIR%%/ogonkify/afm +@dirrm %%DATADIR%%/ogonkify +@dirrm %%DATADIR%%/ps +@dirrm %%DATADIR%%/ppd +@dirrm %%DATADIR%%/sheets +@dirrm %%DATADIR%%/fonts +@dirrm %%DATADIR%%/encoding +@dirrm %%DATADIR%%/afm +@dirrm %%DATADIR%% +%%WITHEMACS%%@dirrm lib/xemacs/site-lisp +%%WITHEMACS%%@dirrm lib/xemacs diff --git a/print/c2ps-a4/Makefile b/print/c2ps-a4/Makefile deleted file mode 100644 index 6d36211a9d53..000000000000 --- a/print/c2ps-a4/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# New ports collection makefile for: c2ps (a4) -# Date created: 19 March 1997 -# Whom: Matthew Hunt -# -# $FreeBSD$ -# - -PAPERSIZE= a4 -MASTERDIR= ${.CURDIR}/../c2ps-letter - -.include "${MASTERDIR}/Makefile" diff --git a/print/c2ps-letter/Makefile b/print/c2ps-letter/Makefile deleted file mode 100644 index b356ca625409..000000000000 --- a/print/c2ps-letter/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# New ports collection makefile for: c2ps (letter) -# Date created: 19 March 1997 -# Whom: Matthew Hunt -# -# $FreeBSD$ -# - -PORTNAME= c2ps-${PAPERSIZE} -PORTVERSION= 4.0 -PORTREVISION= 1 -CATEGORIES= print -MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/ -DISTNAME= c2ps-${PORTVERSION} - -MAINTAINER= ports@FreeBSD.org -COMMENT= A PostScript pretty-printer for C source - -MAKE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \ - DEFAULT_PAPER_TYPE="${PS}" - -MAN1= c2ps.1 -PLIST_FILES= bin/c2ps - -PAPERSIZE?= letter -PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}' -.if ${PAPERSIZE:L} != a4 && ${PAPERSIZE:L} != letter -.BEGIN: - @${ECHO_MSG} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @${ECHO_MSG} "Possible values are: a4, and letter." - @${FALSE} -.endif - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/c2ps ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/c2ps.1 ${MANPREFIX}/man/man1 - -.include diff --git a/print/c2ps-letter/distinfo b/print/c2ps-letter/distinfo deleted file mode 100644 index d7c3c78e5140..000000000000 --- a/print/c2ps-letter/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (c2ps-4.0.tar.gz) = c22800552b6018a7f01978cf918ad11ec780404b3fa87888e76929a08414a860 -SIZE (c2ps-4.0.tar.gz) = 48137 diff --git a/print/c2ps-letter/pkg-descr b/print/c2ps-letter/pkg-descr deleted file mode 100644 index f2e8a59364d6..000000000000 --- a/print/c2ps-letter/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -A PostScript pretty-printer for C source with numerous features. - -Released under the GPL by Dmitri Shtilman -and Dmitri Makarov . - -WWW: http://www.cs.technion.ac.il/users/c2ps/ diff --git a/print/c2ps/Makefile b/print/c2ps/Makefile new file mode 100644 index 000000000000..ef5170f6aecb --- /dev/null +++ b/print/c2ps/Makefile @@ -0,0 +1,22 @@ +# Created by: Matthew Hunt +# $FreeBSD$ + +PORTNAME= c2ps +PORTVERSION= 4.0 +PORTREVISION= 2 +CATEGORIES= print +MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/ +DISTNAME= c2ps-${PORTVERSION} + +MAINTAINER= hrs@FreeBSD.org +COMMENT= A PostScript pretty-printer for C source + +CFLAGS+= -g -I${LOCALBASE}/include +MAN1= c2ps.1 +PLIST_FILES= bin/c2ps + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/c2ps ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/c2ps.1 ${MANPREFIX}/man/man1 + +.include diff --git a/print/c2ps/distinfo b/print/c2ps/distinfo new file mode 100644 index 000000000000..d7c3c78e5140 --- /dev/null +++ b/print/c2ps/distinfo @@ -0,0 +1,2 @@ +SHA256 (c2ps-4.0.tar.gz) = c22800552b6018a7f01978cf918ad11ec780404b3fa87888e76929a08414a860 +SIZE (c2ps-4.0.tar.gz) = 48137 diff --git a/print/c2ps/files/patch-Makefile b/print/c2ps/files/patch-Makefile new file mode 100644 index 000000000000..602ed394d712 --- /dev/null +++ b/print/c2ps/files/patch-Makefile @@ -0,0 +1,47 @@ +--- Makefile.orig 1997-05-16 00:50:56.000000000 +0900 ++++ Makefile 2013-04-27 18:57:47.000000000 +0900 +@@ -2,12 +2,12 @@ + # Last modified: Sat Apr 19 1997 + + RM = rm -f +-CC = gcc +-CCFLAGS = -O ++CC? = gcc ++CCFLAGS?= -O + +-PREFIX = /usr/local ++PREFIX?= /usr/local + BIN = $(PREFIX)/bin +-MAN = $(PREFIX)/man/man1 ++MAN = ${MAN1PREFIX}/man/man1 + + # you may predefine some of the default settings + DEFAULT_FONT = \"Courier\" +@@ -31,23 +31,20 @@ + -DSTRINGS=$(STRINGS_FONT) -DPREPROC=$(PREPROC_FONT)\ + -DKEYWORD=$(KEYWORD_FONT) -DTYPE=$(TYPE_FONT)\ + -DLNUMBER=$(LNUMBER_FONT) -DFUNCTION=$(FUNCTION_FONT)\ +- -DDIM=$(COMMENT_DIMMING_DEGREE)\ +- -D$(DEFAULT_PAPER_TYPE) ++ -DDIM=$(COMMENT_DIMMING_DEGREE) + + all: compile + + install: bininstall maninstall + + bininstall: c2ps +- install -m 755 c2ps $(BIN) ++ ${BSD_INSTALL_PROGRAM} c2ps $(BIN) + + maninstall: c2ps.1 +- install -m 644 c2ps.1 $(MAN) ++ ${BSD_INSTALL_DATA} c2ps.1 $(MAN) + + compile: c2ps.c +- $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c ++ $(CC) $(PREP_OPTIONS) $(CFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper + + clean: + $(RM) c2ps *.o core *~ +- +- diff --git a/print/c2ps/files/patch-c2ps.c b/print/c2ps/files/patch-c2ps.c new file mode 100644 index 000000000000..04eddfb73978 --- /dev/null +++ b/print/c2ps/files/patch-c2ps.c @@ -0,0 +1,346 @@ +--- c2ps.c.orig 1997-05-19 21:43:04.000000000 +0900 ++++ c2ps.c 2013-04-27 18:55:52.000000000 +0900 +@@ -45,7 +45,6 @@ + + + +-#line 2 "c2ps.c" + #define FLEX_SCANNER + #define YY_FLEX_MAJOR_VERSION 2 + #define YY_FLEX_MINOR_VERSION 5 +@@ -1641,9 +1640,7 @@ + #define yymore() (yy_more_flag = 1) + #define YY_MORE_ADJ yy_more_len + char *yytext; +-#line 1 "l1.m" + #define INITIAL 0 +-#line 2 "l1.m" + #define VERSION "4.0" + + #ifndef DEFAULT +@@ -1673,11 +1670,6 @@ + #ifndef DIM + #define DIM 0.75 + #endif +-#ifdef LETTER +-#define LETTER 1 +-#else +-#define LETTER 0 +-#endif + + #define ISO "\n"\ + "%%%%BeginProlog \n"\ +@@ -1829,6 +1821,14 @@ + #include + #include + ++#include ++#include ++ ++struct { ++ char *name; ++ int width, height; ++} pspec; ++ + FILE* out; /* output stream */ + + struct fun { /* strucure to hold info about fun id definition */ +@@ -1845,7 +1845,6 @@ + unsigned line_cut = 0; /* global: cut long lines */ + unsigned ppl = 1; /* global: columns per page */ + unsigned lpp = 0; /* global: lines per page */ +-unsigned letter = LETTER; /* global: use letter paper type */ + unsigned frame = 0; /* global: draw frame around each column */ + unsigned iso = 1; /* global: support ISO Latin 1 encoding */ + unsigned last_modified = 1; /* global: print the time when file was last modified */ +@@ -1929,7 +1928,6 @@ + + #define dont_highlight 4 + +-#line 1892 "c2ps.c" + + /* Macros after this point can all be overridden by user definitions in + * section 1. +@@ -2079,9 +2077,7 @@ + register char *yy_cp, *yy_bp; + register int yy_act; + +-#line 301 "l1.m" + +-#line 2044 "c2ps.c" + + if ( yy_init ) + { +@@ -2197,21 +2193,18 @@ + { /* beginning of action switch */ + case 1: + YY_RULE_SETUP +-#line 302 "l1.m" + { + PString(yytext); + } + YY_BREAK + case 2: + YY_RULE_SETUP +-#line 305 "l1.m" + { + NextLine(); + } + YY_BREAK + case 3: + YY_RULE_SETUP +-#line 308 "l1.m" + { /*'*/ + PFlush(); + fprintf(out, "cf fst\n"); +@@ -2221,7 +2214,6 @@ + YY_BREAK + case 4: + YY_RULE_SETUP +-#line 314 "l1.m" + { + PFlush(); + while (1) +@@ -2244,7 +2236,6 @@ + YY_BREAK + case 5: + YY_RULE_SETUP +-#line 333 "l1.m" + { + c = yytext; + if (adjust_comments) +@@ -2267,12 +2258,10 @@ + YY_BREAK + case 6: + YY_RULE_SETUP +-#line 352 "l1.m" + { yymore(); } + YY_BREAK + case 7: + YY_RULE_SETUP +-#line 353 "l1.m" + { + c = yytext; + if (adjust_comments && comment_many_lines++) +@@ -2290,12 +2279,10 @@ + yy_c_buf_p = yy_cp = yy_bp + 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 364 "l1.m" + { yymore(); } + YY_BREAK + case 9: + YY_RULE_SETUP +-#line 366 "l1.m" + { + PFlush(); + while (1) +@@ -2316,7 +2303,6 @@ + YY_BREAK + case 10: + YY_RULE_SETUP +-#line 383 "l1.m" + { + PFlush(); + while (1) +@@ -2411,7 +2397,6 @@ + YY_BREAK + case 11: + YY_RULE_SETUP +-#line 474 "l1.m" + { + PFill("\\"); + PFlush(); +@@ -2423,7 +2408,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 479 "l1.m" + { + PFlush(); + BEGIN((nesting <= 0) ? nnested : INITIAL); +@@ -2431,7 +2415,6 @@ + YY_BREAK + case 13: + YY_RULE_SETUP +-#line 483 "l1.m" + { + if (pd > 0 && + prep_touch[pd - 1] && +@@ -2489,7 +2472,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 534 "l1.m" + { + PFill(yytext); + PFlush(); +@@ -2503,7 +2485,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 541 "l1.m" + { + PFlush(); + fprintf(out, "cf fty\n"); +@@ -2516,7 +2497,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 547 "l1.m" + { + PFill(yytext); + PFlush(); +@@ -2530,7 +2510,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 554 "l1.m" + { + PFlush(); + fprintf(out, "cf %s\n", (ext) ? "fty" : "fdf"); +@@ -2543,7 +2522,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 560 "l1.m" + { + PFill(yytext); + PFlush(); +@@ -2557,7 +2535,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 567 "l1.m" + { + PFlush(); + fprintf(out, "cf fke\n"); +@@ -2570,7 +2547,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 573 "l1.m" + { + PFill(yytext); + PFlush(); +@@ -2584,7 +2560,6 @@ + yy_c_buf_p = yy_cp -= 1; + YY_DO_BEFORE_ACTION; /* set up yytext again */ + YY_RULE_SETUP +-#line 580 "l1.m" + { + PFlush(); + fprintf(out, "cf %s\n", (ext) ? "fke" : "fdf"); +@@ -2594,7 +2569,6 @@ + YY_BREAK + case 22: + YY_RULE_SETUP +-#line 586 "l1.m" + { + PFlush(); + if (! (pd > 0 && +@@ -2604,17 +2578,14 @@ + YY_BREAK + case 23: + YY_RULE_SETUP +-#line 592 "l1.m" + { + PFill(yytext); + } + YY_BREAK + case 24: + YY_RULE_SETUP +-#line 595 "l1.m" + ECHO; + YY_BREAK +-#line 2577 "c2ps.c" + case YY_STATE_EOF(INITIAL): + case YY_STATE_EOF(comm): + case YY_STATE_EOF(preps): +@@ -3479,7 +3450,6 @@ + return 0; + } + #endif +-#line 595 "l1.m" + + + #ifdef YY_USE_PROTOS +@@ -3680,7 +3650,7 @@ + page / ppl + 1, total_page / ppl +1); + if (page > 0 && comment) + fprintf(out, "setgray\n"); +- if (letter) ++ if (strncasecmp(pspec.name, "letter", 7) == 0) + fprintf(out, "0.93 0.93 scale 31 8 translate\n"); + switch(ppl) + { +@@ -3917,6 +3887,34 @@ + return 1; + } + ++void getpaper(char *name) ++{ ++ const struct paper *pp; ++ ++ if (name == NULL) { ++ name = (char *)systempapername(); ++ if (name == NULL) ++ name = (char *)defaultpapername(); ++ } ++ ++ /* Support only A4 or letter. */ ++ if (strncasecmp(name, "a4", 3) != 0 && ++ strncasecmp(name, "letter", 7) != 0) { ++ fprintf(stderr, "Unsupported paper size: %s. " ++ "A4 size will be used instead.\n", name); ++ name = "a4"; ++ } ++ ++ paperinit(); ++ for (pp = paperfirst(); pp; pp = papernext(pp)) { ++ if (strcmp(name, papername(pp)) == 0) { ++ pspec.name = strdup(name); ++ pspec.width = round(paperpswidth(pp)); ++ pspec.height = round(paperpsheight(pp)); ++ } ++ } ++} ++ + #define REENCODE(font) fprintf(out,"/%s /%s-iso isovec ReEncode\n",font,font) + + #ifdef YY_USE_PROTOS +@@ -3937,6 +3935,7 @@ + char *lnumber = NULL; + char *function = NULL; + char *nonlatin = NULL; ++ char *pflag = NULL; + + out = stdout; + first = NULL; +@@ -3984,7 +3983,7 @@ + argv[i]); + exit(0); + } break; +- case 'p': if (!strcmp(argv[i], "Letter")) letter = 1; break; ++ case 'p': DUP(pflag, argv[i]); break; + case 't': tab = abs(atoi (argv[i])); break; + case 'F': DUP(dftfont, argv[i]); break; + case 'P': DUP(preproc, argv[i]); break; +@@ -4078,6 +4077,8 @@ + nonlatin_text = 1; + } + ++ getpaper(pflag); ++ + fprintf(out, "%%!PS-Adobe-2.0\n%%%%Creator: c2ps version %s\n", VERSION); + fprintf(out, "%%%%Orientation: %s\n", (ppl == 2) ? "Landscape" : "Portrait"); + fprintf(out, "%%%%Pages: (atend)\n"); +@@ -4089,7 +4090,7 @@ + fprintf(out, " %s %s %s %s %s %s", + keyword, strings, type, preproc, comment, function); + fprintf(out, "\n%%%%DocumentMedia: %s\n%%%%EndComments\n\n", +- (letter) ? "Letter 612 792" : "A4 595 842"); ++ (strncasecmp(pspec.name, "letter", 7) == 0) ? "Letter 612 792" : "A4 595 842"); + if (iso) + { + fprintf(out, ISO); diff --git a/print/c2ps/pkg-descr b/print/c2ps/pkg-descr new file mode 100644 index 000000000000..f2e8a59364d6 --- /dev/null +++ b/print/c2ps/pkg-descr @@ -0,0 +1,6 @@ +A PostScript pretty-printer for C source with numerous features. + +Released under the GPL by Dmitri Shtilman +and Dmitri Makarov . + +WWW: http://www.cs.technion.ac.il/users/c2ps/ diff --git a/print/foomatic-filters/Makefile b/print/foomatic-filters/Makefile index 75a27083fd1b..ca7fe97352bd 100644 --- a/print/foomatic-filters/Makefile +++ b/print/foomatic-filters/Makefile @@ -3,7 +3,7 @@ PORTNAME= foomatic-filters PORTVERSION= 4.0.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print MASTER_SITES= http://www.openprinting.org/download/foomatic/ @@ -28,15 +28,12 @@ CONFIGURE_ENV= ac_cv_path_A2PS=${LOCALBASE}/bin/a2ps \ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= CUPS_IMAGE MPAGE -OPTIONS_SINGLE= A2PS ENSCRIPT -OPTIONS_SINGLE_A2PS= A2PS_A4 A2PS_LETTER A2PS_LETTERDJ +OPTIONS_DEFINE= A2PS CUPS_IMAGE MPAGE +OPTIONS_SINGLE= ENSCRIPT OPTIONS_SINGLE_ENSCRIPT= ENSCRIPT_A4 ENSCRIPT_LETTER ENSCRIPT_LETTERDJ -OPTIONS_DEFAULT= CUPS_IMAGE A2PS_A4 ENSCRIPT_A4 MPAGE +OPTIONS_DEFAULT= CUPS_IMAGE A2PS ENSCRIPT_A4 MPAGE CUPS_IMAGE_DESC= Install cups image utilities -A2PS_A4_DESC= Install a2ps convertor (A4) -A2PS_LETTER_DESC= Install a2ps convertor (letter) -A2PS_LETTERDJ_DESC= Install a2ps convertor (letterdj) +A2PS_DESC= Install a2ps convertor ENSCRIPT_A4_DESC= Install enscript convertor (A4) ENSCRIPT_LETTER_DESC= Install enscript convertor (letter) ENSCRIPT_LETTERDJ_DESC= Install enscript convertor (letterdj) @@ -50,18 +47,10 @@ MAN1= foomatic-rip.1 RUN_DEPENDS+= ${LOCALBASE}/lib/libcupsimage.so:${PORTSDIR}/print/cups-image .endif -.if ${PORT_OPTIONS:MA2PS_A4} +.if ${PORT_OPTIONS:MA2PS} RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4 .endif -.if ${PORT_OPTIONS:MA2PS_LETTER} -RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter -.endif - -.if ${PORT_OPTIONS:MA2PS-LETTERDJ} -RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letterdj -.endif - .if ${PORT_OPTIONS:MENSCRIPT_A4} RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4 .endif diff --git a/print/lprps-a4/Makefile b/print/lprps-a4/Makefile deleted file mode 100644 index a29af8356eff..000000000000 --- a/print/lprps-a4/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# ex:ts=8 -# Ports collection makefile for: lprps (a4) -# Date created: Sat Aug 3, 1996 -# Whom: David O'Brien (obrien@cs.ucdavis.edu) -# -# $FreeBSD$ -# - -PAPERSIZE= a4 -MASTERDIR= ${.CURDIR}/../lprps-letter - -.include "${MASTERDIR}/Makefile" diff --git a/print/lprps-letter/Makefile b/print/lprps-letter/Makefile deleted file mode 100644 index 9e6e1acb9174..000000000000 --- a/print/lprps-letter/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -# ex:ts=8 -# Ports collection makefile for: lprps (letter) -# Date created: Sat Aug 3, 1996 -# Whom: David O'Brien (obrien@cs.ucdavis.edu) -# -# $FreeBSD$ -# - -PORTNAME= lprps -PORTVERSION= 2.5 -CATEGORIES= print -MASTER_SITES= ftp://ftp.jclark.com/pub/lprps/ -PKGNAMESUFFIX= -${PAPERSIZE} -EXTRACT_SUFX= .tar.Z - -MAINTAINER= ports@FreeBSD.org -COMMENT= PostScript printer filter package supporting a bidirectional serial channel - -MAKE_FLAGS?= PAPERSIZE=${PS} -f -PORTDOCS= INSTALL - -MAN1= psrev.1 textps.1 -MAN8= lprps.8 psif.8 psof.8 - -PAPERSIZE?= letter -PS= ${PAPERSIZE:U} - -.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter -.BEGIN: - @${ECHO_MSG} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @${ECHO_MSG} "Possible values are: a4 or letter" - @${FALSE} -.endif - -post-patch: - ${REINPLACE_CMD} -e 's/^\(CC[^g]*\)cc$$/\1${CC}/' ${WRKSRC}/Makefile - -do-install: - ${MKDIR} ${DATADIR} - cd ${WRKSRC} && \ - ${INSTALL_PROGRAM} textps psrev ${PREFIX}/bin && \ - ${INSTALL_PROGRAM} psif lprps psof ${PREFIX}/libexec && \ - ${INSTALL_SCRIPT} psif-text psif-ps ${PREFIX}/libexec && \ - ${INSTALL_DATA} banner.ps ${DATADIR} && \ - ${INSTALL_MAN} textps.n ${PREFIX}/man/man1/textps.1 && \ - ${INSTALL_MAN} psrev.n ${PREFIX}/man/man1/psrev.1 && \ - ${INSTALL_MAN} lprps.n ${PREFIX}/man/man8/lprps.8 && \ - ${INSTALL_MAN} psif.n ${PREFIX}/man/man8/psif.8 && \ - ${INSTALL_MAN} psof.n ${PREFIX}/man/man8/psof.8 - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} -.endif - @${ECHO_MSG} "" - @${ECHO_MSG} Now edit your /etc/printcap - @${ECHO_MSG} "" - -.include diff --git a/print/lprps-letter/distinfo b/print/lprps-letter/distinfo deleted file mode 100644 index a08d19f6ecd2..000000000000 --- a/print/lprps-letter/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (lprps-2.5.tar.Z) = 3bcf23e06e48b5ec9aa641cc591bd8d5bdecb8ddd0d8e63dfb61c4f09602192e -SIZE (lprps-2.5.tar.Z) = 41630 diff --git a/print/lprps-letter/files/patch-aa b/print/lprps-letter/files/patch-aa deleted file mode 100644 index 343b98251cfc..000000000000 --- a/print/lprps-letter/files/patch-aa +++ /dev/null @@ -1,29 +0,0 @@ ---- Makefile.orig Wed Sep 11 03:08:08 1996 -+++ Makefile Wed Sep 11 03:11:29 1996 -@@ -3,21 +3,21 @@ - # Define IIg to enable a workaround for a bug in the serial - # driver of the Laserwriter IIf and IIg; this requires the POSIX - # tcdrain() function. (I haven't tested this personally.) --DEFINES=-DA4 #-DIIg --PREFIX=/usr/local -+DEFINES=-D$(PAPERSIZE) - # Where to install public executables. - BINDIR=$(PREFIX)/bin - # Where to install private executables. --LIBDIR=$(PREFIX)/lib -+LIBDIR=$(PREFIX)/libexec - # Define REV_COMMAND to be empty if documents don't need to - # be printed in reverse order. --REV_COMMAND=$(BINDIR)/psrev | -+#REV_COMMAND=$(BINDIR)/psrev | -+REV_COMMAND= - # Where to install the filter for text files. - TEXT_FILTER=$(LIBDIR)/psif-text - # Where to install the filter for PostScript files. - PS_FILTER=$(LIBDIR)/psif-ps - # Where to install PostScript banner printing code --BANNER=$(LIBDIR)/banner.ps -+BANNER=$(PREFIX)/share/misc/banner.ps - # Filter to convert text to PostScript. You can use your own instead. - # It must be able to read from standard input. - TEXT_TO_PS=$(BINDIR)/textps diff --git a/print/lprps-letter/files/patch-ab b/print/lprps-letter/files/patch-ab deleted file mode 100644 index 587c5404e22a..000000000000 --- a/print/lprps-letter/files/patch-ab +++ /dev/null @@ -1,38 +0,0 @@ ---- lprps.c.orig Mon Feb 22 06:46:10 1993 -+++ lprps.c Sat Jun 19 17:55:56 1999 -@@ -17,6 +17,10 @@ - #include - #include - -+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) -+#include -+#endif -+ - #ifndef errno - extern int errno; - #endif -@@ -27,7 +31,13 @@ - #define VOLATILE /* as nothing */ - #endif - --#define SENDMAIL "/usr/lib/sendmail" -+#ifndef SENDMAIL -+# if (defined(BSD) && (BSD >= 199103)) -+# define SENDMAIL "/usr/sbin/sendmail" -+# else -+# define SENDMAIL "/usr/lib/sendmail" -+# endif -+#endif - - #define EXIT_SUCCESS 0 - #define EXIT_REPRINT 1 -@@ -346,7 +356,9 @@ - char *strsignal(n) - int n; - { -+# if !(defined(BSD) && (BSD >= 199103)) - extern char *sys_siglist[]; -+# endif - static char buf[32]; - if (n >= 0 && n < NSIG) - return sys_siglist[n]; diff --git a/print/lprps-letter/files/patch-ac b/print/lprps-letter/files/patch-ac deleted file mode 100644 index 095b9d6ab36d..000000000000 --- a/print/lprps-letter/files/patch-ac +++ /dev/null @@ -1,11 +0,0 @@ ---- psof.c.orig Wed Sep 11 03:12:36 1996 -+++ psof.c Wed Sep 11 03:15:16 1996 -@@ -216,7 +216,7 @@ - if ((status & 0xff) != 0) { - int sig = status & 0x7f; - if (sig < NSIG) { -- extern char *sys_siglist[]; -+ /* extern char *sys_siglist[]; */ - syslog(LOG_ERR, "%s: %s%s", LPRPS, sys_siglist[sig], - (status & 0x80) ? " (core dumped)" : ""); - } diff --git a/print/lprps-letter/files/patch-ad b/print/lprps-letter/files/patch-ad deleted file mode 100644 index 60604d868073..000000000000 --- a/print/lprps-letter/files/patch-ad +++ /dev/null @@ -1,13 +0,0 @@ ---- psrev.c.orig Wed Sep 11 03:12:11 1996 -+++ psrev.c Wed Sep 11 03:13:12 1996 -@@ -24,8 +24,8 @@ - void sys_error(message, arg) - char *message, *arg; - { -- extern char *sys_errlist[]; -- extern int sys_nerr; -+ /* extern char *sys_errlist[]; */ -+ /* extern int sys_nerr; */ - int en; - - en = errno; diff --git a/print/lprps-letter/files/patch-ae b/print/lprps-letter/files/patch-ae deleted file mode 100644 index 919ad1f5ced3..000000000000 --- a/print/lprps-letter/files/patch-ae +++ /dev/null @@ -1,64 +0,0 @@ ---- INSTALL.orig Mon Feb 22 04:46:07 1993 -+++ INSTALL Sat May 24 21:46:37 1997 -@@ -8,23 +8,23 @@ - You need to add an entry in /etc/printcap. Here's the entry I use: - - lp|ps:\ -- :br#38400:lp=/dev/ttya:mx#0:sf:sh:rw:sb:\ -+ :br#38400:lp=/dev/ttyd0:mx#0:sf:sh:rw:sb:\ - :fc#0177777:fs#003:ms=-isig,igncr,cstopb,-echok:\ -- :af=/usr/adm/psacct:lf=/usr/adm/pslog:sd=/usr/spool/pslpd:\ -- :if=/usr/local/lib/psif: -+ :af=/var/log/psacct:lf=/var/log/pslog:sd=/var/spool/output/pslpd:\ -+ :if=/usr/local/libexec/psif: - --This entry would be appropriate if you were using /dev/ttya and a baud -+This entry would be appropriate if you were using /dev/ttyd0 and a baud - rate of 38400. Note that the `sf', `rw' and `sb' capabilities are --essential. You need to create the spool directory (/usr/spool/pslpd), --the accounting file (/usr/adm/psacct), and the log file --(/usr/adm/pslog). The spool directory and the accounting file should -+essential. You need to create the spool directory (/var/spool/output/pslpd), -+the accounting file (/var/log/psacct), and the log file -+(/var/log/pslog). The spool directory and the accounting file should - be owned by daemon, the log file by root. You can use other names if - you want. The `ms' capabability is a Sun extension. If you decide to - make use of the patches in lpr.diff, you should also add the `ex' - boolean capability (the patches also add the `ms' capability.) - - If you wish to have banner printing, then you should add --`of=/usr/local/lib/psof', and remove the `sh' capability. You will -+`of=/usr/local/libexec/psof', and remove the `sh' capability. You will - probably also wnat to modify the banner printing code in banner.ps. - As distributed, it provides a fairly minimalist banner page. Note - that psof requires the `sb' capability. If your printer stacks face -@@ -35,12 +35,12 @@ - You can add easily add other filters. For example, suppose you want to - add a filter for dvi files. Then add an entry to /etc/printcap: - -- :df=/usr/local/lib/psdf: -+ :df=/usr/local/libexec/psdf: - --Then create a shell script /usr/local/lib/psdf -+Then create a shell script /usr/local/libexec/psdf - - #!/bin/sh --/usr/local/bin/dvitops | /usr/local/lib/lprps "$@" -+/usr/local/bin/dvitops | /usr/local/libexec/lprps "$@" - - Replace `/usr/local/bin/dvitops' by the name of your favourite dvi to - ps program (it must be able to read from the standard input). Then you -@@ -49,11 +49,11 @@ - You must also set the printer's communication parameters. Make sure - you have an entry like this in /etc/remote: - -- ttya:dv=/dev/ttya:br#1200:el=^D: -+ ttyd0:dv=/dev/ttyd0:br#1200:el=^D: - - Set the switch on your printer to position labelled 1200 or 0. Then - -- tip ttya -+ tip ttyd0 - - (*)Now carefully type - diff --git a/print/lprps-letter/pkg-descr b/print/lprps-letter/pkg-descr deleted file mode 100644 index d5e72229d11a..000000000000 --- a/print/lprps-letter/pkg-descr +++ /dev/null @@ -1,21 +0,0 @@ -lprps is a collection of programs for using lpr with a PostScript -printer connected by a bidirectional serial channel. - -It contains the following programs: - - lprps handles communication with the printer - psif allows separate filters to be used for text and PostScript - textps simple text to PostScript filter - psrev PostScript page reversal filter - psof banner filter - -Some features are: - - * Deals intelligently with output generated by the printer: printer - errors (such as ``out of paper'') are logged using syslog. - * Updates status file (displayed by lpq) with printer's current status. - * Performs printer accounting. - * Ensures that the printer is ready to receive the job. - * Determines whether file is PostScript or text and prints it appropriately - * Can automatically perform page reversal for the benefit of printers - that stack face-up. diff --git a/print/lprps-letter/pkg-plist b/print/lprps-letter/pkg-plist deleted file mode 100644 index 35b900630e6e..000000000000 --- a/print/lprps-letter/pkg-plist +++ /dev/null @@ -1,10 +0,0 @@ -@comment $FreeBSD$ -libexec/psif -libexec/lprps -libexec/psof -libexec/psif-text -libexec/psif-ps -%%DATADIR%%/banner.ps -bin/textps -bin/psrev -@dirrm %%DATADIR%% diff --git a/print/lprps/Makefile b/print/lprps/Makefile new file mode 100644 index 000000000000..0ac307ac1fb9 --- /dev/null +++ b/print/lprps/Makefile @@ -0,0 +1,38 @@ +# Created by: David O'Brien +# $FreeBSD$ + +PORTNAME= lprps +PORTVERSION= 2.5 +CATEGORIES= print +MASTER_SITES= ftp://ftp.jclark.com/pub/lprps/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= hrs@FreeBSD.org +COMMENT= PostScript printer filter supporting a bidirectional serial channel + +LIB_DEPENDS= paper:${PORTSDIR}/print/libpaper + +PORTDOCS= INSTALL +MAN1= psrev.1 textps.1 +MAN8= lprps.8 psif.8 psof.8 + +do-install: + ${MKDIR} ${DATADIR} + cd ${WRKSRC} && \ + ${INSTALL_PROGRAM} textps psrev ${PREFIX}/bin && \ + ${INSTALL_PROGRAM} psif lprps psof ${PREFIX}/libexec && \ + ${INSTALL_SCRIPT} psif-text psif-ps ${PREFIX}/libexec && \ + ${INSTALL_DATA} banner.ps ${DATADIR} && \ + ${INSTALL_MAN} textps.n ${PREFIX}/man/man1/textps.1 && \ + ${INSTALL_MAN} psrev.n ${PREFIX}/man/man1/psrev.1 && \ + ${INSTALL_MAN} lprps.n ${PREFIX}/man/man8/lprps.8 && \ + ${INSTALL_MAN} psif.n ${PREFIX}/man/man8/psif.8 && \ + ${INSTALL_MAN} psof.n ${PREFIX}/man/man8/psof.8 + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.endif + +.include diff --git a/print/lprps/distinfo b/print/lprps/distinfo new file mode 100644 index 000000000000..a08d19f6ecd2 --- /dev/null +++ b/print/lprps/distinfo @@ -0,0 +1,2 @@ +SHA256 (lprps-2.5.tar.Z) = 3bcf23e06e48b5ec9aa641cc591bd8d5bdecb8ddd0d8e63dfb61c4f09602192e +SIZE (lprps-2.5.tar.Z) = 41630 diff --git a/print/lprps/files/patch-Makefile b/print/lprps/files/patch-Makefile new file mode 100644 index 000000000000..1b474346f1b2 --- /dev/null +++ b/print/lprps/files/patch-Makefile @@ -0,0 +1,59 @@ +--- Makefile.orig 1993-02-22 21:45:50.000000000 +0900 ++++ Makefile 2013-04-27 22:53:50.000000000 +0900 +@@ -3,21 +3,21 @@ + # Define IIg to enable a workaround for a bug in the serial + # driver of the Laserwriter IIf and IIg; this requires the POSIX + # tcdrain() function. (I haven't tested this personally.) +-DEFINES=-DA4 #-DIIg +-PREFIX=/usr/local ++DEFINES= + # Where to install public executables. + BINDIR=$(PREFIX)/bin + # Where to install private executables. +-LIBDIR=$(PREFIX)/lib ++LIBDIR=$(PREFIX)/libexec + # Define REV_COMMAND to be empty if documents don't need to + # be printed in reverse order. +-REV_COMMAND=$(BINDIR)/psrev | ++#REV_COMMAND=$(BINDIR)/psrev | ++REV_COMMAND= + # Where to install the filter for text files. + TEXT_FILTER=$(LIBDIR)/psif-text + # Where to install the filter for PostScript files. + PS_FILTER=$(LIBDIR)/psif-ps + # Where to install PostScript banner printing code +-BANNER=$(LIBDIR)/banner.ps ++BANNER=$(PREFIX)/share/misc/banner.ps + # Filter to convert text to PostScript. You can use your own instead. + # It must be able to read from standard input. + TEXT_TO_PS=$(BINDIR)/textps +@@ -29,15 +29,15 @@ + MAN8EXT=8 + MAN8DIR=$(MANROOT)/man$(MAN8EXT) + +-CC=cc +-CFLAGS=-O $(DEFINES) ++CC?=cc ++CFLAGS+=-I${LOCALBASE}/include $(DEFINES) + #CFLAGS=-g -Bstatic $(DEFINES) + # Command for installing programs. +-INSTALL_PROGRAM=install ++INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM} + # Command for installing man pages. +-INSTALL_DATA=install -m 0444 ++INSTALL_DATA=${BSD_INSTALL_DATA} + +-SHELL=/bin/sh ++SHELL=${SH} + # Uncomment the next line for Ultrix. + #SHELL=/bin/sh5 + +@@ -89,7 +89,7 @@ + -DPS_FILTER=\"$(PS_FILTER)\" -o $@ psif.c + + textps: textps.c +- $(CC) $(CFLAGS) -o $@ textps.c ++ $(CC) $(CFLAGS) -o $@ textps.c -lpaper -L${LOCALBASE}/lib + + psrev: psrev.c + $(CC) $(CFLAGS) -o $@ psrev.c diff --git a/print/lprps/files/patch-ae b/print/lprps/files/patch-ae new file mode 100644 index 000000000000..919ad1f5ced3 --- /dev/null +++ b/print/lprps/files/patch-ae @@ -0,0 +1,64 @@ +--- INSTALL.orig Mon Feb 22 04:46:07 1993 ++++ INSTALL Sat May 24 21:46:37 1997 +@@ -8,23 +8,23 @@ + You need to add an entry in /etc/printcap. Here's the entry I use: + + lp|ps:\ +- :br#38400:lp=/dev/ttya:mx#0:sf:sh:rw:sb:\ ++ :br#38400:lp=/dev/ttyd0:mx#0:sf:sh:rw:sb:\ + :fc#0177777:fs#003:ms=-isig,igncr,cstopb,-echok:\ +- :af=/usr/adm/psacct:lf=/usr/adm/pslog:sd=/usr/spool/pslpd:\ +- :if=/usr/local/lib/psif: ++ :af=/var/log/psacct:lf=/var/log/pslog:sd=/var/spool/output/pslpd:\ ++ :if=/usr/local/libexec/psif: + +-This entry would be appropriate if you were using /dev/ttya and a baud ++This entry would be appropriate if you were using /dev/ttyd0 and a baud + rate of 38400. Note that the `sf', `rw' and `sb' capabilities are +-essential. You need to create the spool directory (/usr/spool/pslpd), +-the accounting file (/usr/adm/psacct), and the log file +-(/usr/adm/pslog). The spool directory and the accounting file should ++essential. You need to create the spool directory (/var/spool/output/pslpd), ++the accounting file (/var/log/psacct), and the log file ++(/var/log/pslog). The spool directory and the accounting file should + be owned by daemon, the log file by root. You can use other names if + you want. The `ms' capabability is a Sun extension. If you decide to + make use of the patches in lpr.diff, you should also add the `ex' + boolean capability (the patches also add the `ms' capability.) + + If you wish to have banner printing, then you should add +-`of=/usr/local/lib/psof', and remove the `sh' capability. You will ++`of=/usr/local/libexec/psof', and remove the `sh' capability. You will + probably also wnat to modify the banner printing code in banner.ps. + As distributed, it provides a fairly minimalist banner page. Note + that psof requires the `sb' capability. If your printer stacks face +@@ -35,12 +35,12 @@ + You can add easily add other filters. For example, suppose you want to + add a filter for dvi files. Then add an entry to /etc/printcap: + +- :df=/usr/local/lib/psdf: ++ :df=/usr/local/libexec/psdf: + +-Then create a shell script /usr/local/lib/psdf ++Then create a shell script /usr/local/libexec/psdf + + #!/bin/sh +-/usr/local/bin/dvitops | /usr/local/lib/lprps "$@" ++/usr/local/bin/dvitops | /usr/local/libexec/lprps "$@" + + Replace `/usr/local/bin/dvitops' by the name of your favourite dvi to + ps program (it must be able to read from the standard input). Then you +@@ -49,11 +49,11 @@ + You must also set the printer's communication parameters. Make sure + you have an entry like this in /etc/remote: + +- ttya:dv=/dev/ttya:br#1200:el=^D: ++ ttyd0:dv=/dev/ttyd0:br#1200:el=^D: + + Set the switch on your printer to position labelled 1200 or 0. Then + +- tip ttya ++ tip ttyd0 + + (*)Now carefully type + diff --git a/print/lprps/files/patch-lprps.c b/print/lprps/files/patch-lprps.c new file mode 100644 index 000000000000..08f4e761355f --- /dev/null +++ b/print/lprps/files/patch-lprps.c @@ -0,0 +1,60 @@ +--- lprps.c.orig 1993-02-22 21:46:10.000000000 +0900 ++++ lprps.c 2013-04-27 23:00:32.000000000 +0900 +@@ -5,7 +5,9 @@ + #endif + + #include ++#include + #include ++#include + #include + #include + #include +@@ -15,8 +17,13 @@ + #include + #include + #include ++#include + #include + ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) ++#include ++#endif ++ + #ifndef errno + extern int errno; + #endif +@@ -27,7 +34,13 @@ + #define VOLATILE /* as nothing */ + #endif + +-#define SENDMAIL "/usr/lib/sendmail" ++#ifndef SENDMAIL ++# if (defined(BSD) && (BSD >= 199103)) ++# define SENDMAIL "/usr/sbin/sendmail" ++# else ++# define SENDMAIL "/usr/lib/sendmail" ++# endif ++#endif + + #define EXIT_SUCCESS 0 + #define EXIT_REPRINT 1 +@@ -43,8 +56,6 @@ + char ctrl_d = '\004'; + char ctrl_t = '\024'; + +-char *malloc(); +- + /* user's login name */ + char *login = 0; + /* user's host */ +@@ -346,7 +357,9 @@ + char *strsignal(n) + int n; + { ++# if !(defined(BSD) && (BSD >= 199103)) + extern char *sys_siglist[]; ++# endif + static char buf[32]; + if (n >= 0 && n < NSIG) + return sys_siglist[n]; diff --git a/print/lprps/files/patch-psif.c b/print/lprps/files/patch-psif.c new file mode 100644 index 000000000000..374330a22587 --- /dev/null +++ b/print/lprps/files/patch-psif.c @@ -0,0 +1,10 @@ +--- psif.c.orig 2013-04-27 22:58:26.000000000 +0900 ++++ psif.c 2013-04-27 22:58:42.000000000 +0900 +@@ -5,6 +5,7 @@ + #endif + + #include ++#include + #include + #include + diff --git a/print/lprps/files/patch-psof.c b/print/lprps/files/patch-psof.c new file mode 100644 index 000000000000..54197b8d20cd --- /dev/null +++ b/print/lprps/files/patch-psof.c @@ -0,0 +1,26 @@ +--- psof.c.orig 1993-02-22 21:46:11.000000000 +0900 ++++ psof.c 2013-04-27 23:05:56.000000000 +0900 +@@ -11,11 +11,14 @@ + #endif + + #include ++#include ++#include + #include + #include + #include + #include + #include ++#include + + #ifndef errno + extern int errno; +@@ -216,7 +219,7 @@ + if ((status & 0xff) != 0) { + int sig = status & 0x7f; + if (sig < NSIG) { +- extern char *sys_siglist[]; ++ /* extern char *sys_siglist[]; */ + syslog(LOG_ERR, "%s: %s%s", LPRPS, sys_siglist[sig], + (status & 0x80) ? " (core dumped)" : ""); + } diff --git a/print/lprps/files/patch-psrev.c b/print/lprps/files/patch-psrev.c new file mode 100644 index 000000000000..2c59b7001dfb --- /dev/null +++ b/print/lprps/files/patch-psrev.c @@ -0,0 +1,31 @@ +--- psrev.c.orig 1993-02-22 21:46:09.000000000 +0900 ++++ psrev.c 2013-04-27 22:56:35.000000000 +0900 +@@ -5,6 +5,7 @@ + #endif + + #include ++#include + #include + #include + #include +@@ -14,9 +15,6 @@ + extern int errno; + #endif + +-char *malloc(); +-char *realloc(); +- + char *xmalloc(); + char *xrealloc(); + char *prog; +@@ -24,8 +22,8 @@ + void sys_error(message, arg) + char *message, *arg; + { +- extern char *sys_errlist[]; +- extern int sys_nerr; ++ /* extern char *sys_errlist[]; */ ++ /* extern int sys_nerr; */ + int en; + + en = errno; diff --git a/print/lprps/files/patch-textps.c b/print/lprps/files/patch-textps.c new file mode 100644 index 000000000000..3e8cfe11dfc3 --- /dev/null +++ b/print/lprps/files/patch-textps.c @@ -0,0 +1,54 @@ +--- textps.c.orig 1993-02-22 21:46:10.000000000 +0900 ++++ textps.c 2013-04-27 23:04:41.000000000 +0900 +@@ -41,10 +41,12 @@ + #endif /* not BOLD_FONT */ + + #include ++#include + #include + #include + +-extern char *malloc(); ++#include ++ + extern char *optarg; + extern int optind; + +@@ -86,10 +88,24 @@ + exit(1); + } + ++const struct paper *findpaper(char *name) ++{ ++ const struct paper *pp; ++ ++ paperinit(); ++ for (pp = paperfirst(); pp; pp = papernext(pp)) { ++ if (strcmp(name, papername(pp)) == 0) ++ return (pp); ++ } ++ return (NULL); ++} ++ + main(argc, argv) + int argc; + char **argv; + { ++ const struct paper *pp; ++ char *name; + int bad_files = 0; + double cpi = 12.0; /* characters per inch */ + int opt; +@@ -124,6 +140,12 @@ + abort(); + } + ++ name = (char *)systempapername(); ++ if (name == NULL) ++ name = (char *)defaultpapername(); ++ if ((pp = findpaper(name)) != NULL) ++ page_length = paperpsheight(pp); ++ + char_width = 72.0/cpi; + prologue(); + if (optind >= argc) diff --git a/print/lprps/pkg-descr b/print/lprps/pkg-descr new file mode 100644 index 000000000000..d5e72229d11a --- /dev/null +++ b/print/lprps/pkg-descr @@ -0,0 +1,21 @@ +lprps is a collection of programs for using lpr with a PostScript +printer connected by a bidirectional serial channel. + +It contains the following programs: + + lprps handles communication with the printer + psif allows separate filters to be used for text and PostScript + textps simple text to PostScript filter + psrev PostScript page reversal filter + psof banner filter + +Some features are: + + * Deals intelligently with output generated by the printer: printer + errors (such as ``out of paper'') are logged using syslog. + * Updates status file (displayed by lpq) with printer's current status. + * Performs printer accounting. + * Ensures that the printer is ready to receive the job. + * Determines whether file is PostScript or text and prints it appropriately + * Can automatically perform page reversal for the benefit of printers + that stack face-up. diff --git a/print/lprps/pkg-plist b/print/lprps/pkg-plist new file mode 100644 index 000000000000..35b900630e6e --- /dev/null +++ b/print/lprps/pkg-plist @@ -0,0 +1,10 @@ +@comment $FreeBSD$ +libexec/psif +libexec/lprps +libexec/psof +libexec/psif-text +libexec/psif-ps +%%DATADIR%%/banner.ps +bin/textps +bin/psrev +@dirrm %%DATADIR%% diff --git a/print/xfce4-print/Makefile b/print/xfce4-print/Makefile index 8998c1befe5d..f42ecbb84d67 100644 --- a/print/xfce4-print/Makefile +++ b/print/xfce4-print/Makefile @@ -3,7 +3,7 @@ PORTNAME= xfce4-print PORTVERSION= 4.6.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= print xfce MASTER_SITES= ${MASTER_SITE_XFCE} MASTER_SITE_SUBDIR= src/archive/xfprint/${PORTVERSION:R} @@ -13,6 +13,9 @@ DIST_SUBDIR= xfce4 MAINTAINER= xfce@FreeBSD.org COMMENT= Xfce 4 graphical frontend for printing +BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps +RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps + GNU_CONFIGURE= yes INSTALLS_ICONS= yes USE_BZIP2= yes @@ -50,12 +53,8 @@ PLIST_SUB+= LPR="@comment " .if ${PORT_OPTIONS:MLETTER} CONFIGURE_ARGS+=--enable-letter -BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter -RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter .else CONFIGURE_ARGS+=--disable-letter -BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4 -RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4 .endif post-patch: -- cgit