2012-04-10 14:34:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
# jless (Jam Less) is Japan-ized Less.
|
|
|
|
# jless supports ISO 2022 code extension techniques and Japanese codes.
|
|
|
|
|
|
|
|
class Jless < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Jless file pager supporting ISO2022"
|
2012-04-10 14:34:55 +00:00
|
|
|
homepage 'http://www.greenwoodsoftware.com/less/'
|
|
|
|
url 'http://ftp.de.debian.org/debian/pool/main/j/jless/jless_382-iso262.orig.tar.gz'
|
|
|
|
version '382+iso262+ext03'
|
|
|
|
sha1 '3c3f1ae0bf18039b047524ff0f573ef514bcc944'
|
|
|
|
|
2014-03-18 00:24:29 +00:00
|
|
|
[
|
|
|
|
%w{258 961275c26c6f6ec2e04821d9d9d1b10505214b1f},
|
|
|
|
%w{258-259 7256998c59f9743e61e83e9e5ebc5183e8eeb269},
|
|
|
|
%w{259-260 56e5537fae516ee738b1512eed303f43ed0d4575},
|
|
|
|
%w{260-261 3a889e178a32c3a273b89fd396976362a975f627},
|
|
|
|
%w{261-262 d5cc92e5dcbfde26257eec5f126df5bf73779a89},
|
|
|
|
%w{262.ext03 dc35204274ecf02da5f7ffb583da680ea6f4356c},
|
|
|
|
].each do |name, sha|
|
|
|
|
patch do
|
|
|
|
url "http://ftp.netbsd.org/pub/pkgsrc/distfiles/less-382-iso#{name}.patch.gz"
|
|
|
|
sha1 sha
|
|
|
|
end
|
2012-04-10 14:34:55 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-05-04 00:41:29 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
2012-04-10 14:34:55 +00:00
|
|
|
system "make install binprefix=j manprefix=j"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"You may need to set the environment variable 'JLESSCHARSET' to japanese-utf8"
|
|
|
|
end
|
|
|
|
end
|