[Midnightbsd-cvs] mports: mports/print: add mp-letter.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri May 30 22:51:56 EDT 2008
Log Message:
-----------
add mp-letter.
Modified Files:
--------------
mports/print:
Makefile (r1.36 -> r1.37)
Added Files:
-----------
mports/print/mp-letter:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/print/mp-letter/files:
patch-aa (r1.1)
patch-ab (r1.1)
patch-ac (r1.1)
patch-ad (r1.1)
patch-ae (r1.1)
-------------- next part --------------
--- /dev/null
+++ print/mp-letter/pkg-descr
@@ -0,0 +1,10 @@
+MP will pretty print files to stdout/PostScript printer. It has special
+processing for mail, USENET news articles, digests, and several personal
+organisers. Printouts can be portrait, landscape or 2-up, and include
+pretty headers with useful information (page number, printing date, file
+name or supplied header). Mp is very useful for making archive listings of
+programs.
+
+Includes mp.el an Emacs interface to mp.
+
+-- David (obrien at cs.ucdavis.edu)
--- /dev/null
+++ print/mp-letter/pkg-plist
@@ -0,0 +1,20 @@
+ at comment $FreeBSD: ports/print/mp-letter/pkg-plist,v 1.6 2000/11/22 00:23:37 obrien Exp $
+bin/digestp
+bin/filep
+bin/filofaxp
+bin/franklinp
+bin/mailp
+bin/mp
+bin/newsp
+bin/timemanp
+bin/timesysp
+share/mp/mp.common.ps
+share/mp/mp.pro.alt.ps
+share/mp/mp.pro.altl.ps
+share/mp/mp.pro.ff.ps
+share/mp/mp.pro.fp.ps
+share/mp/mp.pro.l.ps
+share/mp/mp.pro.ps
+share/mp/mp.pro.tm.ps
+share/mp/mp.pro.ts.ps
+ at dirrm share/mp
--- /dev/null
+++ print/mp-letter/Makefile
@@ -0,0 +1,42 @@
+# ex:ts=8
+# Ports collection makefile for: mp (letter)
+# Date created: 11 July 1996
+# Whom: David O'Brien <obrien at cs.ucdavis.edu>
+#
+# $MidnightBSD: mports/print/mp-letter/Makefile,v 1.1 2008/05/31 02:51:54 laffer1 Exp $
+# $FreeBSD: ports/print/mp-letter/Makefile,v 1.25 2008/03/30 23:09:34 obrien Exp $
+#
+
+PORTNAME= mp-${PAPERSIZE}
+PORTVERSION= 3.0.1
+CATEGORIES= print
+MASTER_SITES= ftp://relay.NUXI.org/pub/misc/ \
+ ftp://ftp.netsw.org/system/tools/print/ \
+# ftp://ftp.fu-berlin.de/unix/tools/mp/
+# ftp://ftp.inria.fr/system/user/
+DISTNAME= mp-3.0.1
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= A PostScript printing util for ASCII files, email, USENET news articles, etc
+LICENSE= other
+
+WRKSRC= ${WRKDIR}/mp
+MAN1= mp.1
+MLINKS= mp.1 digestp.1 - filep.1 - filofaxp.1 \
+ - franklinp.1 - mailp.1 - newsp.1 \
+ - timemanp.1 - timesysp.1
+
+PAPERSIZE?= letter
+.if ${PAPERSIZE:L} == a4
+INSTALL_TARGET= install-a4
+.endif
+
+pre-patch:
+ @${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's/<iostream\.h>/<iostream>
using namespace std;/' \
+ -e 's/enum action_type/action_type/g' \
+ -e 's/enum text_type/text_type/g' \
+ ${WRKSRC}/header.cc ${WRKSRC}/input.cc ${WRKSRC}/main.cc \
+ ${WRKSRC}/print.cc ${WRKSRC}/print.hh
+
+.include <bsd.port.mk>
--- /dev/null
+++ print/mp-letter/distinfo
@@ -0,0 +1,3 @@
+MD5 (mp-3.0.1.tar.gz) = 7442774147b445e36d97d70166421750
+SHA256 (mp-3.0.1.tar.gz) = b5a13554885a2e1d09956c1146ed86093777fe49276074d8f213d2183eb7cde5
+SIZE (mp-3.0.1.tar.gz) = 60185
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/print/Makefile,v
retrieving revision 1.36
retrieving revision 1.37
diff -L print/Makefile -L print/Makefile -u -r1.36 -r1.37
--- print/Makefile
+++ print/Makefile
@@ -35,6 +35,7 @@
SUBDIR += libgnomeprint-reference
SUBDIR += libijs
SUBDIR += libpaper
+ SUBDIR += mp-letter
SUBDIR += pdflib
SUBDIR += pecl-pdflib
SUBDIR += t1utils
--- /dev/null
+++ print/mp-letter/files/patch-ac
@@ -0,0 +1,23 @@
+--- mp.man.orig Sun Aug 1 13:28:21 1993
++++ mp.man Sat Aug 3 17:11:20 1996
+@@ -82,6 +82,8 @@
+ ] [
+ .B \-wrap
+ ] [
++.B \-F
++] [
+ .I filename .\|.\|.
+ ]
+ .PP
+@@ -250,6 +252,11 @@
+ Instead of printing who the mail article is for, the top header will
+ contain who the mail article is from. A useful option for people with
+ their own personal printer.
++.TP
++.B \-F
++Synonym for
++.B \-from
++for backwards compatiblity with earier versions.
+ .\"======================================
+ .TP
+ .B \-help
--- /dev/null
+++ print/mp-letter/files/patch-ab
@@ -0,0 +1,27 @@
+--- input.cc.orig Sun Aug 1 13:28:22 1993
++++ input.cc Sat Jan 29 17:59:31 2000
+@@ -134,6 +134,8 @@
+
+ else if (!argcmp(argv[i], "-from", 4)) // Print originators name.
+ print_orig = 1 ;
++ else if (!argcmp(argv[i], "-F", 2)) // backward compatiblity
++ print_orig = 1 ;
+
+ else if (!argcmp(argv[i], "-help", 2)) // Print usage message.
+ usage() ;
+@@ -273,11 +275,11 @@
+ case DO_TEXT : prt.message_for = "Listing for ";
+ digest = 0 ;
+ break ;
+- case DO_MAIL : prt.message_for = digest ? "Mail digest for "
+- : "Mail for " ;
++ case DO_MAIL : prt.message_for = digest ? (char *) "Mail digest for "
++ : (char *) "Mail for " ;
+ break ;
+- case DO_NEWS : prt.message_for = digest ? "News digest for "
+- : "News for " ;
++ case DO_NEWS : prt.message_for = digest ? (char *) "News digest for "
++ : (char *) "News for " ;
+ break ;
+ }
+ }
--- /dev/null
+++ print/mp-letter/files/patch-ae
@@ -0,0 +1,11 @@
+--- print.cc.orig Sat Jun 19 18:04:15 1999
++++ print.cc Sat Jun 19 18:04:57 1999
+@@ -33,7 +33,7 @@
+ {
+ char *ptr ; // Pointer to current time or date string.
+ int len ;
+- long clock ; // Used by the localtime function call.
++ time_t clock ; // Used by the localtime function call.
+ struct stat status ; // Stat(2) information from current file (-modtime).
+ struct tm *tm ; // Used by the localtime and asctime calls.
+ char *timenow ; // Used to set TimeNow field with users name.
--- /dev/null
+++ print/mp-letter/files/patch-ad
@@ -0,0 +1,11 @@
+--- mp.common.ps.orig Sun Aug 1 13:28:21 1993
++++ mp.common.ps Wed Jan 29 05:17:22 1997
+@@ -22,7 +22,7 @@
+
+ % Define /ISOLatin1Encoding only if it's not already there.
+ /ISOLatin1Encoding where { pop save true }{ false } ifelse
+- /ISOLatin1Encoding [ StandardEncoding 0 45 getinterval aload pop /minus
++ /ISOLatin1Encoding [ StandardEncoding 0 45 getinterval aload pop /hyphen
+ StandardEncoding 46 98 getinterval aload pop /dotlessi /grave /acute
+ /circumflex /tilde /macron /breve /dotaccent /dieresis /.notdef /ring
+ /cedilla /.notdef /hungarumlaut /ogonek /caron /space /exclamdown /cent
--- /dev/null
+++ print/mp-letter/files/patch-aa
@@ -0,0 +1,58 @@
+--- Makefile.orig Wed Jul 29 21:42:13 1998
++++ Makefile Wed Jul 29 21:42:24 1998
+@@ -45,11 +45,14 @@
+ # Default locations where mp files will be installed.
+ # You might wish to alter these values.
+ #
+-MPPATH = /usr/local
++#MPPATH = /usr/local
++MPPATH = $(PREFIX)
+ MPBINDIR = $(MPPATH)/bin
+-MPLIBDIR = $(MPPATH)/lib
++#MPLIBDIR = $(MPPATH)/lib
++MPLIBDIR = $(MPPATH)/share/mp
+ MPMANDIR = $(MPPATH)/man/man$(MPMANSECT)
+-MPMANSECT = l
++#MPMANSECT = l
++MPMANSECT = 1
+ #---------------------------------------------------------------------
+ # Alternate names for the mailp frontend
+ #
+@@ -58,11 +61,13 @@
+ # Compilation flags and standard macro definitions.
+ #
+ CDEFS = $(GECOSFIELDS) $(GECOSLENGTH) $(PROLOGUE)
+-CCOMP = -O
++CXXFLAGS ?= $(CFLAGS)
++CCOMP := $(CXXFLAGS)
+ CCFLAGS = $(CCOMP) $(CDEFS)
+ LDFLAGS =
+
+-CCC = g++
++CXXFLAGS = $(CCFLAGS) # needed for gmake's implicit rule
++CCC = $(CXX)
+ #=================================================================
+
+ .KEEPSTATE:
+@@ -107,10 +112,10 @@
+ @echo "**IMPORTANT NOTE**"
+ @echo
+ @echo "Mp is setup by default to work with US Letter sized paper."
+- @echo "If you are using A4 sized paper, you should reinstall, by
++ @echo "If you are using A4 sized paper, you should reinstall, by"
+ @echo "doing a:"
+ @echo
+- @echo "make install-a4"
++ @echo "make PAPERSIZE=a4 reinstall"
+ @echo
+
+ common-install: $(BINARIES)
+@@ -122,6 +127,8 @@
+ -cp mp.1 $(MPMANDIR)/mp.$(MPMANSECT)
+ -chmod 644 $(MPMANDIR)/mp.$(MPMANSECT)
+ # mp.common.ps
++ -mkdir $(MPLIBDIR)
++#
+ -cp mp.common.ps $(MPLIBDIR)
+ -chmod 644 $(MPLIBDIR)/mp.common.ps
+ # mp.pro.ps
More information about the Midnightbsd-cvs
mailing list