mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
New port, prn:
Yet another text to ps filter with Japanese support. PR: 3934 Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
This commit is contained in:
parent
f41102fc33
commit
0f8b5a6653
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=7050
23
japanese/prn/Makefile
Normal file
23
japanese/prn/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# New ports collection makefile for: prn
|
||||
# Version required: 2.0
|
||||
# Date created: 19 Jun 1997
|
||||
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= prn
|
||||
PKGNAME= jp-prn-1.0
|
||||
CATEGORIES= japanese print
|
||||
MASTER_SITES= ftp://ftp.eos.hokudai.ac.jp/pub/tools/
|
||||
|
||||
MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
|
||||
|
||||
RUN_DEPENDS= kcc:${PORTSDIR}/japanese/kcc
|
||||
|
||||
INSTALL_TARGET= install install.man
|
||||
MANLANG= ja_JP.EUC
|
||||
MAN1= prn.1 cprn.1 cmt.1 psconv.1
|
||||
MAN5= cmtdefs.5
|
||||
|
||||
.include <bsd.port.mk>
|
1
japanese/prn/distinfo
Normal file
1
japanese/prn/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (prn.tar.gz) = a2d483356af2778e3aba2cd897ea6eb9
|
62
japanese/prn/files/patch-aa
Normal file
62
japanese/prn/files/patch-aa
Normal file
@ -0,0 +1,62 @@
|
||||
*** Makefile.orig Wed May 11 17:00:58 1994
|
||||
--- Makefile Mon Jun 23 23:15:39 1997
|
||||
***************
|
||||
*** 25,35 ****
|
||||
# @(#)Makefile 2.3 (Y.Tonooka) 5/11/94
|
||||
#-
|
||||
|
||||
! BINPATH = /usr/local/bin
|
||||
! LIBPATH = /usr/local/lib
|
||||
! MANPATH = /usr/local/man
|
||||
! JMANDIR = japanese
|
||||
! CFLAGS = -O
|
||||
# CFLAGS = -g -DDEBUG
|
||||
ARFLAGS = rcv
|
||||
|
||||
--- 25,39 ----
|
||||
# @(#)Makefile 2.3 (Y.Tonooka) 5/11/94
|
||||
#-
|
||||
|
||||
! PREFIX?=/usr/local
|
||||
! BINPATH = ${PREFIX}/bin
|
||||
! LIBPATH = ${PREFIX}/lib/prn
|
||||
! MANPATH = ${PREFIX}/man
|
||||
! JMANDIR = ja_JP.EUC
|
||||
! CFLAGS = -O \
|
||||
! -DKCCPATH=\"${PREFIX}/bin/kcc\" \
|
||||
! -DCMTPATH=\"${PREFIX}/bin/cmt\" \
|
||||
! -DPSPATH=\"${PREFIX}/bin/psconv\"
|
||||
# CFLAGS = -g -DDEBUG
|
||||
ARFLAGS = rcv
|
||||
|
||||
***************
|
||||
*** 39,47 ****
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
LINT = lint
|
||||
! INSTALL = install
|
||||
CP = cp
|
||||
! LN = ln
|
||||
RM = rm -f
|
||||
TAGS = ctags
|
||||
ETAGS = etags
|
||||
--- 43,51 ----
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
LINT = lint
|
||||
! INSTALL = install -c
|
||||
CP = cp
|
||||
! LN = ln -fs
|
||||
RM = rm -f
|
||||
TAGS = ctags
|
||||
ETAGS = etags
|
||||
***************
|
||||
*** 98,103 ****
|
||||
--- 102,108 ----
|
||||
$(INSTALL) -s cmt $(BINPATH)
|
||||
|
||||
$(LIBPATH)/cmtdefs: cmtdefs
|
||||
+ mkdir -p $(LIBPATH)
|
||||
$(CP) cmtdefs $@; chmod 644 $@
|
||||
|
||||
$(BINPATH)/psconv: psconv.c
|
41
japanese/prn/files/patch-ab
Normal file
41
japanese/prn/files/patch-ab
Normal file
@ -0,0 +1,41 @@
|
||||
*** prn.c.orig Thu May 26 11:37:45 1994
|
||||
--- prn.c Mon Jun 9 12:29:28 1997
|
||||
***************
|
||||
*** 34,41 ****
|
||||
#include <sys/stat.h>
|
||||
#include "euc.h"
|
||||
|
||||
#define KCCPATH "/usr/local/bin/kcc"
|
||||
! #if defined (__bsdi__)
|
||||
#define LPRPATH "/usr/bin/lpr"
|
||||
#else
|
||||
#define LPRPATH "/usr/ucb/lpr"
|
||||
--- 34,46 ----
|
||||
#include <sys/stat.h>
|
||||
#include "euc.h"
|
||||
|
||||
+ #if !defined KCCPATH
|
||||
#define KCCPATH "/usr/local/bin/kcc"
|
||||
! #endif
|
||||
! #if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
! #include <sys/param.h>
|
||||
! #endif
|
||||
! #if defined (__bsdi__) || (defined(BSD) && (BSD >= 199103))
|
||||
#define LPRPATH "/usr/bin/lpr"
|
||||
#else
|
||||
#define LPRPATH "/usr/ucb/lpr"
|
||||
***************
|
||||
*** 48,55 ****
|
||||
--- 53,64 ----
|
||||
|
||||
#else
|
||||
|
||||
+ #if !defined CMTPATH
|
||||
#define CMTPATH "/usr/local/bin/cmt"
|
||||
+ #endif
|
||||
+ #if !defined PSPATH
|
||||
#define PSPATH "/usr/local/bin/psconv"
|
||||
+ #endif
|
||||
|
||||
#endif
|
||||
|
19
japanese/prn/files/patch-ac
Normal file
19
japanese/prn/files/patch-ac
Normal file
@ -0,0 +1,19 @@
|
||||
*** cmt.jman.orig Mon Jun 9 14:19:17 1997
|
||||
--- cmt.jman Mon Jun 9 14:19:40 1997
|
||||
***************
|
||||
*** 91,97 ****
|
||||
るときの名称を示します。
|
||||
.LP
|
||||
.RS
|
||||
! .ta +19n; +12n; +20n;
|
||||
ファイル名 言語 指定名称
|
||||
.ie n .br
|
||||
.el .sp .4
|
||||
--- 91,97 ----
|
||||
るときの名称を示します。
|
||||
.LP
|
||||
.RS
|
||||
! .ta +19n +12n +20n
|
||||
ファイル名 言語 指定名称
|
||||
.ie n .br
|
||||
.el .sp .4
|
53
japanese/prn/files/patch-ad
Normal file
53
japanese/prn/files/patch-ad
Normal file
@ -0,0 +1,53 @@
|
||||
*** prn.jman.orig Mon Mar 28 20:06:40 1994
|
||||
--- prn.jman Mon Jun 9 14:49:03 1997
|
||||
***************
|
||||
*** 129,135 ****
|
||||
とにファイル名によって区別します。その規則は以下の表に示すとおりです。
|
||||
.LP
|
||||
.RS
|
||||
! .ta +19n; +12n; +20n;
|
||||
ファイル名 言語 \fB\-l\fR オプションでの名称
|
||||
.ie n .br
|
||||
.el .sp .4
|
||||
--- 129,135 ----
|
||||
とにファイル名によって区別します。その規則は以下の表に示すとおりです。
|
||||
.LP
|
||||
.RS
|
||||
! .ta +18n +11n +20n
|
||||
ファイル名 言語 \fB\-l\fR オプションでの名称
|
||||
.ie n .br
|
||||
.el .sp .4
|
||||
***************
|
||||
*** 210,216 ****
|
||||
です。
|
||||
.PD
|
||||
.RS
|
||||
! .ta +16;
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V
|
||||
--- 210,216 ----
|
||||
です。
|
||||
.PD
|
||||
.RS
|
||||
! .ta +16
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V
|
||||
***************
|
||||
*** 242,248 ****
|
||||
.IP
|
||||
書式は任意に指定することもできます。
|
||||
.RS
|
||||
! .ta +16;
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V\fIwid\fB\-\fIlen
|
||||
--- 242,248 ----
|
||||
.IP
|
||||
書式は任意に指定することもできます。
|
||||
.RS
|
||||
! .ta +16
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V\fIwid\fB\-\fIlen
|
53
japanese/prn/files/patch-ae
Normal file
53
japanese/prn/files/patch-ae
Normal file
@ -0,0 +1,53 @@
|
||||
*** psconv.jman.orig Mon Jun 9 14:16:33 1997
|
||||
--- psconv.jman Mon Jun 9 14:18:21 1997
|
||||
***************
|
||||
*** 104,110 ****
|
||||
です。
|
||||
.PD
|
||||
.RS
|
||||
! .ta +16;
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V
|
||||
--- 104,110 ----
|
||||
です。
|
||||
.PD
|
||||
.RS
|
||||
! .ta +16
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V
|
||||
***************
|
||||
*** 136,142 ****
|
||||
.IP
|
||||
書式は任意に指定することもできます。
|
||||
.RS
|
||||
! .ta +16;
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V\fIwid\fB\-\fIlen
|
||||
--- 136,142 ----
|
||||
.IP
|
||||
書式は任意に指定することもできます。
|
||||
.RS
|
||||
! .ta +16
|
||||
.ie n .TP 15
|
||||
.el .TP 10
|
||||
.B \-V\fIwid\fB\-\fIlen
|
||||
***************
|
||||
*** 181,187 ****
|
||||
指示できる要素には以下の 4 種類があります。
|
||||
.LP
|
||||
.RS 10
|
||||
! .ta +5n;
|
||||
\fBR\fR 標準
|
||||
.br
|
||||
\fBB\fR 太字(bold)
|
||||
--- 181,187 ----
|
||||
指示できる要素には以下の 4 種類があります。
|
||||
.LP
|
||||
.RS 10
|
||||
! .ta +5n
|
||||
\fBR\fR 標準
|
||||
.br
|
||||
\fBB\fR 太字(bold)
|
1
japanese/prn/pkg-comment
Normal file
1
japanese/prn/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A yet another converter from text file to postscript (with Japanese support)
|
6
japanese/prn/pkg-descr
Normal file
6
japanese/prn/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
Prn prints out a text file to a postscript printer by converting to
|
||||
postscript. If the file has kanji code such as 7-bit JIS, MS-kanji
|
||||
(shifted-JIS) or EUC, it can print out by using a kanji code converter
|
||||
whose name is kcc. If the file is code of C, C++, FORTRAN, pascal,
|
||||
... , printing out by prn with a option '-c' can emphasize keywords
|
||||
and comments.
|
11
japanese/prn/pkg-plist
Normal file
11
japanese/prn/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
||||
bin/prn
|
||||
bin/cprn
|
||||
bin/cmt
|
||||
bin/psconv
|
||||
lib/prn/cmtdefs
|
||||
man/ja_JP.EUC/man1/prn.1.gz
|
||||
man/ja_JP.EUC/man1/cprn.1.gz
|
||||
man/ja_JP.EUC/man1/cmt.1.gz
|
||||
man/ja_JP.EUC/man1/psconv.1.gz
|
||||
man/ja_JP.EUC/man5/cmtdefs.5.gz
|
||||
@dirrm lib/prn
|
Loading…
Reference in New Issue
Block a user