24c75a2dd7
Add a new formula for libatomic_ops that provides portable atomic operations on many platforms. Closes Homebrew/homebrew#21757. Signed-off-by: Xiyue Deng <manphiz@gmail.com>
14 lines
430 B
Ruby
14 lines
430 B
Ruby
require 'formula'
|
|
|
|
class LibatomicOps < Formula
|
|
homepage 'http://www.hpl.hp.com/research/linux/atomic_ops/'
|
|
url 'http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2d.tar.gz'
|
|
sha1 'ed5bb963648bdfb87fc815a9037114654d164907'
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "check"
|
|
system "make", "install"
|
|
end
|
|
end
|