Skip to content

Instantly share code, notes, and snippets.

@esafirm

esafirm/drafter.rb

Created May 18, 2020
Embed
What would you like to do?
Drafter Forumula
require 'formula'
class Drafter < Formula
homepage 'http://apiblueprint.org'
head 'https://github.com/apiaryio/drafter.git', :tag => 'v4.1.0'
def install
system "./configure", "--shared"
system "make", "drafter"
bin.install Dir["bin/drafter"]
(include + "drafter").install Dir["src/drafter.h"]
lib.install Dir["build/out/Release/libdrafter.dylib"]
end
test do
system bin/"drafter", "--help"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.