2017-03-19 18:13:38 +00:00
|
|
|
class Nano < Formula
|
|
|
|
desc "Free (GNU) replacement for the Pico text editor"
|
|
|
|
homepage "https://www.nano-editor.org/"
|
2017-05-21 12:54:29 +00:00
|
|
|
url "https://www.nano-editor.org/dist/v2.8/nano-2.8.4.tar.gz"
|
|
|
|
sha256 "78a2f3b3f6b500fad995c5e207d2816cbd6b531154aa2a3a2bd50c8fdf7dc57f"
|
2017-03-19 18:13:38 +00:00
|
|
|
|
|
|
|
bottle do
|
2017-05-21 12:59:31 +00:00
|
|
|
sha256 "4221d156c06c06db498f2fa8611a6c2d4240c9d3a7bb83d223e7b80c4b07863c" => :sierra
|
|
|
|
sha256 "54e9896910b1648d62dd9626ce9dbf4c2ddf32c1bc4553e4a1595b4c68d5c7b1" => :el_capitan
|
|
|
|
sha256 "e13762936882ec05b44f38011a19dbab29f4d70b81e49a9e27ed5af7c576db4e" => :yosemite
|
2017-03-19 18:13:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
head do
|
2017-04-03 20:56:29 +00:00
|
|
|
url "https://git.savannah.gnu.org/git/nano.git"
|
2017-03-19 18:13:38 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "ncurses"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./autogen.sh" if build.head?
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--enable-color",
|
|
|
|
"--enable-extra",
|
|
|
|
"--enable-multibuffer",
|
|
|
|
"--enable-nanorc",
|
|
|
|
"--enable-utf8"
|
|
|
|
system "make", "install"
|
|
|
|
doc.install "doc/sample.nanorc"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/nano", "--version"
|
|
|
|
end
|
|
|
|
end
|