Skip to content

Instantly share code, notes, and snippets.

@da2x
Created November 30, 2012 11:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save da2x/4175297 to your computer and use it in GitHub Desktop.
Save da2x/4175297 to your computer and use it in GitHub Desktop.
Homebrew formula for newsbeuter 2.6
require 'formula'
class Newsbeuter <Formula
url 'http://www.newsbeuter.org/downloads/newsbeuter-2.6.tar.gz'
homepage 'http://www.newsbeuter.org/'
md5 'unreleased-version'
depends_on 'stfl'
depends_on 'curl'
depends_on 'sqlite'
depends_on 'gettext'
depends_on 'json-c'
def install
inreplace 'config.sh' do |s|
s.concat("\necho \"CXXFLAGS+=$CPPFLAGS\" >> config.mk\necho \"LDFLAGS+=$LDFLAGS\" >> config.mk\n")
end
# LDFLAGS: -L/usr/local/opt/gettext/lib
# CPPFLAGS: -I/usr/local/opt/gettext/include
system "make"
system "make install prefix=#{prefix}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment