Skip to content

Instantly share code, notes, and snippets.

@esafirm
Created May 18, 2020 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esafirm/464af5707dfc117b962ea4a0994115f5 to your computer and use it in GitHub Desktop.
Save esafirm/464af5707dfc117b962ea4a0994115f5 to your computer and use it in GitHub Desktop.
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