summaryrefslogtreecommitdiff
path: root/packaging/OSX/Homebrew/libfaketime.rb
blob: 5e244569bfa97c6718b443b3885db02a6fad2ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Libfaketime < Formula
  homepage 'https://github.com/wolfcw/libfaketime'
  url 'https://github.com/wolfcw/libfaketime/archive/v0.9.7.tar.gz'
  sha1 'PLACEHOLDER'

  depends_on :macos => :sierra

  fails_with :llvm do
    build 2336
    cause 'No thread local storage support'
  end

  def install
    system "make", "-C", "src", "-f", "Makefile.OSX", "PREFIX=#{prefix}"
    bin.install 'src/faketime'
    (lib/'faketime').install 'src/libfaketime.1.dylib'
    man1.install 'man/faketime.1'
  end
end