homebrew-core/Formula/httping.rb

19 lines
606 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Httping < Formula
homepage 'http://www.vanheusden.com/httping/'
url 'http://www.vanheusden.com/httping/httping-2.3.4.tgz'
sha1 '5306d9b56ea89f7c39ee4729c2bbb6d0d867f310'
2013-11-30 20:39:18 +00:00
depends_on 'gettext'
depends_on 'fftw' => :optional
def install
# Reported upstream, see: https://github.com/Homebrew/homebrew/pull/28653
inreplace %w{configure Makefile}, "ncursesw", "ncurses"
2013-11-30 20:39:18 +00:00
ENV.append "LDFLAGS", "-lintl"
inreplace "Makefile", "cp nl.mo $(DESTDIR)/$(PREFIX)/share/locale/nl/LC_MESSAGES/httping.mo", ""
system "make", "install", "PREFIX=#{prefix}"
end
end