Skip to content
Permalink
Browse files

New port : a2ps-j

  • Loading branch information
Takanori Yamamoto
Takanori Yamamoto committed Mar 24, 2006
1 parent b7065d6 commit 8615084c80a3cd4c9e15fd80c4754da94c288af3
Showing with 44 additions and 0 deletions.
  1. +34 −0 print/a2ps-j/Portfile
  2. +10 −0 print/a2ps-j/files/patch-nojconv
@@ -0,0 +1,34 @@
# $Id: Portfile,v 1.1 2006/03/24 22:47:38 takanori Exp $

PortSystem 1.0
name a2ps-j
version 1.45
categories print textproc
maintainers takanori@opendarwin.org
description Text file to postscript converter (with Japanese support)
long_description This program is perl version of Miguel Santana's a2ps. \
a2ps-j converts plain text to PostScript for printing on a PS printer. \
If no file is given, a2ps-j reads from the standard input.
platforms darwin
homepage
master_sites ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/ \
ftp://ftp.sra.co.jp/pub/lang/perl/sra-scripts/
distfiles a2ps.pl-${version}
checksums md5 3eae209b3c69ec692ee7d61ddd663f6c \
sha1 1a938099322767bced3eae525426b80164584d8c \
rmd160 2599f86d4433afd3d0ed3490539d87995ce51dab
patchfiles patch-nojconv
depends_run bin:perl:perl5.8 bin:nkf:nkf

extract {
file mkdir ${worksrcpath}
file copy ${distpath}/a2ps.pl-${version} ${worksrcpath}/${name}
}
post-patch {
reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/${name}
}
configure {}
build {}
destroot {
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
}
@@ -0,0 +1,10 @@
--- a2ps-j~ 2006-03-20 19:21:58.000000000 +0900
+++ a2ps-j 2006-03-21 07:01:16.000000000 +0900
@@ -410,7 +410,6 @@
unless ($selfconvert) {
shift while @_ > 0 && $_[0] eq '';
exec('nkf', '-b', '-j', @_);
- exec('jconv', '-j', @_);
}
if (($file = shift) ne '') {
open(STDIN, $file) || die "$file: $!\n";

0 comments on commit 8615084

Please sign in to comment.
You can’t perform that action at this time.