aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jemalloc.rb
blob: a9b9c58a11b384efb1b3e259f31636368d59cd9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'formula'

class Jemalloc < Formula
  homepage 'http://www.canonware.com/jemalloc/download.html'
  url 'http://www.canonware.com/download/jemalloc/jemalloc-3.3.0.tar.bz2'
  sha1 'e426b0b8e4f8ef073b90358cb7603e7cbccde895'

  def install
    system './configure', '--disable-debug', "--prefix=#{prefix}"
    system 'make install'

    # This otherwise conflicts with google-perftools
    mv "#{bin}/pprof", "#{bin}/jemalloc-pprof"
  end
end