Skip to content

Instantly share code, notes, and snippets.

@atdt
Created December 10, 2013 17:18
Show Gist options
  • Save atdt/7894375 to your computer and use it in GitHub Desktop.
Save atdt/7894375 to your computer and use it in GitHub Desktop.
Huggle formula for Homebrew
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