Skip to content

Commit

Permalink
ne 3.0.1 (new formula)
Browse files Browse the repository at this point in the history
This adds a formula for the ne text editor. Ne is a lightweight
text editor with a focus on performance and little bandwidth use.
Apart from that it is designed to be approachable yet extensible
enough to keep an advanced user productive.
Development is located at https://github.com/vigna/ne.

Improve test and incorporate other feedback.

Set TERM hoping to get the CI tests to pass.

Use wrapper around ne

Closes Homebrew/legacy-homebrew#45531.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
Alexander Hedges authored and MikeMcQuaid committed Nov 1, 2015
1 parent ce21f45 commit 9ba0acc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Formula/ne.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Ne < Formula
desc "The nice editor"
homepage "http://ne.di.unimi.it"
url "http://ne.di.unimi.it/ne-3.0.1.tar.gz"
sha256 "92b646dd2ba64052e62deaa4239373821050a03e1b7d09d203ce04f2adfbd0e4"

def install
system "make"
system "make", "PREFIX=#{prefix}", "install"
end

test do
ENV["TERM"] = "xterm"
(testpath/"test.txt").write("This is a test document.\n")
(testpath/"test_ne").write("GotoLine 2\nInsertString line 2\nExit\n")
system "script", "-q", "/dev/null", "#{bin}/ne", "--macro", "#{(testpath/"test_ne")}", "#{(testpath/"test.txt")}"
assert_equal "This is a test document.\nline 2", File.read("#{testpath}/test.txt")
end
end

0 comments on commit 9ba0acc

Please sign in to comment.