28 lines
1,016 B
Ruby
28 lines
1,016 B
Ruby
class Moe < Formula
|
|
desc "Console text editor for ISO-8859 and ASCII"
|
|
homepage "https://www.gnu.org/software/moe/moe.html"
|
|
url "https://ftp.gnu.org/gnu/moe/moe-1.9.tar.lz"
|
|
mirror "https://ftpmirror.gnu.org/moe/moe-1.9.tar.lz"
|
|
sha256 "18919e9ffae08f34d8beb3a26fc5a595614e0aff34866e79420ca81881ff4ef3"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 "8795bf38abe1ee929d3573e25bd54bb73220d4d2b30d0f2af4b6242ae5f862f7" => :high_sierra
|
|
sha256 "c5015c950c74f73093aacac9e9f3b42f741b5bc57e864006c2a62f3c6739c538" => :sierra
|
|
sha256 "4b7e08c089bcf431efba6be217df5a30e7ade7fa2813ae53152e5671958abb69" => :el_capitan
|
|
end
|
|
|
|
def install
|
|
# Fix compilation bug with Xcode 9
|
|
# http://lists.gnu.org/archive/html/bug-moe/2017-10/msg00000.html
|
|
inreplace "window_vector.cc", "{ year_string.insert( 0U, 1,",
|
|
"{ year_string.insert( 0U, 1U,"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/moe", "--version"
|
|
end
|
|
end
|