diff options
| author | KOBAYASHI Daisuke | 2012-04-10 23:34:55 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2012-05-02 19:57:33 -0700 |
| commit | dc09355cb591b3599ec03e46e0a982b4b34c8fc1 (patch) | |
| tree | c9cf7370385d71d3c98da30967ec73537b7f0f44 /Library/Formula | |
| parent | 93f2244cf8ff6285c310354d1ade866cf3ef7d37 (diff) | |
| download | homebrew-dc09355cb591b3599ec03e46e0a982b4b34c8fc1.tar.bz2 | |
jless 382
Includes iso262 + ext03 support
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/jless.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/jless.rb b/Library/Formula/jless.rb new file mode 100644 index 000000000..1578d6b6b --- /dev/null +++ b/Library/Formula/jless.rb @@ -0,0 +1,40 @@ +require 'formula' + +# jless (Jam Less) is Japan-ized Less. +# jless supports ISO 2022 code extension techniques and Japanese codes. + +class Jless < Formula + 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' + + def patches + # These will emerge from the debian patch zip + iso_patches = ['less-382-iso258.dpatch', + 'less-382-iso258-259.dpatch', + 'less-382-iso259-260.dpatch', + 'less-382-iso260-261.dpatch', + 'less-382-iso261-262.dpatch'].collect {|p| "debian/patches/#{p}"} + + p = [ + # Debian patches + 'http://ftp.de.debian.org/debian/pool/main/j/jless/jless_382-iso262-2.diff.gz', + *iso_patches + ] + + # See: http://bogytech.blogspot.com/2011/07/kterm-jless-screen.html + # Must come after the Debian patches + p << 'https://docs.google.com/uc?id=0B0E5E7E1sD2nZTI4NmUzZDAtZTY1MC00YmI4LTkyNzQtYmRmYjJkNzJmNzgy' + return p + end + + def install + system "./configure", "--prefix=#{prefix}", "--mandir=#{prefix}/share/man" + system "make install binprefix=j manprefix=j" + end + + def caveats + "You may need to set the environment variable 'JLESSCHARSET' to japanese-utf8" + end +end |
