diff --git a/Formula/gremlin.rb b/Formula/gremlin.rb deleted file mode 100644 index e2194a57280..00000000000 --- a/Formula/gremlin.rb +++ /dev/null @@ -1,43 +0,0 @@ -require 'formula' - -class Gremlin < Formula - homepage 'http://gremlin.tinkerpop.com/' - url 'https://github.com/downloads/tinkerpop/gremlin/gremlin-1.3.zip' - sha1 'd6c3a9c754d5b3d2f629340c98a796a0f4575115' - - head do - url 'https://github.com/tinkerpop/gremlin.git' - depends_on 'maven' => :build - end - - def install - # If this is a head build, checkout the source and build it with maven - if build.head? - - # Setup a couple of paths for the build - pwd = Pathname.new('.') - m2 = pwd+'.m2' - - # Create a local settings file to make sure that all cached downloads - # are saved in a local repository which will be deleted once the build - # is complete. - (pwd+'settings.xml').write <<-EOF.undent - - - #{m2} - - EOF - - # Perform the build - system 'mvn clean install -s ./settings.xml' - end - - target = Pathname.glob('./target/gremlin-*-standalone')[0] - libexec.install Dir[target+'lib'+'*.jar'] - inreplace target+'bin'+'gremlin.sh', '`dirname $0`/../lib', libexec - bin.install target+'bin'+'gremlin.sh' => 'gremlin' - end -end