Created
December 10, 2013 17:18
-
-
Save atdt/7894375 to your computer and use it in GitHub Desktop.
Huggle formula for Homebrew
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 Huggle3 < Formula | |
homepage 'https://en.wikipedia.org/wiki/Wikipedia:Huggle' | |
head 'https://github.com/huggle/huggle3-qt-lx.git' | |
sha1 '15072960560b963ab317b2088ff8951f8c5287ae' | |
depends_on 'qt' | |
def install | |
cd 'huggle' do | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--prefix=#{prefix}" | |
system "make" | |
system "make", "install" | |
end | |
end | |
test do | |
# `test do` will create, run in and delete a temporary directory. | |
# | |
# 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. Run the test with `brew test huggle3`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system "#{bin}/program", "--version"`. | |
# system "true" | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment