Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
feat(*) add support for openresty-patches
Browse files Browse the repository at this point in the history
  • Loading branch information
bungle committed May 18, 2018
1 parent 81e0cc4 commit 402ccb0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Formula/openresty.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
class Openresty < Formula
version = "1.13.6.1"
sha256 = "d1246e6cfa81098eea56fb88693e980d3e6b8752afae686fab271519b81d696b"

homepage "https://openresty.org/"

stable do
url "https://openresty.org/download/openresty-1.13.6.1.tar.gz"
sha256 "d1246e6cfa81098eea56fb88693e980d3e6b8752afae686fab271519b81d696b"
url "https://openresty.org/download/openresty-#{version}.tar.gz"
sha256 sha256
resource "openresty-patches" do
url "https://github.com/Kong/openresty-patches.git", :using => :git, :shallow => false
end
end

depends_on "pcre"
Expand All @@ -12,6 +18,11 @@ class Openresty < Formula
option "with-debug", "Compile with support for debug logging but without proper gdb debugging symbols"

def install

resource("openresty-patches").stage{ Dir["#{pwd}/patches/#{version}/*.patch"].each do | f |
system "cd", buildpath/"bundle", "&&", "patch", "-p1", "<", f
end }

args = [
"--prefix=#{prefix}",
"--with-ipv6",
Expand Down

0 comments on commit 402ccb0

Please sign in to comment.