Last active
December 21, 2015 07:28
-
-
Save apennebaker/6270993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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