Skip to content

Instantly share code, notes, and snippets.

@apennebaker
Last active December 21, 2015 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apennebaker/6270993 to your computer and use it in GitHub Desktop.
Save apennebaker/6270993 to your computer and use it in GitHub Desktop.
require 'formula'
class Nutch < Formula
homepage 'http://nutch.apache.org/'
url 'http://mirror.reverse.net/pub/apache/nutch/2.2.1/apache-nutch-2.2.1-src.tar.gz'
sha1 'c5d5d535a87d518aad41e89047c1eeb4331b74d2'
def install
system "ant runtime"
prefix.install Dir['runtime/']
bin.install_symlink prefix/'runtime/local/bin/nutch'
end
test do
system "#{bin}/nutch", "parsechecker", "http://nutch.apache.org/"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment