2010-12-22 23:39:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Groovyserv < Formula
|
2010-12-22 23:39:28 +00:00
|
|
|
homepage 'http://kobo.github.com/groovyserv/'
|
2011-08-04 10:34:56 +00:00
|
|
|
url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.9-src.zip'
|
|
|
|
sha1 '54464608f90a381b44cf7959136e1b1f31a3919c'
|
2011-09-09 18:28:38 +00:00
|
|
|
head 'https://github.com/kobo/groovyserv.git', :using => :git
|
2010-12-22 23:39:28 +00:00
|
|
|
|
2011-08-04 10:34:56 +00:00
|
|
|
depends_on 'gradle' => :build
|
2010-12-22 23:39:28 +00:00
|
|
|
depends_on 'groovy'
|
|
|
|
|
|
|
|
def install
|
2011-08-04 10:34:56 +00:00
|
|
|
system 'gradle clean executables'
|
2011-03-22 00:52:13 +00:00
|
|
|
|
|
|
|
prefix.install %w{LICENSE.txt README.txt NOTICE.txt}
|
2010-12-22 23:39:28 +00:00
|
|
|
|
2012-02-12 22:12:27 +00:00
|
|
|
# Install executables in libexec to avoid conflicts
|
|
|
|
libexec.install Dir["build/executables/{bin,lib}"]
|
|
|
|
|
2011-03-22 00:52:13 +00:00
|
|
|
# Remove windows files
|
2010-12-22 23:39:28 +00:00
|
|
|
rm_f Dir["#{libexec}/bin/*.bat"]
|
2011-03-22 00:52:13 +00:00
|
|
|
|
|
|
|
# Symlink binaries
|
2012-02-12 22:12:27 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
2010-12-22 23:39:28 +00:00
|
|
|
end
|
|
|
|
end
|