-
Notifications
You must be signed in to change notification settings - Fork 1
/
kramdown.rb
30 lines (25 loc) · 986 Bytes
/
kramdown.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# typed: false
# frozen_string_literal: true
class Kramdown < Formula
desc "Fast, pure Ruby Markdown superset converter"
homepage "https://github.com/gettalong/kramdown"
url "https://github.com/gettalong/kramdown/archive/REL_2_3_0.tar.gz"
sha256 "3023ad3be1ad07c3fbf1677732ba66942674cc8f2beee866b54fa932cce0910c"
head "https://github.com/gettalong/kramdown"
bottle do
root_url "https://github.com/danielbair/homebrew-tap/releases/download/bottles"
sha256 cellar: :any_skip_relocation, yosemite: "d89a055bf354c0f43a62d80b1b943fbf543c796fc440007cd58efd4193f6cc71"
end
patch do
url "https://patch-diff.githubusercontent.com/raw/gettalong/kramdown/pull/673.diff"
sha256 "ef872ddf0551559f60bf21ed55aaa18fdec10571a50e7028439f67930b801183"
end
def install
system "ruby", "setup.rb", "config", "--prefix=/"
system "ruby", "setup.rb", "setup"
system "ruby", "setup.rb", "install", "--prefix=#{prefix}"
end
test do
# nothing
end
end