diff --git a/Formula/locateme.rb b/Formula/locateme.rb new file mode 100644 index 0000000000..b46f7381bb --- /dev/null +++ b/Formula/locateme.rb @@ -0,0 +1,16 @@ +class Locateme < Formula + desc "Find your location using Apple's geolocation services" + homepage "http://iharder.sourceforge.net/current/macosx/locateme" + url "https://downloads.sourceforge.net/project/iharder/locateme/LocateMe-v0.2.1.zip" + sha256 "137016e6c1a847bbe756d8ed294b40f1d26c1cb08869940e30282e933e5aeecd" + + def install + system ENV.cc, "-framework", "Foundation", "-framework", "CoreLocation", "LocateMe.m", "-o", "LocateMe" + bin.install "LocateMe" + man1.install "LocateMe.1" + end + + test do + system "#{bin}/LocateMe", "-h" + end +end