jemalloc: fix head build (#19503)

This commit is contained in:
equal-l2 2017-10-18 04:10:19 +09:00 committed by ilovezfs
parent 0c7bead3e4
commit 2d33872a1b

View file

@ -1,9 +1,8 @@
class Jemalloc < Formula
desc "malloc implementation emphasizing fragmentation avoidance"
homepage "http://www.canonware.com/jemalloc/"
homepage "http://jemalloc.net/"
url "https://github.com/jemalloc/jemalloc/releases/download/5.0.1/jemalloc-5.0.1.tar.bz2"
sha256 "4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9"
head "https://github.com/jemalloc/jemalloc.git"
bottle do
cellar :any
@ -13,8 +12,28 @@ class Jemalloc < Formula
sha256 "49a8f071338b3ec42cd89280681c338ad2e1d242a389e65f63f64e60257c5733" => :yosemite
end
head do
url "https://github.com/jemalloc/jemalloc.git"
depends_on "autoconf" => :build
depends_on "docbook-xsl" => :build
end
def install
system "./configure", "--disable-debug", "--prefix=#{prefix}", "--with-jemalloc-prefix="
args = %W[
--disable-debug
--prefix=#{prefix}
--with-jemalloc-prefix=
]
if build.head?
args << "--with-xslroot=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
system "./autogen.sh", *args
system "make", "dist"
else
system "./configure", *args
end
system "make"
system "make", "check"
system "make", "install"