2014-05-10 17:27:11 +00:00
|
|
|
class Jove < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Emacs-style editor with vi-like memory, CPU, and size requirements"
|
2015-10-06 16:57:01 +00:00
|
|
|
homepage "https://directory.fsf.org/wiki/Jove"
|
2015-10-06 16:10:23 +00:00
|
|
|
url "http://ftp.cs.toronto.edu/cs/ftp/pub/hugh/jove-dev/jove4.16.0.73.tgz"
|
|
|
|
mirror "ftp://ftp.cs.toronto.edu/cs/ftp/pub/hugh/jove-dev/jove4.16.0.73.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "9c9e202607f5972c382098d10b63c815ac01e578f432626c982e6aa65000c630"
|
2014-05-10 17:27:11 +00:00
|
|
|
|
2014-05-16 04:14:13 +00:00
|
|
|
# Per MacPorts, avoid clash with libc getline
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/120116/trunk/dports/editors/jove/files/patch-getline.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "96e557370d6e8924cc73bda8dbe65e54f4cc902785ffcf0056d8925bb4e77bf6"
|
2014-05-16 04:14:13 +00:00
|
|
|
end
|
2014-05-10 17:27:11 +00:00
|
|
|
|
2014-05-16 04:14:13 +00:00
|
|
|
def install
|
2014-05-10 17:27:11 +00:00
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
|
|
|
(lib/"jove").mkpath
|
|
|
|
|
|
|
|
system "make", "install", "JOVEHOME=#{prefix}", "MANDIR=#{man1}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-08-03 12:55:31 +00:00
|
|
|
assert_match /There's nothing to recover./, `#{lib}/jove/recover`
|
2014-05-10 17:27:11 +00:00
|
|
|
end
|
|
|
|
end
|