Commit c38e2b9f authored by Cassandra Watergate's avatar Cassandra Watergate Committed by GitHub

[New Package] ruby_docopt (#5635)

parent 7a099921
require 'package'
class Ruby_docopt < Package
description 'Docopt parses command line arguments from nothing more than a usage message.'
homepage 'http://docopt.org/'
version '0.6.1'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/docopt/docopt.rb.git'
git_hashtag '504f310c5fd66e9f3c36b078156e5f44573ff1d3'
depends_on 'ruby'
def self.patch
# https://github.com/docopt/docopt.rb/pull/37
system "sed -i 's:0.6.0:0.6.1:' lib/docopt.rb"
system "sed -i 's:0.6.0:0.6.1:' docopt.gemspec"
end
def self.build
system 'rake build'
end
def self.install
system "gem install --build=#{CREW_DEST_DIR} pkg/docopt-0.6.1.gem"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment