2012-08-12 17:25:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juise < Formula
|
2013-07-07 16:50:45 +00:00
|
|
|
homepage 'https://github.com/Juniper/juise/wiki'
|
2013-08-11 23:17:31 +00:00
|
|
|
url 'https://github.com/Juniper/juise/releases/download/0.5.7/juise-0.5.7.tar.gz'
|
|
|
|
sha1 'b12ded68f813d128c812d7e4f381a00d21ed3291'
|
2012-08-12 17:25:41 +00:00
|
|
|
|
2013-07-07 16:50:45 +00:00
|
|
|
head 'https://github.com/Juniper/juise.git'
|
|
|
|
|
|
|
|
depends_on 'automake' => :build if build.head?
|
2012-08-12 17:25:41 +00:00
|
|
|
depends_on 'libtool' => :build
|
|
|
|
depends_on 'libslax'
|
2012-10-30 19:57:41 +00:00
|
|
|
depends_on 'libssh2'
|
2012-08-12 17:25:41 +00:00
|
|
|
depends_on 'pcre'
|
2013-07-07 16:50:45 +00:00
|
|
|
depends_on 'sqlite'
|
2012-08-12 17:25:41 +00:00
|
|
|
|
|
|
|
def install
|
2013-07-07 16:50:45 +00:00
|
|
|
# If build from read run script to run autoconf
|
|
|
|
system "sh ./bin/setup.sh" if build.head?
|
|
|
|
|
2012-08-12 17:25:41 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-10-30 19:57:41 +00:00
|
|
|
"--prefix=#{prefix}",
|
2013-07-07 16:50:45 +00:00
|
|
|
"--with-libssh2-prefix=#{HOMEBREW_PREFIX}",
|
|
|
|
"--with-sqlite3-prefix=#{Formula.factory('sqlite').opt_prefix}"
|
2012-08-12 17:25:41 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|