Skip to content

Instantly share code, notes, and snippets.

@glidenote
Last active December 12, 2015 06:29
Show Gist options
  • Save glidenote/4730026 to your computer and use it in GitHub Desktop.
Save glidenote/4730026 to your computer and use it in GitHub Desktop.
require 'formula'
class Ncurses < Formula
url 'http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz'
homepage 'http://www.gnu.org/software/ncurses/'
md5 '8cb9c412e5f2d96bc6f459aa8c6282a1'
# depends_on 'cmake'
def install
ENV['CFLAGS'] = "-arch i386 -arch x86_64"
ENV['LDFLAGS'] = "-arch i386 -arch x86_64"
system "./configure",
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test ncurses`. Remove this comment before submitting
# your pull request!
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment