require "formula" class Logtalk < Formula desc "Object-oriented logic programming language" homepage "http://logtalk.org" url "http://logtalk.org/files/lgt2441.tar.bz2" sha256 "ca49d8e26a08dcf2a39358efa827789ecc5c47791035e5bb5830a6aec59b94e9" version "2.44.1" devel do url "http://logtalk.org/files/logtalk-3.00.0-rc7.tar.bz2" sha256 "50664e28eaa75eb0b293345919a9178bc9b2e2135a43f066265cfa99cb2c042a" version "3.00.0-rc7" end head "https://github.com/LogtalkDotOrg/logtalk3.git" option "swi-prolog", "Build using SWI Prolog as backend" option "gnu-prolog", "Build using GNU Prolog as backend (Default)" if build.include?("swi-prolog") depends_on "swi-prolog" else depends_on "gnu-prolog" end def install if build.stable? cd("scripts") { system "./install.sh", prefix } else cd("scripts") { system "./install.sh", "-p", prefix } end end end