38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
Ruby
class Density < Formula
|
|
desc "Superfast compression library"
|
|
homepage "https://github.com/centaurean/density"
|
|
url "https://github.com/centaurean/density/archive/density-0.14.2.tar.gz"
|
|
sha256 "0b130ea9da3ddaad78810a621a758b47c4135d91d5b5fd22d60bbaf04bc147da"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "a123e229e87c6acb5e38292e35671f71e49d0cd0afbb1a315d941a49ab3ec8e4" => :mojave
|
|
sha256 "798b64ce99c516e735c76aea05944869124634488c82af5ba3f2930f60d83de3" => :high_sierra
|
|
sha256 "7740a6a2ba8aa701025c01553c57051e72b49e2f8f0774f064ca98832e1e58e9" => :sierra
|
|
sha256 "6853e909ed8057817becb03cbb5dbfdd3d4e2ea35348bf562e86dc51aed11a78" => :el_capitan
|
|
end
|
|
|
|
resource "cputime" do
|
|
url "https://github.com/centaurean/cputime.git",
|
|
:revision => "d435d91b872a4824fb507a02d0d1814ed3e791b0"
|
|
end
|
|
|
|
resource "spookyhash" do
|
|
url "https://github.com/centaurean/spookyhash/archive/spookyhash-1.0.6.tar.gz"
|
|
sha256 "11215a240af513e673e2d5527cd571df0b4f543f36cce50165a6da41695144c6"
|
|
end
|
|
|
|
def install
|
|
(buildpath/"benchmark/libs/cputime").install resource("cputime")
|
|
(buildpath/"benchmark/libs/spookyhash").install resource("spookyhash")
|
|
system "make"
|
|
include.install "src/density_api.h"
|
|
pkgshare.install "build/benchmark"
|
|
lib.install "build/libdensity.a"
|
|
lib.install "build/libdensity.dylib"
|
|
end
|
|
|
|
test do
|
|
system pkgshare/"benchmark", "-f"
|
|
end
|
|
end
|